From 5de328da5cf30367cb574ccf090714682d8c5e4d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 31 Mar 2010 15:19:19 -0700 Subject: [PATCH] Ruby version check. --- Library/Homebrew/brew_doctor.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index faba678bf7..649edf11bb 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