Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 14958
Status: resolved
Priority: 0/
Queue: version

People
Owner: jpeacock [...] cpan.org
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

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



Subject: qv() does not create version objects
qv(something) USED to create version objects. By a "version object" I mean something that was testable as a version. Since I updated from the last bug qv() now seems to create a version::vxs object. A version::vxs object is not a version object. Here's the one liner perl -e "use version; qv('5.008')->isa('versiom') or die 'qv() does not create versions';" I don't know when this started, but it's broken Perl::MinimumVersion completely. To get me past this problem I'm going to convert the several dozen qv()s to version->new(). I'd like to change them back at some point :) You might also want to take a look at your level of testing. The fact your unit tests didn't have something like the following may be symptomatic of a general weakness in the testing suite. (I mean that as a genuine constructive criticism) isa_ok( qv('5.008'), 'version' ); If we are going to embed version.pm into pretty much everything it needs to have invulnerable testing scripts.
[JPEACOCK - Thu Oct 6 11:08:32 2005]: Show quoted text
> Bother! qv() is not implemented as a class method, so it cannot be > inherited. I'm going to have to rethink how I have that written now > that I pushed the class implementation into version::vxs. > > John
Oop, didn't set this to reply to you... John
Released 0.49 with fix for this problem. See it on CPAN soon... John