aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-07 18:40:17 -0500
committerJack Nagel2013-04-07 20:59:52 -0500
commitad8c9c268330fee1b838b37d5052a120fa76f45e (patch)
treef85dba1ea0888ed974f89fc93512352e4db76a12 /Library/Homebrew/global.rb
parent0032f1669f6dd704c2257cc334071a7007446ac5 (diff)
downloadhomebrew-ad8c9c268330fee1b838b37d5052a120fa76f45e.tar.bz2
Define RUBY_PATH for tests
Diffstat (limited to 'Library/Homebrew/global.rb')
-rw-r--r--Library/Homebrew/global.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index e8e063379..da834467b 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -63,9 +63,8 @@ end
HOMEBREW_LOGS = Pathname.new('~/Library/Logs/Homebrew/').expand_path
-RUBY_CONFIG = RbConfig::CONFIG
-RUBY_BIN = Pathname.new("#{RUBY_CONFIG['bindir']}")
-RUBY_PATH = RUBY_BIN/RUBY_CONFIG['ruby_install_name'] + RUBY_CONFIG['EXEEXT']
+RUBY_BIN = Pathname.new("#{RbConfig::CONFIG['bindir']}")
+RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
if RUBY_PLATFORM =~ /darwin/
MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp