Skip to content
Snippets Groups Projects
Commit c16ee6f3 authored by Jack Nagel's avatar Jack Nagel
Browse files

Don't reinvent IndexError here

parent 7b8f4b3d
No related branches found
No related tags found
No related merge requests found
......@@ -206,23 +206,18 @@ module MacOS extend self
}
def compilers_standard?
xcode = Xcode.version
unless STANDARD_COMPILERS.keys.include? xcode
onoe <<-EOS.undent
Homebrew doesn't know what compiler versions ship with your version of
Xcode. Please `brew update` and if that doesn't help, file an issue with
the output of `brew --config`:
https://github.com/mxcl/homebrew/issues
Thanks!
EOS
return
end
STANDARD_COMPILERS[xcode].all? do |method, build|
STANDARD_COMPILERS.fetch(Xcode.version.to_s).all? do |method, build|
MacOS.send(:"#{method}_version") == build
end
rescue IndexError
onoe <<-EOS.undent
Homebrew doesn't know what compiler versions ship with your version
of Xcode (#{Xcode.version}). Please `brew update` and if that doesn't help, file
an issue with the output of `brew --config`:
https://github.com/mxcl/homebrew/issues
Thanks!
EOS
end
def app_with_bundle_id id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment