jonlives/knife-spork — pull request #5 by russss (2012-05-29 12:49:42+00:00)
Title: Make version bumping more flexible

Some of my old metadata.rb files have versions in the form of "x.y" and
not "x.y.z", however Chef::CookbookLoader returns them in the "x.y.z" form.

This means that the gsub in update_metadata didn't work. This change
makes it a bit more flexible.