Merge pull request #6580 from middagj/feature/fix-frozen-string
Fix frozen string bug
This commit is contained in:
commit
dc9fe597f2
@ -466,15 +466,17 @@ class BuildFlagsError < RuntimeError
|
|||||||
require_text = "requires"
|
require_text = "requires"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
bottle_text = if bottled
|
||||||
|
<<~EOS
|
||||||
|
Alternatively, remove the #{flag_text} to attempt bottle installation.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
message = <<~EOS
|
message = <<~EOS
|
||||||
The following #{flag_text}:
|
The following #{flag_text}:
|
||||||
#{flags.join(", ")}
|
#{flags.join(", ")}
|
||||||
#{require_text} building tools, but none are installed.
|
#{require_text} building tools, but none are installed.
|
||||||
#{DevelopmentTools.installation_instructions}
|
#{DevelopmentTools.installation_instructions}#{bottle_text}
|
||||||
EOS
|
|
||||||
|
|
||||||
message << <<~EOS if bottled
|
|
||||||
Alternatively, remove the #{flag_text} to attempt bottle installation.
|
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
super message
|
super message
|
||||||
|
|||||||
@ -225,3 +225,9 @@ describe BottleFormulaUnavailableError do
|
|||||||
|
|
||||||
its(:to_s) { is_expected.to match(/This bottle does not contain the formula file/) }
|
its(:to_s) { is_expected.to match(/This bottle does not contain the formula file/) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe BuildFlagsError do
|
||||||
|
subject { described_class.new(["-s"]) }
|
||||||
|
|
||||||
|
its(:to_s) { is_expected.to match(/flag:\s+-s\nrequires building tools/) }
|
||||||
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user