aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-07 19:22:31 -0500
committerJack Nagel2013-05-07 19:45:10 -0500
commitf61a4f88931e5d878ed22f4a828830dcfa0ab5e6 (patch)
treec137d2fa4e4e4414a75c011f575d519508ce2461 /Library
parent14bc883750820af1dce3c67d5d2236422e1aee96 (diff)
downloadbrew-f61a4f88931e5d878ed22f4a828830dcfa0ab5e6.tar.bz2
doctor: update ruby version check
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index ba4e162ea..26d6cb9ad 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -363,12 +363,11 @@ def check_access_logs
end
end
-def check_usr_bin_ruby
- if /^1\.9/.match RUBY_VERSION
- <<-EOS.undent
- Ruby version #{RUBY_VERSION} is unsupported.
- Homebrew is developed and tested on Ruby 1.8.x, and may not work correctly
- on other Rubies. Patches are accepted as long as they don't break on 1.8.x.
+def check_ruby_version
+ if RUBY_VERSION.to_f > 1.8 then <<-EOS.undent
+ Ruby version #{RUBY_VERSION} is unsupported.
+ Homebrew is developed and tested on Ruby 1.8.x, and may not work correctly
+ on other Rubies. Patches are accepted as long as they don't break on 1.8.x.
EOS
end
end