aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/config.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-07 15:56:54 -0500
committerJack Nagel2014-06-07 15:57:17 -0500
commitcad5704fc77ee0271e32b2fb624eec7aa662748b (patch)
treefca8007fa9cec9a1496035c785446aa9c2f14c74 /Library/Homebrew/cmd/config.rb
parent1d120c3f29457364b9bc6a3b61247b79c79edcc3 (diff)
downloadbrew-cad5704fc77ee0271e32b2fb624eec7aa662748b.tar.bz2
Update build error config dump for Ruby 2.0
Diffstat (limited to 'Library/Homebrew/cmd/config.rb')
-rw-r--r--Library/Homebrew/cmd/config.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb
index fb3fb7772..f93578dcd 100644
--- a/Library/Homebrew/cmd/config.rb
+++ b/Library/Homebrew/cmd/config.rb
@@ -103,7 +103,11 @@ module Homebrew extend self
puts "OS X: #{MACOS_FULL_VERSION}-#{kernel}"
puts "Xcode: #{xcode}" if xcode
puts "CLT: #{clt}" if clt
- puts "#{RUBY_PATH}:\n #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}" if RUBY_VERSION.to_f != 1.8
+
+ ruby_version = MacOS.version >= "10.9" ? "2.0" : "1.8"
+ if RUBY_VERSION[/\d\.\d/] != ruby_version
+ puts "#{RUBY_PATH}:\n #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}"
+ end
unless MacOS.compilers_standard?
puts "GCC-4.0: build #{gcc_40}" if gcc_40