From 325db99a3cc40b03fae8328b7bbcfe1efb6c6e0b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 28 Jul 2013 16:43:22 -0500 Subject: [PATCH] RbConfig::CONFIG['bindir'] is already a string --- Library/Homebrew/global.rb | 2 +- Library/Homebrew/test/testing_env.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 91f6130db3..dea7d25915 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 474df0121e..9e04f2c33a 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