Object#methods returns an array of symbols on 1.9+

Fixes Homebrew/homebrew#31926.
This commit is contained in:
Jack Nagel 2014-08-27 15:46:47 -05:00
parent f7f8ca45fc
commit b46f8caa8f

View File

@ -1126,7 +1126,7 @@ module Homebrew
methods = if ARGV.named.empty?
# 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
ARGV.named
end.grep(/^check_/).reverse.uniq.reverse