Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-ReportVersions-Tiny CPAN distribution.

Maintainer(s)' notes

This module is deprecated!

This distribution has reached end-of-life now that better alternatives exist.

The recommended alternative is Dist::Zilla::Plugin::Test::ReportPrereqs.

Report information
The Basics
Id: 63912
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-ReportVersions-Tiny

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

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



Subject: Fails to handle module versions in dotted decimal format
Hello, As usual, thanks again for such an excellent module! I noticed a minor bug when comparing my dists against their prereqs today. It kept saying "Test::NoPlan" was specified as "any version" but the prereq showed it was listed as "0.0.6"! The bug is line 70 in v1.02: $ver = 'any version' if $ver == 0; Doing a numeric comparison makes Perl convert 0.0.6 into 0 ( or something entirely funky ) and naturally it screws up. The fix is to change it into an 'eq' comparison, which will work. $ver = 'any version' if $ver eq '0'; If you want to really dig around and figure out why it happens, you're welcome to do it ( homework exercise for you, ha! ) Thanks again! -- ~Apocalypse
Subject: Re: [rt.cpan.org #63912] Fails to handle module versions in dotted decimal format
Date: Sat, 25 Dec 2010 12:37:18 +1100
To: bug-Dist-Zilla-Plugin-ReportVersions-Tiny [...] rt.cpan.org
From: Daniel Pittman <daniel [...] rimspace.net>
Show quoted text
>  As usual, thanks again for such an excellent module! I noticed a minor > bug when comparing my dists against their prereqs today. It kept saying > "Test::NoPlan" was specified as "any version" but the prereq showed it > was listed as "0.0.6"! > >  The bug is line 70 in v1.02: >  $ver = 'any version' if $ver == 0;
Thank you very much for the bug report, especially for including the detailed fix. I have released version 1.03 to CPAN which includes the fix, as well as testing to verify that it never reverts. Sorry for the relatively long delay in resolving such a relatively trivial issue, but I am just about to move across the world, so time has been short. Please let me know of any further issues, Regards, Daniel -- ✣ Daniel Pittman            ✉ daniel@rimspace.net            ☎ +61 401 155 707               ♽ made with 100 percent post-consumer electrons
I've verified that v1.03 correctly fixes this, thanks! -- ~Apocalypse