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

Don't use Hash#first

Fixes Homebrew/homebrew#31360.
parent ed5eef82
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class CompilerFailure
def self.create(spec, &block)
# Non-Apple compilers are in the format fails_with compiler => version
if spec.is_a?(Hash)
_, major_version = spec.first
_, major_version = spec.each { |e| break e }
name = "gcc-#{major_version}"
# so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible
version = "#{major_version}.999"
......
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