Test::Version
Test::Version is a great plugin. It creates a test which checks modules in distribution: every module must have $VERSION variable defined, and its value must be a valid version string. There are two notion of "validity": lax and strict. (See "Regular Expressions for Version Parsing" in version::Internals for definitions of lax and strict).
$VERSION
I want to use strict check:
[Test::Version] is_strict = 1
Unfortunately, this does not work for trial releases: any trial release definitely fails the test, because strict check does not allow underscore in version string. Thus, before every trial release I have to reset is_strict option to zero, and return it back to one after release. This is boring and error-prone. I want to have "adaptive strictness": use lax check in case of trial release and strict check otherwise.
is_strict
Test::Version maintainer Graham Ollis said: This is a good idea! I'll see if I can implement it. However, implementation may take some time. With a little help from Hook, I can easily get achieve adaptive strictness right now.
Hook
To install Dist::Zilla::Plugin::Hook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Hook
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Hook
For more information on module installation, please visit the detailed CPAN module installation guide.