Dist::Zilla::Plugin::Author::HAYOBAAN::NextVersion - Adapted version of the Git::NextVersion plugin to allow influencing version bumping.
Provides the next version number, just as Git::NextVersion would do, including specifying the version using the V environment variable.
Unlike Git::NextVersion, you are, however, able to influence if and how the version is bumped:
By setting the attribute "include_minor_version" to true you specify that the version string should include a minor version (i.e., end in _xxx).
Likewise, setting "remove_minor_version" to true, will remove any existing minor version.
Finally, setting the attribute "keep_version" to a true value will keep the version as is (ignoring above settings).
Specifying a specific version using the V environment variable, overrides all of these settings.
Add the following to your dist.ini:
include_minor_version = 0
remove_minor_version = 0
keep_version = 0
Specifies that a minor version should be included in the version string. This will add _001 to the current version if the current version string did not already end in _xxx.
Specifies that an existing minor version should be removed from the existing version string. This will remove any _xxx from the end of the current version string.
Note: overrides "include_minor_version".
Specifies that the version should be kept the same.
Please report any bugs or feature requests on the bugtracker website.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
The original Git::NextVersion plugin.
Hayo Baan <email@example.com>
This software is copyright (c) 2014 by Hayo Baan.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::PluginBundle::Author::HAYOBAAN, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.