From c79d7272c89f8f99c88b454cf4b854b727179791 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 20 Mar 2013 22:20:30 -0500 Subject: [PATCH] Move Formula.all to compat --- Library/Homebrew/compat/compatibility.rb | 5 +++++ Library/Homebrew/formula.rb | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index aee5da63fb..6a473be479 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -114,6 +114,11 @@ class Formula def recursive_deps Formula.expand_deps(self).flatten.uniq end + + def self.all + opoo "Formula.all is deprecated, use Formula.map instead" + map + end end class UnidentifiedFormula < Formula diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 54da64fead..bd023f8bcf 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -302,10 +302,6 @@ class Formula class << self include Enumerable end - def self.all - opoo "Formula.all is deprecated, simply use Formula.map" - map - end def self.installed HOMEBREW_CELLAR.children.map{ |rack| factory(rack.basename) rescue nil }.compact