Object#methods returns an array of symbols on 1.9+
Fixes Homebrew/homebrew#31926.
This commit is contained in:
parent
f7f8ca45fc
commit
b46f8caa8f
@ -1126,7 +1126,7 @@ module Homebrew
|
|||||||
|
|
||||||
methods = if ARGV.named.empty?
|
methods = if ARGV.named.empty?
|
||||||
# put slowest methods last
|
# put slowest methods last
|
||||||
checks.methods.sort << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew"
|
checks.methods.map(&:to_s).sort << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew"
|
||||||
else
|
else
|
||||||
ARGV.named
|
ARGV.named
|
||||||
end.grep(/^check_/).reverse.uniq.reverse
|
end.grep(/^check_/).reverse.uniq.reverse
|
||||||
|
Loading…
x
Reference in New Issue
Block a user