Skip to content
Snippets Groups Projects
Commit 0e0bee9c authored by Jack Nagel's avatar Jack Nagel
Browse files

Update ruby version doctor check

parent 104b725c
No related branches found
No related tags found
No related merge requests found
......@@ -393,10 +393,12 @@ def check_access_logs
end
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.
ruby_version = MacOS.version >= "10.9" ? "2.0" : "1.8"
if RUBY_VERSION[/\d\.\d/] != ruby_version then <<-EOS.undent
Ruby version #{RUBY_VERSION} is unsupported on #{MacOS.version}. Homebrew
is developed and tested on Ruby #{ruby_version}, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.
EOS
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment