-
-
03 Mar 2017 09:09:27 UTC
- Distribution: Dist-Zilla-Role-Version-Sanitize
- Module version: 0.002003
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (760 / 1 / 0)
- Kwalitee
Bus factor: 1- 90.91% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (28.32KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Dist::Zilla::Role::Version::Sanitize - Sanitize a version from a plugin
VERSION
version 0.002003
ATTRIBUTES
normal_form
Determines which normal form is used.
Default is :
numify
mantissa
Determines the mandatory length of the
mantissa
for thenumify
normal form.Default is :
6
Which yields:
1.001001 10.001001 100.001001 1000.001001
Etc.
NORMAL FORMS
normal
Normalizes to the notation:
v1 v1.2 v1.2.3 v1.2.3.4
normal_3
Normalizes to the notation
1.2.3 1.2.3.4
Note: Due to the absence of the leading
v
, 3, is the minimum number of places that can be represented in this notation.Accidentally normalizing to
1.2
In this form should raise a fatal exception.
numify
Normalizes to the notation
1.23456789 | ^------^--- The Mantissa | ^------------ Integer part.
And the length for mantissa is forced by
mantissa
, either truncating tomantissa
length, orpaddding
tomantissa
length with0
'sAUTHOR
Kent Fredric <kentnl@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Dist::Zilla::Role::Version::Sanitize, copy and paste the appropriate command in to your terminal.
cpanm Dist::Zilla::Role::Version::Sanitize
perl -MCPAN -e shell install Dist::Zilla::Role::Version::Sanitize
For more information on module installation, please visit the detailed CPAN module installation guide.