aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-07-28 16:43:22 -0500
committerJack Nagel2013-07-28 16:43:22 -0500
commit325db99a3cc40b03fae8328b7bbcfe1efb6c6e0b (patch)
tree63227e431ad60c6ccb24366d4e4b04625a5ea2ac
parent366cb87aecf41fcc590e5c51955d96da68ca33c8 (diff)
downloadbrew-325db99a3cc40b03fae8328b7bbcfe1efb6c6e0b.tar.bz2
RbConfig::CONFIG['bindir'] is already a string
-rw-r--r--Library/Homebrew/global.rb2
-rw-r--r--Library/Homebrew/test/testing_env.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 91f6130db..dea7d2591 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -65,7 +65,7 @@ end
HOMEBREW_LOGS = Pathname.new('~/Library/Logs/Homebrew/').expand_path
-RUBY_BIN = Pathname.new("#{RbConfig::CONFIG['bindir']}")
+RUBY_BIN = Pathname.new(RbConfig::CONFIG['bindir'])
RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
if RUBY_PLATFORM =~ /darwin/
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 474df0121..9e04f2c33 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -26,7 +26,7 @@ HOMEBREW_WWW = 'http://example.com'
HOMEBREW_CURL_ARGS = '-fsLA'
HOMEBREW_VERSION = '0.9-test'
-RUBY_BIN = Pathname.new("#{RbConfig::CONFIG['bindir']}")
+RUBY_BIN = Pathname.new(RbConfig::CONFIG['bindir'])
RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
MACOS = true