Skip Menu |

This queue is for tickets about the Net-HTTP-API CPAN distribution.

Report information
The Basics
Id: 90680
Status: open
Priority: 0/
Queue: Net-HTTP-API

People
Owner: Nobody in particular
Requestors: upasna.shukla [...] gmail.com
Cc:
AdminCc:

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



Subject: New Moose may break your code
Date: Sat, 23 Nov 2013 07:59:21 +0530
To: bug-Net-HTTP-API [...] rt.cpan.org
From: "Upasana Shukla" <upasna.shukla [...] gmail.com>
We recently changed the syntax of enum declarations in Moose types. It appears that your module is affected. You can read more about the change here: https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200 We recommend that you take a look at your code to see if it indeed does need to be updated with respect to the latest Moose release, 2.1106-TRIAL. If you have any questions, then please ask either on Moose mailing list : http://lists.perl.org/list/moose.html or on #moose & #moose-dev on irc.perl.org.
Attached patch fixes the issue. Also, the git repo this dist references doesn't appear to exist. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: Net-HTTP-API-0.14.patch
diff -Naur Net-HTTP-API-0.14_orig/lib/Net/HTTP/API/Meta/Method.pm Net-HTTP-API-0.14/lib/Net/HTTP/API/Meta/Method.pm --- Net-HTTP-API-0.14_orig/lib/Net/HTTP/API/Meta/Method.pm 2014-01-22 17:59:55.265508816 -0500 +++ Net-HTTP-API-0.14/lib/Net/HTTP/API/Meta/Method.pm 2014-01-22 18:00:26.641509227 -0500 @@ -18,7 +18,7 @@ => where { $_ =~ m!^/! } => message {"path must start with /"}; -enum Method => qw(HEAD GET POST PUT DELETE); +enum Method => [qw(HEAD GET POST PUT DELETE)]; has path => (is => 'ro', isa => 'UriPath', required => 1); has method => (is => 'ro', isa => 'Method', required => 1); diff -Naur Net-HTTP-API-0.14_orig/lib/Net/HTTP/API/Role/Format.pm Net-HTTP-API-0.14/lib/Net/HTTP/API/Role/Format.pm --- Net-HTTP-API-0.14_orig/lib/Net/HTTP/API/Role/Format.pm 2014-01-22 17:59:55.265508816 -0500 +++ Net-HTTP-API-0.14/lib/Net/HTTP/API/Role/Format.pm 2014-01-22 18:00:18.033509114 -0500 @@ -20,7 +20,7 @@ grep {/^$format$/} keys %{content_type()}; }; -enum 'FormatMode' => qw(content-type append); +enum 'FormatMode' => [qw(content-type append)]; has api_format => ( is => 'rw',