bmarini/health_inspector — pull request #18 by quandrum (2012-10-01 23:02:20+00:00)
Title: Prefer json metadata when parsing cookbooks

Currently health_inspector parses metadata.rb in cookbooks to determine version. This is slightly outdated, and the current chef server prefers to pull version from metadata.json (and will generate metadata.json when it can.)

This pull request attempts to parse the version from the json metadata first, and reverts to metadata.rb if no json exists.

Possibly another test is needed to determine if metadata.rb and metadata.json have diverged.