aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-10-02 18:37:46 +0100
committerGitHub2016-10-02 18:37:46 +0100
commit564fa8867dd865c686d243ba48c202e0cb6a35fe (patch)
tree5c2329902c7ab8d995b4bff461cc408bdb5e8c49 /Library
parentf7d1f4eca69d8a40bb8cd5c317ad20aa5d5bc128 (diff)
parent8a57fee68c4a52b371d94f878c2fac495fa1ff95 (diff)
downloadbrew-564fa8867dd865c686d243ba48c202e0cb6a35fe.tar.bz2
Merge pull request #1213 from MikeMcQuaid/diagnostic-messages
*/diagnostic: tweak messaging.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/diagnostic.rb8
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb11
-rw-r--r--Library/Homebrew/test/test_diagnostic.rb2
3 files changed, 10 insertions, 11 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 6546714e8..0db92592c 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -389,10 +389,10 @@ module Homebrew
return if HOMEBREW_PREFIX.to_s == "/usr/local"
<<-EOS.undent
- Your Homebrew is not installed to /usr/local
- You can install Homebrew anywhere you want but some bottles (binary
- packages) can only be used in /usr/local and some formulae (packages)
- may not build correctly unless you install in /usr/local. Sorry!
+ Your Homebrew's prefix is not /usr/local.
+ You can install Homebrew anywhere you want but some bottles (binary packages)
+ can only be used with a /usr/local prefix and some formulae (packages)
+ may not build correctly with a non-/usr/local prefix.
EOS
end
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 063558f19..0ac95bfd9 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -65,8 +65,8 @@ module Homebrew
return unless MacOS::Xcode.installed? && MacOS::Xcode.outdated?
message = <<-EOS.undent
- Your Xcode (#{MacOS::Xcode.version}) is outdated
- Please update to Xcode #{MacOS::Xcode.latest_version}.
+ Your Xcode (#{MacOS::Xcode.version}) is outdated.
+ Please update to Xcode #{MacOS::Xcode.latest_version} (or delete it).
#{MacOS::Xcode.update_instructions}
EOS
@@ -171,8 +171,7 @@ module Homebrew
end
def check_ruby_version
- ruby_version = MacOS.version >= "10.9" ? "2.0" : "1.8"
- return if RUBY_VERSION[/\d\.\d/] == ruby_version
+ return if RUBY_VERSION[/\d\.\d/] == "2.0"
<<-EOS.undent
Ruby version #{RUBY_VERSION} is unsupported on #{MacOS.version}. Homebrew
@@ -264,8 +263,8 @@ module Homebrew
return if installed_version >= latest_version
<<-EOS.undent
- Your XQuartz (#{installed_version}) is outdated
- Please install XQuartz #{latest_version}:
+ Your XQuartz (#{installed_version}) is outdated.
+ Please install XQuartz #{latest_version} (or delete it):
https://xquartz.macosforge.org
EOS
end
diff --git a/Library/Homebrew/test/test_diagnostic.rb b/Library/Homebrew/test/test_diagnostic.rb
index 37f56e961..b9b995f0f 100644
--- a/Library/Homebrew/test/test_diagnostic.rb
+++ b/Library/Homebrew/test/test_diagnostic.rb
@@ -85,7 +85,7 @@ class DiagnosticChecksTest < Homebrew::TestCase
def test_check_homebrew_prefix
# the integration tests are run in a special prefix
- assert_match "Your Homebrew is not installed to /usr/local",
+ assert_match "Your Homebrew's prefix is not /usr/local.",
@checks.check_homebrew_prefix
end