diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 1896b74f1e..3f1909afb9 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -100,7 +100,7 @@ module Homebrew else # --versions without --pinned names.each do |d| versions = d.subdirs.map { |pn| pn.basename.to_s } - next if ARGV.include?("--multiple") && versions.count < 2 + next if ARGV.include?("--multiple") && versions.length < 2 puts "#{d.basename} #{versions*" "}" end end diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index ebfb8e347b..9adb1ffeee 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -130,7 +130,7 @@ class ExternalPatch patch_dir = Pathname.pwd if patch_files.empty? children = patch_dir.children - if (children.count == 1 && children.first.file?) + if (children.length == 1 && children.first.file?) patch_files << children.first.basename else raise MissingApplyError, <<-EOS.undent