mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #12288 from carlocab/ruby-diagnostic
extend/os/mac/diagnostic: fix unqualified macOS version reference
This commit is contained in:
commit
c6b287590d
@ -212,7 +212,7 @@ module Homebrew
|
|||||||
return if Homebrew::EnvConfig.developer? && OS::Mac.version.prerelease?
|
return if Homebrew::EnvConfig.developer? && OS::Mac.version.prerelease?
|
||||||
|
|
||||||
<<~EOS
|
<<~EOS
|
||||||
Ruby version #{RUBY_VERSION} is unsupported on #{MacOS.version}. Homebrew
|
Ruby version #{RUBY_VERSION} is unsupported on macOS #{MacOS.version}. Homebrew
|
||||||
is developed and tested on Ruby #{required_version}, and may not work correctly
|
is developed and tested on Ruby #{required_version}, and may not work correctly
|
||||||
on other Rubies. Patches are accepted as long as they don't cause breakage
|
on other Rubies. Patches are accepted as long as they don't cause breakage
|
||||||
on supported Rubies.
|
on supported Rubies.
|
||||||
|
@ -38,7 +38,7 @@ describe Homebrew::Diagnostic::Checks do
|
|||||||
stub_const("RUBY_VERSION", "1.8.6")
|
stub_const("RUBY_VERSION", "1.8.6")
|
||||||
|
|
||||||
expect(checks.check_ruby_version)
|
expect(checks.check_ruby_version)
|
||||||
.to match "Ruby version 1.8.6 is unsupported on 10.12"
|
.to match "Ruby version 1.8.6 is unsupported on macOS 10.12"
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#check_if_supported_sdk_available" do
|
describe "#check_if_supported_sdk_available" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user