mxcl/homebrew — pull request #11548 by staticfloat (2012-04-10 07:52:35+00:00)
Title: Fix inconsistent errors when passing pathnames vs. formula names

When passing in pathname, if it does not end with ".rb", add ".rb" to filename. Fixes strange error messages, e.g. test with "brew install /usr/local/Library/Formula/z" vs. "/usr/local/Library/Formula/z.rb" vs. "/usr/local/Library/Formula/zxy"