os/mac/diagnostic: allow Ruby 2.6.3 on Catalina.

This commit is contained in:
Mike McQuaid 2019-10-08 16:39:09 +01:00
parent 7ed95ab48e
commit cf34e1bec8
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -139,7 +139,11 @@ module Homebrew
end
def check_ruby_version
ruby_version = "2.3.7"
ruby_version = if MacOS.version >= :catalina
"2.6.3"
else
"2.3.7"
end
return if RUBY_VERSION == ruby_version
return if ARGV.homebrew_developer? && OS::Mac.prerelease?