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
Download (untitled) / with headers
text/plain 352b
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
Download Perl-Version.diff
text/x-diff 744b
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.


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.