aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/cmd/list.rb2
-rw-r--r--Library/Homebrew/patch.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 1896b74f1..3f1909afb 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 ebfb8e347..9adb1ffee 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