Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Module-Extract-VERSION CPAN distribution.

Report information
The Basics
Id: 87600
Status: rejected
Priority: 0/
Queue: Module-Extract-VERSION

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

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



Subject: does not extract correct version for modules with a dev release
perl -MData::Dumper -MModule::Extract::VERSION -wle'print Dumper( Module::Extract::VERSION->parse_version_safely($ARGV[0]))' `perldoc -lm Test::More` $VAR1 = '$'; $VAR2 = 'VERSION'; $VAR3 = '0.98_05'; $VAR4 = '/Users/ether/.perlbrew/libs/19.2@std/lib/perl5/Test/More.pm'; $VAR5 = 20; The version should be '0.9805', not '0.98_05'. FWIW, Module::Metadata has the same problem (see RT#87438, RT#87599).
On Sun Aug 04 15:16:07 2013, ETHER wrote: Show quoted text
> perl -MData::Dumper -MModule::Extract::VERSION -wle'print Dumper( > Module::Extract::VERSION->parse_version_safely($ARGV[0]))' `perldoc > -lm Test::More` > $VAR1 = '$'; > $VAR2 = 'VERSION'; > $VAR3 = '0.98_05';
The extracted value is exactly the same as the value in that file. This module does nothing to try to interpret what that value should mean.
On 2013-08-04 12:39:11, BDFOY wrote: Show quoted text
> The extracted value is exactly the same as the value in that file. > This module does nothing to try to interpret what that value should > mean.
Okay, so given that this module won't be of any use for interpreting versions for dev releases, shouldn't that be noted as a caveat in the documentation?
Subject: Re: [rt.cpan.org #87600] does not extract correct version for modules with a dev release
Date: Sun, 4 Aug 2013 22:00:50 -0400
To: bug-Module-Extract-VERSION [...] rt.cpan.org
From: brian d foy <bdfoy [...] cpan.org>
Show quoted text
> Okay, so given that this module won't be of any use for interpreting versions for dev releases, shouldn't that be noted as a caveat in the documentation?
That's a pretty aggressive statement. If it has an underscore, it's a dev version. If it doesn't do what you want, use something else. It's doing exactly what I want and what it advertises. It exactly extracts the string that the programmer assigned to $VERSION. Please do not reply to this. The ticket is rejected. -- brian d foy <brian.d.foy@gmail.com> http://www.pair.com/~comdog/