* commit '32014d9afb47ea53a2f6171db7e6c32519b11471': Fix parsing of brew info; install HEAD-only packages fix how we check whether a command failed release v1.2.0 The README.rdoc is converted to README.md add homebrew_tap to README add lwrp for brew tap added 'brew upgrade' and changed 'run_command' to 'get_response_from_command' to control return value add support for option passing to underlying brew command Opscode is now the maintainer of this cookbook
As mentioned in #2, `brew info`'s output changed format a while ago. Since then the provider's `candidate_version` method has been broken and consequently all packages fail to install. This changes `candidate_version` to pull the `brew info` output into Ruby and parse it there. It will return a string that matches the "best" version available by trying the stable version, the devel version, and finally HEAD. It also fixes installation of head-only formulae by automatically adding `--HEAD` to the `brew install` command if it's a head-only formula.
I can't say for sure, but I believe that accepting an exit status of 1 as success is an artifact of this code's extraction from the macports provider. Certainly in its current form chef will happily chug along after a formula fails to install. This commit fixes that.