r49@latte: adam | 2006-12-03 12:30:40 -0800
authoradam <adam@4ad37cd2-5fec-0310-835f-b3785c72a374>
Sun, 3 Dec 2006 20:27:23 +0000 (20:27 +0000)
committeradam <adam@4ad37cd2-5fec-0310-835f-b3785c72a374>
Sun, 3 Dec 2006 20:27:23 +0000 (20:27 +0000)
commite601addaf89882fccbc824c1a53328f0d049b32b
treee319d1121e64f1a505ca1775732ff39429683b84
parent17d910bd120ee243917756ae8c4281e621a4f986
 r49@latte:  adam | 2006-12-03 12:30:40 -0800
 Fixed things so that not having a Serialization module returns 415.
 Fixed things so that failure to Deserialize sends the proper status.
 Refactored the Plugin loading to Catalyst::Action::SerializeBase.
 Updated the Documentation.
 Added a whole raft of serializers. (JSON, all the Data::Serializer
   supported ones, and XML::Simple)
 Added test cases.
 Refactored the Catalyst::Action::REST dispatch, so that the default
   method is called before any _METHOD handlers.  In addition, moved
   the 405 Not Implemented handler to be foo_not_implemented, instead
   of the default sub.  (daisuke++ pointed out the inconsistency and
   provided a patch, and I added the foo_not_implemented support)
 Added in automated OPTIONS handler, which constructs the allow
   header for you, just like the 405 handler.  Can be overridden
   with a normal _METHOD sub.
 Refactored Test::Rest, so that it uses closures to create the
   very similar $test->method() subs.
 Added tests for Catalyst::Action::REST.
27 files changed:
Changelog
lib/Catalyst/Action/Deserialize.pm
lib/Catalyst/Action/Deserialize/Data/Serializer.pm
lib/Catalyst/Action/Deserialize/JSON.pm [new file with mode: 0644]
lib/Catalyst/Action/Deserialize/XML/Simple.pm [new file with mode: 0644]
lib/Catalyst/Action/Deserialize/YAML.pm
lib/Catalyst/Action/Serialize.pm
lib/Catalyst/Action/Serialize/Data/Serializer.pm
lib/Catalyst/Action/Serialize/JSON.pm [new file with mode: 0644]
lib/Catalyst/Action/Serialize/XML/Simple.pm [new file with mode: 0644]
lib/Catalyst/Action/Serialize/YAML.pm
lib/Catalyst/Action/Serialize/YAML/HTML.pm [new file with mode: 0644]
lib/Catalyst/Action/SerializeBase.pm [new file with mode: 0644]
lib/Catalyst/Controller/REST.pm
t/02-data-serializer.t
t/02-json.t [copied from t/01-yaml.t with 65% similarity]
t/02-xml-simple.t [copied from t/01-yaml.t with 60% similarity]
t/02-yaml-html.t [new file with mode: 0644]
t/02-yaml.t [moved from t/01-yaml.t with 100% similarity]
t/broken/Catalyst/Action/Deserialize/Broken.pm [new file with mode: 0644]
t/broken/Catalyst/Action/Serialize/Broken.pm [new file with mode: 0644]
t/catalyst-action-deserialize.t [new file with mode: 0644]
t/catalyst-action-serialize-accept.t [new file with mode: 0644]
t/catalyst-action-serialize-query.t [new file with mode: 0644]
t/catalyst-action-serialize.t [new file with mode: 0644]
t/lib/Test/Rest.pm
t/lib/Test/Serialize.pm [new file with mode: 0644]