Skip Menu |
 

This queue is for tickets about the Perl-Version CPAN distribution.

Report information
The Basics
Id: 109151
Status: patched
Priority: 0/
Queue: Perl-Version

People
Owner: Nobody in particular
Requestors: gsullivan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: patch perl-reversion to bump use_ok in tests
Download (untitled) / with headers
text/plain 218b
I use the Test::More::use_ok function in my tests to check the version number: BEGIN { use_ok('Some::Module', 1.02) } I patched perl-reversion to parse use_ok. If you think it is valuable, please include the patch.
Subject: diff-u.txt
Download diff-u.txt
text/plain 617b
--- ../Perl-Version-1.013.orig/examples/perl-reversion 2014-02-12 15:46:27.000000000 -0500 +++ examples/perl-reversion 2015-11-19 14:06:28.910498000 -0500 @@ -220,6 +220,11 @@ ( .* \s*) \z }x; } +sub version_re_test { + my $ver_re = shift; + return qr{ ^ ( .*? use_ok .*? ) $ver_re ( .* \s*) \z }x; +} + sub version_re_pod { my $ver_re = shift; @@ -336,6 +341,10 @@ goto => 'pod', }, { + re => version_re_test( $ver_re ), + mark => 1, + }, + { re => version_re_perl( $ver_re ), mark => 1, },
Patched in 1.013_03. Thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.