From: adam Date: Fri, 1 Dec 2006 01:31:32 +0000 (+0000) Subject: Added documentation and CPAN requirements updates from Daisuke Maki X-Git-Tag: 1.08~289 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=commitdiff_plain;h=33e5de96f7c37e7b64611c77d305b1bf8d26b2d6 Added documentation and CPAN requirements updates from Daisuke Maki Added Daisuke Maki to the Contributers section Updated the Changelog for release Added a MANIFEST.SKIP --- diff --git a/Changelog b/Changelog index 92584e9..4b4d0d8 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,8 @@ -Sun Nov 19 16:24:20 PST 2006 (adam) +Thu Nov 30 17:14:51 PST 2006 (adam) - Release 0.2 + Added documentation patch from Daisuke Maki (daisuke@endeworks.jp) + Added dependency patch from Daisuke Maki (daisuke@endeworks.jp) + +Sun Nov 19 16:24:20 PST 2006 (adam) - Release 0.1 Added status_accepted (Code 202) Added a first pass at documentation. diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP new file mode 100644 index 0000000..53f45c5 --- /dev/null +++ b/MANIFEST.SKIP @@ -0,0 +1,18 @@ +# Version control files and dirs. +\bRCS\b +\bCVS\b +,v$ +\B\.svn\b + +# Makemaker generated files and dirs. +^MANIFEST\. +^Makefile$ +^blib/ +^MakeMaker-\d + +# Temp, old and emacs backup files. +~$ +\.old$ +^#.*#$ +^\.# + diff --git a/Makefile.PL b/Makefile.PL index eb9a46d..a1e14ab 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,13 +5,16 @@ perl_version '5.8.1'; name 'Catalyst-Action-REST'; all_from 'lib/Catalyst/Action/REST.pm'; -'Catalyst' => '5.7001', -'Params::Validate' => '0.76', -'YAML::Syck' => '0.67', -'Module::Pluggable::Object' => undef, -'LWP::UserAgent' => '2.033', -'Data::Serializer' => '0.36', -'Class::Inspector' => '1.13', +requires('Catalyst' => '5.7001'); +requires('Params::Validate' => '0.76'); +requires('YAML::Syck' => '0.67'); +requires('Module::Pluggable::Object' => undef); +requires('LWP::UserAgent' => '2.033'); +requires('Data::Serializer' => '0.36'); +requires('Class::Inspector' => '1.13'); + +auto_include; +auto_install; WriteAll; diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 9adb921..af24f0e 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -15,7 +15,7 @@ use Class::Inspector; use 5.8.1; my -$VERSION = '0.1'; +$VERSION = '0.2'; =head1 NAME @@ -110,6 +110,10 @@ Adam Jacob , with lots of help from mst and jrockway Marchex, Inc. paid me while I developed this module. (http://www.marchex.com) +=head1 CONTRIBUTERS + +Daisuke Maki + =head1 LICENSE You may distribute this code under the same terms as Perl itself. diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index c2393ec..892fb9b 100644 --- a/lib/Catalyst/Controller/REST.pm +++ b/lib/Catalyst/Controller/REST.pm @@ -175,6 +175,8 @@ sub status_created { my $location; if (ref($p{'location'})) { $location = $p{'location'}->as_string; + } else { + $location = $p{'location'}; } $c->response->status(201); $c->response->header('Location' => $location); @@ -220,9 +222,7 @@ Example: $self->status_bad_request( $c, - entity => { - message => "Cannot do what you have asked!", - } + message => "Cannot do what you have asked!", ); =cut @@ -251,9 +251,7 @@ Example: $self->status_not_found( $c, - entity => { - message => "Cannot find what you were looking for!", - } + message => "Cannot find what you were looking for!", ); =cut