Fix documentation about numify() and stringify() trailing zeros
This commit is contained in:
parent
77a63ea152
commit
6337759ac2
@ -10,6 +10,9 @@ Summary: Perl extension for Version Objects
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/version/
|
||||
Source0: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{module_version}.tar.gz
|
||||
# Fix documentation about numify() and stringify() trailing zeros,
|
||||
# CPAN RT#64635, CPAN RT#122858
|
||||
Patch0: version-0.9918-doc_numify_stringify_trailing_zeros.patch
|
||||
# Build
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
@ -71,6 +74,7 @@ strongly urged to set 0.77 as a minimum in your code.
|
||||
|
||||
%prep
|
||||
%setup -q -n version-%{module_version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1
|
||||
@ -100,6 +104,8 @@ make test
|
||||
%changelog
|
||||
* Fri Mar 09 2018 Petr Pisar <ppisar@redhat.com> - 6:0.99.18-7
|
||||
- Remove useless build-time dependency on ExtUtils::CBuilder
|
||||
- Fix documentation about numify() and stringify() trailing zeros
|
||||
(CPAN RT#64635, CPAN RT#122858)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6:0.99.18-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
31
version-0.9918-doc_numify_stringify_trailing_zeros.patch
Normal file
31
version-0.9918-doc_numify_stringify_trailing_zeros.patch
Normal file
@ -0,0 +1,31 @@
|
||||
This corrects numify() and stringify() documentation to match code bahavior
|
||||
that exists for ages.
|
||||
|
||||
CPAN RT#64635
|
||||
CPAN RT#122858
|
||||
|
||||
diff -r 2e2892f29539 lib/version.pod
|
||||
--- a/lib/version.pod Sun May 29 07:50:12 2016 -0400
|
||||
+++ b/lib/version.pod Fri Mar 09 14:38:36 2018 +0100
|
||||
@@ -266,10 +266,9 @@
|
||||
|
||||
=head2 numify()
|
||||
|
||||
-Returns a value representing the object in a pure decimal form without
|
||||
-trailing zeroes.
|
||||
+Returns a value representing the object in a pure decimal.
|
||||
|
||||
- version->declare('v1.2')->numify; # 1.002
|
||||
+ version->declare('v1.2')->numify; # 1.002000
|
||||
version->parse('1.2')->numify; # 1.200
|
||||
|
||||
=head2 stringify()
|
||||
@@ -280,7 +279,7 @@
|
||||
a version object is interpolated into a string.
|
||||
|
||||
version->declare('v1.2')->stringify; # v1.2
|
||||
- version->parse('1.200')->stringify; # 1.200
|
||||
+ version->parse('1.200')->stringify; # 1.2
|
||||
version->parse(1.02_30)->stringify; # 1.023
|
||||
|
||||
=head1 EXPORTED FUNCTIONS
|
||||
Loading…
Reference in New Issue
Block a user