reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior
Closes Homebrew/homebrew#43303. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
b0d5e17906
commit
c459349b89
@ -273,25 +273,25 @@ class BuildToolsError < RuntimeError
|
|||||||
if MacOS.version >= "10.10"
|
if MacOS.version >= "10.10"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
To continue, you must install Xcode from the App Store,
|
To continue, you must install Xcode from the App Store,
|
||||||
or the CLT by running:
|
or the CLT by running:
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
EOS
|
EOS
|
||||||
elsif MacOS.version == "10.9"
|
elsif MacOS.version == "10.9"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
To continue, you must install Xcode from:
|
To continue, you must install Xcode from:
|
||||||
https://developer.apple.com/downloads/
|
https://developer.apple.com/downloads/
|
||||||
or the CLT by running:
|
or the CLT by running:
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
EOS
|
EOS
|
||||||
elsif MacOS.version >= "10.7"
|
elsif MacOS.version >= "10.7"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
To continue, you must install Xcode or the CLT from:
|
To continue, you must install Xcode or the CLT from:
|
||||||
https://developer.apple.com/downloads/
|
https://developer.apple.com/downloads/
|
||||||
EOS
|
EOS
|
||||||
else
|
else
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
To continue, you must install Xcode from:
|
To continue, you must install Xcode from:
|
||||||
https://developer.apple.com/xcode/downloads/
|
https://developer.apple.com/xcode/downloads/
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -320,24 +320,24 @@ class BuildFlagsError < RuntimeError
|
|||||||
if MacOS.version >= "10.10"
|
if MacOS.version >= "10.10"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
or install Xcode from the App Store, or the CLT by running:
|
or install Xcode from the App Store, or the CLT by running:
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
EOS
|
EOS
|
||||||
elsif MacOS.version == "10.9"
|
elsif MacOS.version == "10.9"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
or install Xcode from:
|
or install Xcode from:
|
||||||
https://developer.apple.com/downloads/
|
https://developer.apple.com/downloads/
|
||||||
or the CLT by running:
|
or the CLT by running:
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
EOS
|
EOS
|
||||||
elsif MacOS.version >= "10.7"
|
elsif MacOS.version >= "10.7"
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
or install Xcode or the CLT from:
|
or install Xcode or the CLT from:
|
||||||
https://developer.apple.com/downloads/
|
https://developer.apple.com/downloads/
|
||||||
EOS
|
EOS
|
||||||
else
|
else
|
||||||
xcode_text = <<-EOS.undent
|
xcode_text = <<-EOS.undent
|
||||||
or install Xcode from:
|
or install Xcode from:
|
||||||
https://developer.apple.com/xcode/downloads/
|
https://developer.apple.com/xcode/downloads/
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user