mxcl/homebrew — pull request #16108 by theunraveler (2012-11-16 12:39:34+00:00)
Title: `brew leaves` breaks for formulas with no `deps`

Certain formula in the `josegonzalez/homebrew-php` repo (https://github.com/josegonzalez/homebrew-php/blob/master/Formula/composer.rb, for example) have separate classes for verifying dependencies. This confuses the `brew leaves` command, which I guess expects all classes to have a `deps` method.

I'm not sure if this is correct place to fix the problem, but I added an additional check to the `brew-leaves` script that ignores classes without a `deps` method. This seems to fix the problem (i.e. `brew leaves` now runs without errors), but I don't know if this is something that should instead be fixed in the `josegonzalez/homebrew-php` repo.

Steps to reproduce:
`brew tap josegonzalez/homebrew-php`
`brew install composer`
`brew leaves`