NAME
Dist::Zilla::Plugin::Author::HAYOBAAN::NextVersion - Adapted version of the Git::NextVersion plugin to allow influencing version bumping.
VERSION
version 0.014
DESCRIPTION
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.
USAGE
Add the following to your dist.ini:
[Author::HAYOBAAN::NextVersion]
include_minor_version = 0
remove_minor_version = 0
keep_version = 0
ATTRIBUTES
include_minor_version
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
.
Default: false
remove_minor_version
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".
Default: false
keep_version
Specifies that the version should be kept the same.
Default: false
BUGS
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.
SEE ALSO
The original Git::NextVersion plugin.
AUTHOR
Hayo Baan <info@hayobaan.com>
COPYRIGHT AND LICENSE
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.