summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 22:08:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 22:08:01 +0000
commit06af3b204c6c6202b26674d90145489d2917e07f (patch)
treed273a1452ca9750a23f938d08bc613c6a707a600 /tool
parent7451ec065cc09758a49bbbf696b57da23e7f83ea (diff)
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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb6
1 files changed, 5 insertions, 1 deletions
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"]