From 4a741a0cc5ed242e362d6ca86e639044c53d4724 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 Sep 2017 22:08:01 +0000 Subject: runruby.rb: set envvars for bundler * tool/runruby.rb: set gem and bundler environment variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/runruby.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tool/runruby.rb') diff --git a/tool/runruby.rb b/tool/runruby.rb index f6c46779e3..be1be6a68b 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -76,7 +76,11 @@ env = { runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}") runner = nil unless File.exist?(runner) -env["RUBY"] = runner || File.expand_path(ruby) +abs_ruby = runner || File.expand_path(ruby) +env["RUBY"] = abs_ruby +env["GEM_PATH"] = env["GEM_HOME"] = File.expand_path("spec/rspec", srcdir) +env["BUNDLE_RUBY"] = abs_ruby +env["BUNDLE_GEM"] = "#{abs_ruby} -rrubygems #{srcdir}/bin/gem --backtrace" env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR) if e = ENV["RUBYLIB"] -- cgit v1.2.3