ivey/thor-scmversion — pull request #13 by bluepojo (2012-10-12 01:21:41+00:00)
Title: Prerelease bump and various code quality improvements

This PR adds prerelease support in a stricter fashion than is defined in semver v2.0.0-rc.1

Instead of allowing any string to represent the prerelease, scmversion enforces a . format for the prerelease segment, for example:

`1.2.3-alpha.1` instead of `1.2.3-alpha`

This is easier to automate and sort and provides as much expressiveness as would otherwise be gained by a fully to spec prerelease implementation.

I also added comments in several places where they were lacking and added some new specs on old functionality to bring up the overall code quality.