Skip Menu |

This queue is for tickets about the WWW-CPANRatings CPAN distribution.

Report information
The Basics
Id: 103118
Status: new
Priority: 0/
Queue: WWW-CPANRatings

People
Owner: Nobody in particular
Requestors: cpan [...] zoffix.com
Cc:
AdminCc:

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



Subject: [PATCH] Can't get review dates / Tests failing
Hey, Seems they added "(permalink)" to the text of the dates. The tests now fail and the module doesn't grab review dates. Attached is the patch that fixes the issue. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: WWW-CPANRatings.patch
--- WWW-CPANRatings-0.03/lib/WWW/CPANRatings.pm 2011-09-21 14:08:57.000000000 -0400 +++ WWW-CPANRatings-0.03-fixed/lib/WWW/CPANRatings.pm 2015-03-25 14:17:26.721059905 -0400 @@ -161,7 +161,7 @@ $review->{dist} =~ s{^\s*}{}; $review->{dist} =~ s{\s*$}{}; - if( $review->{attrs} =~ m{([0-9-T:]+)\s*$} ) { + if( $review->{attrs} =~ m{([0-9-T:]+)\s*(?:\(permalink\))?\s*$} ) { $review->{created_on} = DateTime::Format::DateParse->parse_datetime( $1 ); }