[Catalyst-commits] r6849 - in
trunk/historical/Catalyst-View-REST-YAML: . lib lib/Catalyst
lib/Catalyst/View lib/Catalyst/View/REST t
bricas at dev.catalyst.perl.org
bricas at dev.catalyst.perl.org
Thu Sep 6 14:11:46 GMT 2007
Author: bricas
Date: 2007-09-06 14:11:46 +0100 (Thu, 06 Sep 2007)
New Revision: 6849
Added:
trunk/historical/Catalyst-View-REST-YAML/Changes
trunk/historical/Catalyst-View-REST-YAML/MANIFEST.SKIP
trunk/historical/Catalyst-View-REST-YAML/Makefile.PL
trunk/historical/Catalyst-View-REST-YAML/lib/
trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/
trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/
trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/REST/
trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/REST/YAML.pm
trunk/historical/Catalyst-View-REST-YAML/t/
trunk/historical/Catalyst-View-REST-YAML/t/01use.t
trunk/historical/Catalyst-View-REST-YAML/t/02pod.t
trunk/historical/Catalyst-View-REST-YAML/t/03podcoverage.t
Log:
bring in old REST::YAML view to be depcrecated on CPAN
Added: trunk/historical/Catalyst-View-REST-YAML/Changes
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/Changes (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/Changes 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,4 @@
+Revision history for Perl extension Catalyst::View::REST::YAML.
+
+0.01 Fri Jan 28 22:00:00 2005
+ - first release
Added: trunk/historical/Catalyst-View-REST-YAML/MANIFEST.SKIP
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/MANIFEST.SKIP (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/MANIFEST.SKIP 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,29 @@
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
+
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+
+# Avoid temp and backup files.
+~$
+\.tmp$
+\.old$
+\.bak$
+\#$
+\b\.#
+\.DS_Store$
+
+# No tarballs!
+\.gz$
Added: trunk/historical/Catalyst-View-REST-YAML/Makefile.PL
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/Makefile.PL (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/Makefile.PL 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,12 @@
+use inc::Module::Install 0.67;
+
+name 'Catalyst-View-REST-YAML';
+all_from 'lib/Catalyst/View/REST/YAML.pm';
+
+requires 'Catalyst::Runtime';
+requires 'YAML';
+
+requires 'Test::More';
+
+auto_install;
+WriteAll;
Added: trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/REST/YAML.pm
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/REST/YAML.pm (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/lib/Catalyst/View/REST/YAML.pm 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,62 @@
+package Catalyst::View::REST::YAML;
+
+use strict;
+use base 'Catalyst::Base';
+use YAML;
+
+our $VERSION = '0.02';
+
+=head1 NAME
+
+Catalyst::View::REST::YAML - (DEPRECATED) YAML View Class
+
+=head1 SYNOPSIS
+
+ # lib/MyApp/View/REST.pm
+ package MyApp::View::REST;
+
+ use base 'Catalyst::View::REST::YAML';
+
+ 1;
+
+ $c->forward('MyApp::View::REST');
+
+=head1 DEPRECATION NOTICE
+
+This module has been deprecated in favor of L<Catalyst::Action::REST>.
+
+=head1 DESCRIPTION
+
+This is the C<YAML> view class.
+
+=head2 OVERLOADED METHODS
+
+=head3 process
+
+Serializes $c->stash to $c->response->output.
+
+=cut
+
+sub process {
+ my ( $self, $c ) = @_;
+ $c->response->headers->content_type('text/yaml-1.0');
+ $c->response->output( Dump $c->stash );
+ return 1;
+}
+
+=head1 SEE ALSO
+
+L<Catalyst>.
+
+=head1 AUTHOR
+
+Sebastian Riedel, C<sri at cpan.org>
+
+=head1 COPYRIGHT
+
+This program is free software, you can redistribute it and/or modify it under
+the same terms as Perl itself.
+
+=cut
+
+1;
Added: trunk/historical/Catalyst-View-REST-YAML/t/01use.t
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/t/01use.t (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/t/01use.t 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,3 @@
+use Test::More tests => 1;
+
+use_ok('Catalyst::View::REST::YAML');
Added: trunk/historical/Catalyst-View-REST-YAML/t/02pod.t
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/t/02pod.t (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/t/02pod.t 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,7 @@
+use Test::More;
+
+eval "use Test::Pod 1.14";
+plan skip_all => 'Test::Pod 1.14 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_files_ok();
Added: trunk/historical/Catalyst-View-REST-YAML/t/03podcoverage.t
===================================================================
--- trunk/historical/Catalyst-View-REST-YAML/t/03podcoverage.t (rev 0)
+++ trunk/historical/Catalyst-View-REST-YAML/t/03podcoverage.t 2007-09-06 13:11:46 UTC (rev 6849)
@@ -0,0 +1,7 @@
+use Test::More;
+
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_coverage_ok();
More information about the Catalyst-commits
mailing list