Previous version now behaves seamlessly and cleanly enables using 'shipkit-changelog' and 'shipkit-auto-version' plugins together. This change prevents build failures where auto-version plugin deducts next patch version, and provides 'null' previous version. This used to break the 'shipkit-changelog' plugin that requires previous version to generate the changelog.
Major overhaul of the code. Tested by:
adding new tests and cranking up the existing coverage
used in a sample project - the version is correctly deducted
Previous version now behaves seamlessly and cleanly enables using 'shipkit-changelog' and 'shipkit-auto-version' plugins together. This change prevents build failures where auto-version plugin deducts next patch version, and provides 'null' previous version. This used to break the 'shipkit-changelog' plugin that requires previous version to generate the changelog.
Major overhaul of the code. Tested by:
Fixes #42