aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-15 02:28:32 +0200
committerMarkus Reiter2017-10-18 14:39:09 +0200
commit9bee9ca5757d1c5f720787737fed6a534a620d72 (patch)
treeb1eed297d9eb169673d2ed308e5ef3ca3bb09d12 /Library/Homebrew/utils
parent270b752f5d9d218bfbed6fe85b6974fa653fb25f (diff)
downloadbrew-9bee9ca5757d1c5f720787737fed6a534a620d72.tar.bz2
Use “squiggly” heredocs.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/github.rb10
-rw-r--r--Library/Homebrew/utils/link.rb2
2 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index df0811e95..f88d52403 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -16,7 +16,7 @@ module GitHub
class RateLimitExceededError < Error
def initialize(reset, error)
- super <<-EOS.undent
+ super <<~EOS
GitHub API Error: #{error}
Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token:
#{ALL_SCOPES_URL}
@@ -33,12 +33,12 @@ module GitHub
def initialize(error)
message = "GitHub #{error}\n"
if ENV["HOMEBREW_GITHUB_API_TOKEN"]
- message << <<-EOS.undent
+ message << <<~EOS
HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:
#{Formatter.url("https://github.com/settings/tokens")}
EOS
else
- message << <<-EOS.undent
+ message << <<~EOS
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
printf "protocol=https\\nhost=github.com\\n" | git credential-osxkeychain erase
@@ -104,7 +104,7 @@ module GitHub
case GitHub.api_credentials_type
when :keychain
- onoe <<-EOS.undent
+ onoe <<~EOS
Your macOS keychain GitHub credentials do not have sufficient scope!
Scopes they need: #{needed_human_scopes}
Scopes they have: #{credentials_scopes}
@@ -112,7 +112,7 @@ module GitHub
and then set HOMEBREW_GITHUB_API_TOKEN as the authentication method instead.
EOS
when :environment
- onoe <<-EOS.undent
+ onoe <<~EOS
Your HOMEBREW_GITHUB_API_TOKEN does not have sufficient scope!
Scopes they need: #{needed_human_scopes}
Scopes it has: #{credentials_scopes}
diff --git a/Library/Homebrew/utils/link.rb b/Library/Homebrew/utils/link.rb
index 095dba209..96bfd602e 100644
--- a/Library/Homebrew/utils/link.rb
+++ b/Library/Homebrew/utils/link.rb
@@ -22,7 +22,7 @@ module Utils
end
return if conflicts.empty?
- onoe <<-EOS.undent
+ onoe <<~EOS
Could not link:
#{conflicts.join("\n")}