From: adam Date: Sat, 7 Jul 2007 20:08:01 +0000 (+0000) Subject: Prepping for release 0.50 X-Git-Tag: 0.67_01~41 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=fec618b0d38875b57ebe793a70d7d725c81df78d Prepping for release 0.50 --- diff --git a/README b/README index 172ac8e..4647747 100644 --- a/README +++ b/README @@ -135,6 +135,15 @@ AVAILABLE SERIALIZERS { data => $yourdata } + View + Uses a regular Catalyst view. For example, if you wanted to have your + "text/html" and "text/xml" views rendered by TT: + + 'text/html' => [ 'View', 'TT' ], + 'text/xml' => [ 'View', 'XML' ], + + Will do the trick nicely. + By default, Catalyst::Controller::REST will return a "415 Unsupported Media Type" response if an attempt to use an unsupported content-type is made. You can ensure that something is always returned by setting the @@ -260,8 +269,7 @@ IMPLEMENTATION DETAILS ], 'text/x-config-general' => [ 'Data::Serializer', 'Config::General' ] , - 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serializat - ion' ], + 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serialization' ], }, } ); diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index d787fec..b07d1c1 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -16,7 +16,7 @@ use Catalyst::Request::REST; use 5.8.1; our - $VERSION = '0.41'; + $VERSION = '0.50'; # This is wrong in several ways. First, there's no guarantee that # Catalyst.pm has not been subclassed. Two, there's no guarantee that