diff options
| author | Misty De Meo | 2013-04-02 16:28:46 -0500 | 
|---|---|---|
| committer | Misty De Meo | 2013-04-02 16:28:46 -0500 | 
| commit | ebddb7d4d2e160012f64ab1170502788a020d3ca (patch) | |
| tree | 3416b2d109990cbd3dc558265cc92a7af61e9faf /Library/Homebrew | |
| parent | b4e940a48dcf6aab207c7acf85c50a98d75b8c5f (diff) | |
| download | homebrew-ebddb7d4d2e160012f64ab1170502788a020d3ca.tar.bz2 | |
tap/untap: use Array#length, not #count
Array#count was apparently introduced in 1.8.7.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/untap.rb | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 5bd37548f..52e03ca17 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -29,7 +29,7 @@ module Homebrew extend self      files = []      tapd.find_formula{ |file| files << tapd.basename.join(file) }      link_tap_formula(files) -    puts "Tapped #{files.count} formula" +    puts "Tapped #{files.length} formula"      # Figure out if this repo is private      # curl will throw an exception if the repo is private (Github returns a 404) diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb index abfa6df22..77e8f8688 100644 --- a/Library/Homebrew/cmd/untap.rb +++ b/Library/Homebrew/cmd/untap.rb @@ -21,7 +21,7 @@ module Homebrew extend self      tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) }      unlink_tap_formula(files)      rm_rf tapd -    puts "Untapped #{files.count} formula" +    puts "Untapped #{files.length} formula"    end    def unlink_tap_formula formulae  | 
