From 560fb2dbcb118e9849ffb823f61345e2f9f465ef Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 18 Sep 2011 14:56:42 -0500 Subject: [PATCH] brew-missing: use name accessor on Formula objects Commit 00cd16f changed oudated_brews to return a list of Formula objects rather than a list of lists containing formula information. Now we must access the formula name by using the 'name' accessor rather than an array index. Signed-off-by: Jack Nagel --- Library/Contributions/examples/brew-missing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-missing.rb b/Library/Contributions/examples/brew-missing.rb index 5beca3c92b..2fac4186d4 100755 --- a/Library/Contributions/examples/brew-missing.rb +++ b/Library/Contributions/examples/brew-missing.rb @@ -12,7 +12,7 @@ end def main # Names of outdated brews; they count as installed. - outdated = Homebrew.outdated_brews.collect{ |b| b[1] } + outdated = Homebrew.outdated_brews.collect{ |b| b.name } formuale_to_check = ARGV.formulae rescue installed_brews