diff options
| author | Mike McQuaid | 2017-09-15 08:06:58 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-09-15 08:06:58 +0100 |
| commit | e12d2746b65d46f07e3ecc737d07926118dfb278 (patch) | |
| tree | 42b09c00f8fe7f1b80c8573a5e33019b8472475a /Library/Homebrew/extend | |
| parent | ef6068870472496f7b6c2766f2197e5c81d393b5 (diff) | |
| download | brew-e12d2746b65d46f07e3ecc737d07926118dfb278.tar.bz2 | |
os/mac/diagnostic: allow custom Ruby for devs.
This avoids `brew doctor` warnings on High Sierra but in general this is
a good idea for future versions and to allow Homebrew developers to test
things out with different versions of Ruby.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/diagnostic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 0cdd7b115..ab5433565 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -197,6 +197,7 @@ module Homebrew def check_ruby_version ruby_version = "2.0" return if RUBY_VERSION[/\d\.\d/] == ruby_version + return if ARGV.homebrew_developer? && OS::Mac.prerelease? <<-EOS.undent Ruby version #{RUBY_VERSION} is unsupported on #{MacOS.version}. Homebrew |
