Skip Menu |

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

Report information
The Basics
Id: 28119
Status: resolved
Priority: 0/
Queue: Perl-Version

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

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



Subject: also consider non-module files in perl-reversion
Attached patch will make perl-reversion also look into the bin/ and script/ directories, where generally are also files with version numbers. If you think that people have version numbers in their example files and perl-reversion should find them too, see <http://cpants.perl.org/kwalitee.html#has_example> for what is considered an example file.
Subject: Perl-Version.diff
diff -ru Perl-Version-0.0.8~/examples/perl-reversion Perl-Version-0.0.8/examples/perl-reversion --- Perl-Version-0.0.8~/examples/perl-reversion 2007-06-20 18:03:45.000000000 +0200 +++ Perl-Version-0.0.8/examples/perl-reversion 2007-07-12 05:16:50.000000000 +0200 @@ -26,12 +26,15 @@ ); my $MODULE_RE = qr{ [.] pm $ }x; +my $SCRIPT_RE = qr/ \p{IsWord}+ /x; # filenames # Places to look for files / directories when processing a project my %CONSIDER = ( - 'lib/' => { like => $MODULE_RE }, - 'README' => {}, + 'lib/' => { like => $MODULE_RE }, + 'bin/' => { like => $SCRIPT_RE }, + 'script/' => { like => $SCRIPT_RE }, + 'README' => {}, ); # Maximum number of levels above current directory to search for
Thanks! Applied as r4438.