Given version string, increments the next to last version number. Prerelease and build metadata information is ignored. @param ver Does not need to be a valid semver version. @return Valid semver version
The semantics of this are the same as for the "approximate" version specifier from rubygems. (https://github.com/rubygems/rubygems/tree/81d806d818baeb5dcb6398ca631d772a003d078e/lib/rubygems/version.rb)
1.5 -> 2.0 1.5.67 -> 1.6.0 1.5.67-a -> 1.6.0
See Implementation
Given version string, increments the next to last version number. Prerelease and build metadata information is ignored. @param ver Does not need to be a valid semver version. @return Valid semver version
The semantics of this are the same as for the "approximate" version specifier from rubygems. (https://github.com/rubygems/rubygems/tree/81d806d818baeb5dcb6398ca631d772a003d078e/lib/rubygems/version.rb)