voxpupuli / puppet-blacksmith

Ruby Gem with Puppet Module utilities
Apache License 2.0
69 stars 31 forks source link

Enable bumping semantic version elements. #16

Closed danzilio closed 9 years ago

danzilio commented 9 years ago

This may be controversial, but I'd love a discussion. I think this functionality is valuable, but contrary to what I'd like to believe, I don't speak for everybody.

This retains the original behavior of bumping the patch version with module:bump (even though the docs said it bumped the minor version). I think this would technically be a breaking change as it enforces Semantic Versioning wheras we were using Gem::Version previously, which isn't SemVer.

Because of the way Puppet has decided to vendor the 'Semantic' gem we're unable to use that namespace because it conflicts with the vendored implementation. This PR vendors our own implementation of the 'Semantic' gem in the Blacksmith::VersionHelper namespace. Not sure if this is the best way to do it, but I can't think of a better way. Need to make sure the original author is credited appropriately.

carlossg commented 9 years ago

LGTM