From f42d65317e8aefc4436c320237468acdc76cbc7c Mon Sep 17 00:00:00 2001 From: Chisel Date: Wed, 8 Jan 2014 14:51:12 +0000 Subject: Wrap enum values in arrayref (franckcuny/net-http-spore#30) --- lib/Net/HTTP/Spore/Meta/Types.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Net/HTTP/Spore/Meta/Types.pm b/lib/Net/HTTP/Spore/Meta/Types.pm index 3089da3..a8b4643 100644 --- a/lib/Net/HTTP/Spore/Meta/Types.pm +++ b/lib/Net/HTTP/Spore/Meta/Types.pm @@ -12,7 +12,7 @@ subtype UriPath, where { $_ =~ m!^/! }, message {"path must start with /"}; -enum HTTPMethod, qw(OPTIONS HEAD GET POST PUT DELETE TRACE PATCH); +enum HTTPMethod, [qw(OPTIONS HEAD GET POST PUT DELETE TRACE PATCH)]; subtype Boolean, as Int, -- cgit 1.4.1 From 7253523a6fb3c4a7123397948e774ab02198b5c3 Mon Sep 17 00:00:00 2001 From: Chisel Date: Wed, 8 Jan 2014 15:58:51 +0000 Subject: Use Class::Load::load_class instead of Class::MOP::load_class This should resolve franckcuny/net-http-spore/#32 No new deps need to be specified as the dist uses [AutoPrereqs] --- lib/Net/HTTP/Spore/Role/Middleware.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Net/HTTP/Spore/Role/Middleware.pm b/lib/Net/HTTP/Spore/Role/Middleware.pm index 88d64d4..7fe7310 100644 --- a/lib/Net/HTTP/Spore/Role/Middleware.pm +++ b/lib/Net/HTTP/Spore/Role/Middleware.pm @@ -1,6 +1,7 @@ package Net::HTTP::Spore::Role::Middleware; use Moose::Role; +use Class::Load; use Scalar::Util qw/blessed/; has middlewares => ( @@ -16,7 +17,7 @@ has middlewares => ( sub _load_middleware { my ( $self, $mw, $cond, @args ) = @_; - Class::MOP::load_class($mw) unless blessed($mw); + Class::Load::load_class($mw) unless blessed($mw); my $code = $mw->wrap( $cond, @args ); $self->_trace_msg('== enabling middleware %s', $mw); @@ -51,7 +52,7 @@ sub enable_if { confess "condition must be a code ref" if (!$cond || ref $cond ne 'CODE'); if(ref($mw) eq 'CODE'){ # anonymous middleware - Class::MOP::load_class('Net::HTTP::Spore::Middleware'); + Class::Load::load_class('Net::HTTP::Spore::Middleware'); my $anon = Class::MOP::Class->create_anon_class( superclasses => ['Net::HTTP::Spore::Middleware'], methods => { -- cgit 1.4.1 From c6a5a305f196a047b0e9587f5b3ddb3893686b1e Mon Sep 17 00:00:00 2001 From: Chisel Date: Thu, 30 Jan 2014 11:34:45 +0000 Subject: Set 'bytes' encoding for t/specs/content.tgz iAs per: https://github.com/rjbs/Dist-Zilla/issues/270 --- dist.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist.ini b/dist.ini index 6dc745b..56d7248 100644 --- a/dist.ini +++ b/dist.ini @@ -22,6 +22,10 @@ repository.web = https://github.com/franckcuny/net-http-spore bugtracker.web = https://github.com/franckcuny/net-http-spore/issues homepage = http://lumberjaph.net/net-http-spore/ +[Encoding] +encoding = bytes +filename = t/specs/content.tgz + [PodWeaver] [AutoPrereqs] [ReadmeFromPod] -- cgit 1.4.1