Merge pull request #13975 from aespinosa/proper-script-gempaths

buildRubyGem: use Gem.use_paths to load gems
This commit is contained in:
Charles Strahan 2016-03-19 16:15:50 -04:00
commit 2802785675

View File

@ -64,8 +64,7 @@ spec.executables.each do |exe|
# this file is here to facilitate running it.
#
gem_path = ENV["GEM_PATH"]
ENV["GEM_PATH"] = "\#{gem_path}\#{":" unless gem_path.nil? || gem_path.empty?}#{(gem_path+[gem_home]).join(":")}"
Gem.use_paths "#{gem_home}", #{gem_path.to_s}
require 'rubygems'