jonlives/knife-spork — pull request #14 by bethanybenzur (2012-07-09 21:45:46+00:00)
Title: fixes spork bump when bumping a cookbook that matches cookbook_path

Fixes an issue where cookbook_path is incorrectly stripped of all occurances of the cookbook name from the cookbook_path.

Example: attempting to bump a cookbook named `chef` located at `~/Sites/paperlesspost/paperless-chef/chef` previously failed because cookbook_path was evaluated as `~/Sites/paperlesspost/paperless-/`.

Now the regex will only match occurances at the end of the string and the cookbook_path will be `~/Sites/paperlesspost/paperless-chef/`.