tap/untap: use Array#length, not #count

Array#count was apparently introduced in 1.8.7.
This commit is contained in:
Misty De Meo 2013-04-02 16:28:46 -05:00
parent d13a39d1ac
commit 22f2f6aed3
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module Homebrew extend self
files = [] files = []
tapd.find_formula{ |file| files << tapd.basename.join(file) } tapd.find_formula{ |file| files << tapd.basename.join(file) }
link_tap_formula(files) link_tap_formula(files)
puts "Tapped #{files.count} formula" puts "Tapped #{files.length} formula"
# Figure out if this repo is private # Figure out if this repo is private
# curl will throw an exception if the repo is private (Github returns a 404) # curl will throw an exception if the repo is private (Github returns a 404)

View File

@ -21,7 +21,7 @@ module Homebrew extend self
tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) } tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) }
unlink_tap_formula(files) unlink_tap_formula(files)
rm_rf tapd rm_rf tapd
puts "Untapped #{files.count} formula" puts "Untapped #{files.length} formula"
end end
def unlink_tap_formula formulae def unlink_tap_formula formulae