softprops/semverfi — pull request #6 by sroebuck (2012-09-18 23:45:30+00:00)
Title: Parse short forms of versions and parse garbage as Invalid versions.

Currently versions like "1" and "1.0" are considered to be invalid versions so they are parsed but not ordered 'correctly'. To be strict to the Semver standard it would appear that versions should always be of the form X.Y.Z but, at least from my viewpoint, this library would be more intuitive if it parsed them as if they were "X.0.0" or "X.Y.0".

This patch makes that change and also treats any 'garbage' as an `Invalid` version and parses it without throwing an error.