Skip Menu |

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

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

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

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



Subject: Extraneous version string found in README
My README contains the following text, which is just part of some documentation and not a version specifier: my $b = ExtUtils::CBuilder->new( quiet => 1 ); This line seems to be picked up perl-reversion as $VERSION=1 though. -Ken
On Sun Mar 08 15:46:41 2009, KWILLIAMS wrote: Show quoted text
> My README contains the following text, which is just part of some > documentation and not a > version specifier: > > my $b = ExtUtils::CBuilder->new( quiet => 1 ); > > This line seems to be picked up perl-reversion as $VERSION=1 though.
Hi Ken, Can you force it to work by specifying --current <current version> ? I think it's going to work better if I reorganise it so that it infers the current version from the formally structured files (.pms etc) and then looks for the version it inferred in the unstructured files.
I've just released 1.009 which improves the heuristic used for finding version strings in plain text files. It now scans the structured files first to work out what the project version is then searches only for that version number in the unstructured files. Give it a spin and see if it works for you :)
Subject: Re: [rt.cpan.org #43946] Extraneous version string found in README
Date: Mon, 9 Mar 2009 11:48:48 -0600
To: bug-Perl-Version [...] rt.cpan.org
From: Ken Williams <kenahoo [...] gmail.com>
On Mon, Mar 9, 2009 at 6:07 AM, Andy Armstrong via RT <bug-Perl-Version@rt.cpan.org> wrote: Show quoted text
> > Can you force it to work by specifying --current <current version> ?
Yup, that works fine. It's a slightly different use case, but that's indeed the workaround I ended up using. Thanks, -Ken