aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-31 15:19:19 -0700
committerAdam Vandenberg2010-04-06 08:22:29 -0700
commit5de328da5cf30367cb574ccf090714682d8c5e4d (patch)
treef7afdcb64021827ef472eb655a80633b49771c1b /Library
parent0b309aeb2b098108ecf763eacbd64923c3ae8359 (diff)
downloadbrew-5de328da5cf30367cb574ccf090714682d8c5e4d.tar.bz2
Ruby version check.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index faba678bf..649edf11b 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -48,6 +48,14 @@ def check_share_locale
end
def check_usr_bin_ruby
+ if /^1\.9/.match RUBY_VERSION
+ puts <<-EOS.undent
+ Ruby version #{RUBY_VERSION} is unsupported.
+ Homebrew is developed and tested on Ruby 1.8.x, and may not work correctly
+ on Ruby 1.9.x. Patches are accepted as long as they don't break on 1.8.x.
+
+ EOS
+ end
end
def check_homebrew_prefix
@@ -60,6 +68,7 @@ def brew_doctor
read.close
$stdout.reopen write
+ check_usr_bin_ruby
check_for_stray_dylibs
check_gcc_versions
check_for_other_package_managers