[Catalyst-commits] r12321 - in trunk/examples: . SmallBoard SmallBoard/lib SmallBoard/lib/SmallBoard SmallBoard/lib/SmallBoard/Controller SmallBoard/lib/SmallBoard/Model SmallBoard/lib/SmallBoard/View SmallBoard/root SmallBoard/root/static SmallBoard/root/static/images SmallBoard/script SmallBoard/t

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sat Dec 12 23:53:01 GMT 2009


Author: dhoss
Date: 2009-12-12 23:53:00 +0000 (Sat, 12 Dec 2009)
New Revision: 12321

Added:
   trunk/examples/SmallBoard/
   trunk/examples/SmallBoard/Changes
   trunk/examples/SmallBoard/Makefile.PL
   trunk/examples/SmallBoard/README
   trunk/examples/SmallBoard/lib/
   trunk/examples/SmallBoard/lib/SmallBoard.pm
   trunk/examples/SmallBoard/lib/SmallBoard/
   trunk/examples/SmallBoard/lib/SmallBoard/Controller/
   trunk/examples/SmallBoard/lib/SmallBoard/Controller/Root.pm
   trunk/examples/SmallBoard/lib/SmallBoard/Model/
   trunk/examples/SmallBoard/lib/SmallBoard/Model/Board.pm
   trunk/examples/SmallBoard/lib/SmallBoard/Schema.pm
   trunk/examples/SmallBoard/lib/SmallBoard/View/
   trunk/examples/SmallBoard/lib/SmallBoard/View/TT.pm
   trunk/examples/SmallBoard/root/
   trunk/examples/SmallBoard/root/favicon.ico
   trunk/examples/SmallBoard/root/static/
   trunk/examples/SmallBoard/root/static/images/
   trunk/examples/SmallBoard/root/static/images/btn_120x50_built.png
   trunk/examples/SmallBoard/root/static/images/btn_120x50_built_shadow.png
   trunk/examples/SmallBoard/root/static/images/btn_120x50_powered.png
   trunk/examples/SmallBoard/root/static/images/btn_120x50_powered_shadow.png
   trunk/examples/SmallBoard/root/static/images/btn_88x31_built.png
   trunk/examples/SmallBoard/root/static/images/btn_88x31_built_shadow.png
   trunk/examples/SmallBoard/root/static/images/btn_88x31_powered.png
   trunk/examples/SmallBoard/root/static/images/btn_88x31_powered_shadow.png
   trunk/examples/SmallBoard/root/static/images/catalyst_logo.png
   trunk/examples/SmallBoard/script/
   trunk/examples/SmallBoard/script/smallboard_cgi.pl
   trunk/examples/SmallBoard/script/smallboard_create.pl
   trunk/examples/SmallBoard/script/smallboard_fastcgi.pl
   trunk/examples/SmallBoard/script/smallboard_server.pl
   trunk/examples/SmallBoard/script/smallboard_test.pl
   trunk/examples/SmallBoard/smallboard.conf
   trunk/examples/SmallBoard/smallboard.db
   trunk/examples/SmallBoard/t/
   trunk/examples/SmallBoard/t/01app.t
   trunk/examples/SmallBoard/t/02pod.t
   trunk/examples/SmallBoard/t/03podcoverage.t
   trunk/examples/SmallBoard/t/model_Board.t
   trunk/examples/SmallBoard/t/view_TT.t
Log:
Initial commit for threaded message forum for advent article

Added: trunk/examples/SmallBoard/Changes
===================================================================
--- trunk/examples/SmallBoard/Changes	                        (rev 0)
+++ trunk/examples/SmallBoard/Changes	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,4 @@
+This file documents the revision history for Perl extension SmallBoard.
+
+0.01  2009-12-12 16:43:55
+        - initial revision, generated by Catalyst

Added: trunk/examples/SmallBoard/Makefile.PL
===================================================================
--- trunk/examples/SmallBoard/Makefile.PL	                        (rev 0)
+++ trunk/examples/SmallBoard/Makefile.PL	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,22 @@
+#!/usr/bin/env perl
+# IMPORTANT: if you delete this file your app will not work as
+# expected.  You have been warned.
+use inc::Module::Install;
+
+name 'SmallBoard';
+all_from 'lib/SmallBoard.pm';
+
+requires 'Catalyst::Runtime' => '5.8001402';
+requires 'Catalyst::Plugin::ConfigLoader';
+requires 'Catalyst::Plugin::Static::Simple';
+requires 'Catalyst::Action::RenderView';
+requires 'Moose';
+requires 'namespace::autoclean';
+requires 'Config::General'; # This should reflect the config file format you've chosen
+                 # See Catalyst::Plugin::ConfigLoader for supported formats
+test_requires 'Test::More' => '0.88';
+catalyst;
+
+install_script glob('script/*.pl');
+auto_install;
+WriteAll;

Added: trunk/examples/SmallBoard/README
===================================================================
--- trunk/examples/SmallBoard/README	                        (rev 0)
+++ trunk/examples/SmallBoard/README	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1 @@
+Run script/smallboard_server.pl to test the application.

Added: trunk/examples/SmallBoard/lib/SmallBoard/Controller/Root.pm
===================================================================
--- trunk/examples/SmallBoard/lib/SmallBoard/Controller/Root.pm	                        (rev 0)
+++ trunk/examples/SmallBoard/lib/SmallBoard/Controller/Root.pm	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,60 @@
+package SmallBoard::Controller::Root;
+use Moose;
+use namespace::autoclean;
+
+BEGIN { extends 'Catalyst::Controller' }
+
+#
+# Sets the actions in this controller to be registered with no prefix
+# so they function identically to actions created in MyApp.pm
+#
+__PACKAGE__->config(namespace => '');
+
+=head1 NAME
+
+SmallBoard::Controller::Root - Root Controller for SmallBoard
+
+=head1 DESCRIPTION
+
+[enter your description here]
+
+=head1 METHODS
+
+=cut
+
+=head2 index
+
+=cut
+
+sub index :Path :Args(0) {
+    my ( $self, $c ) = @_;
+
+    # main links: create message, delete message etc.
+}
+
+sub default :Path {
+    my ( $self, $c ) = @_;
+    $c->response->body( 'Page not found' );
+    $c->response->status(404);
+}
+
+=head2 end
+
+Attempt to render a view, if needed.
+
+=cut
+
+sub end : ActionClass('RenderView') {}
+
+=head1 AUTHOR
+
+Devin Austin
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+__PACKAGE__->meta->make_immutable;

Added: trunk/examples/SmallBoard/lib/SmallBoard/Model/Board.pm
===================================================================
--- trunk/examples/SmallBoard/lib/SmallBoard/Model/Board.pm	                        (rev 0)
+++ trunk/examples/SmallBoard/lib/SmallBoard/Model/Board.pm	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,43 @@
+package SmallBoard::Model::Board;
+
+use strict;
+use base 'Catalyst::Model::DBIC::Schema';
+
+__PACKAGE__->config(
+    schema_class => 'SmallBoard::Schema',
+    
+    connect_info => {
+        dsn => 'dbi:SQLite:smallboard.db',
+        user => '',
+        password => '',
+    }
+);
+
+=head1 NAME
+
+SmallBoard::Model::Board - Catalyst DBIC Schema Model
+
+=head1 SYNOPSIS
+
+See L<SmallBoard>
+
+=head1 DESCRIPTION
+
+L<Catalyst::Model::DBIC::Schema> Model using schema L<SmallBoard::Schema>
+
+=head1 GENERATED BY
+
+Catalyst::Helper::Model::DBIC::Schema - 0.29
+
+=head1 AUTHOR
+
+Devin Austin
+
+=head1 LICENSE
+
+This library is free software, you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;

Added: trunk/examples/SmallBoard/lib/SmallBoard/Schema.pm
===================================================================
--- trunk/examples/SmallBoard/lib/SmallBoard/Schema.pm	                        (rev 0)
+++ trunk/examples/SmallBoard/lib/SmallBoard/Schema.pm	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,16 @@
+package SmallBoard::Schema;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Schema';
+
+__PACKAGE__->load_namespaces;
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 16:47:33
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JRtZFZLpIpAFZ8r+EwgYCQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;

Added: trunk/examples/SmallBoard/lib/SmallBoard/View/TT.pm
===================================================================
--- trunk/examples/SmallBoard/lib/SmallBoard/View/TT.pm	                        (rev 0)
+++ trunk/examples/SmallBoard/lib/SmallBoard/View/TT.pm	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,33 @@
+package SmallBoard::View::TT;
+
+use strict;
+use warnings;
+
+use base 'Catalyst::View::TT';
+
+__PACKAGE__->config(TEMPLATE_EXTENSION => '.tt');
+
+=head1 NAME
+
+SmallBoard::View::TT - TT View for SmallBoard
+
+=head1 DESCRIPTION
+
+TT View for SmallBoard.
+
+=head1 SEE ALSO
+
+L<SmallBoard>
+
+=head1 AUTHOR
+
+Devin Austin
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;

Added: trunk/examples/SmallBoard/lib/SmallBoard.pm
===================================================================
--- trunk/examples/SmallBoard/lib/SmallBoard.pm	                        (rev 0)
+++ trunk/examples/SmallBoard/lib/SmallBoard.pm	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,72 @@
+package SmallBoard;
+use Moose;
+use namespace::autoclean;
+
+use Catalyst::Runtime 5.80;
+
+# Set flags and add plugins for the application
+#
+#         -Debug: activates the debug mode for very useful log messages
+#   ConfigLoader: will load the configuration from a Config::General file in the
+#                 application's home directory
+# Static::Simple: will serve static files from the application's root
+#                 directory
+
+use Catalyst qw/
+	-Debug
+    ConfigLoader
+    Static::Simple
+/;
+
+extends 'Catalyst';
+
+our $VERSION = '0.01';
+$VERSION = eval $VERSION;
+
+# Configure the application.
+#
+# Note that settings in smallboard.conf (or other external
+# configuration file that you set up manually) take precedence
+# over this when using ConfigLoader. Thus configuration
+# details given here can function as a default configuration,
+# with an external configuration file acting as an override for
+# local deployment.
+
+__PACKAGE__->config(
+	name => 'SmallBoard',
+	# Disable deprecated behavior needed by old applications
+	disable_component_resolution_regex_fallback => 1, 
+);
+
+# Start the application
+__PACKAGE__->setup();
+
+
+=head1 NAME
+
+SmallBoard - Catalyst based application
+
+=head1 SYNOPSIS
+
+    script/smallboard_server.pl
+
+=head1 DESCRIPTION
+
+[enter your description here]
+
+=head1 SEE ALSO
+
+L<SmallBoard::Controller::Root>, L<Catalyst>
+
+=head1 AUTHOR
+
+Devin Austin
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
+1;

Added: trunk/examples/SmallBoard/root/favicon.ico
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/favicon.ico
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_120x50_built.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_120x50_built.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_120x50_built_shadow.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_120x50_built_shadow.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_120x50_powered.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_120x50_powered.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_120x50_powered_shadow.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_120x50_powered_shadow.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_88x31_built.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_88x31_built.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_88x31_built_shadow.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_88x31_built_shadow.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_88x31_powered.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_88x31_powered.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/btn_88x31_powered_shadow.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/btn_88x31_powered_shadow.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/root/static/images/catalyst_logo.png
===================================================================
(Binary files differ)


Property changes on: trunk/examples/SmallBoard/root/static/images/catalyst_logo.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/examples/SmallBoard/script/smallboard_cgi.pl
===================================================================
--- trunk/examples/SmallBoard/script/smallboard_cgi.pl	                        (rev 0)
+++ trunk/examples/SmallBoard/script/smallboard_cgi.pl	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,30 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('SmallBoard', 'CGI');
+
+1;
+
+=head1 NAME
+
+smallboard_cgi.pl - Catalyst CGI
+
+=head1 SYNOPSIS
+
+See L<Catalyst::Manual>
+
+=head1 DESCRIPTION
+
+Run a Catalyst application as a cgi script.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut


Property changes on: trunk/examples/SmallBoard/script/smallboard_cgi.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/SmallBoard/script/smallboard_create.pl
===================================================================
--- trunk/examples/SmallBoard/script/smallboard_create.pl	                        (rev 0)
+++ trunk/examples/SmallBoard/script/smallboard_create.pl	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,85 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Getopt::Long;
+use Pod::Usage;
+eval "use Catalyst::Helper;";
+
+if ($@) {
+  die <<END;
+To use the Catalyst development tools including catalyst.pl and the
+generated script/myapp_create.pl you need Catalyst::Helper, which is
+part of the Catalyst-Devel distribution. Please install this via a
+vendor package or by running one of -
+
+  perl -MCPAN -e 'install Catalyst::Devel'
+  perl -MCPANPLUS -e 'install Catalyst::Devel'
+END
+}
+
+my $force = 0;
+my $mech  = 0;
+my $help  = 0;
+
+GetOptions(
+    'nonew|force'    => \$force,
+    'mech|mechanize' => \$mech,
+    'help|?'         => \$help
+ );
+
+pod2usage(1) if ( $help || !$ARGV[0] );
+
+my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } );
+
+pod2usage(1) unless $helper->mk_component( 'SmallBoard', @ARGV );
+
+1;
+
+=head1 NAME
+
+smallboard_create.pl - Create a new Catalyst Component
+
+=head1 SYNOPSIS
+
+smallboard_create.pl [options] model|view|controller name [helper] [options]
+
+ Options:
+   -force        don't create a .new file where a file to be created exists
+   -mechanize    use Test::WWW::Mechanize::Catalyst for tests if available
+   -help         display this help and exits
+
+ Examples:
+   smallboard_create.pl controller My::Controller
+   smallboard_create.pl -mechanize controller My::Controller
+   smallboard_create.pl view My::View
+   smallboard_create.pl view MyView TT
+   smallboard_create.pl view TT TT
+   smallboard_create.pl model My::Model
+   smallboard_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
+   dbi:SQLite:/tmp/my.db
+   smallboard_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
+   dbi:Pg:dbname=foo root 4321
+
+ See also:
+   perldoc Catalyst::Manual
+   perldoc Catalyst::Manual::Intro
+
+=head1 DESCRIPTION
+
+Create a new Catalyst Component.
+
+Existing component files are not overwritten.  If any of the component files
+to be created already exist the file will be written with a '.new' suffix.
+This behavior can be suppressed with the C<-force> option.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut


Property changes on: trunk/examples/SmallBoard/script/smallboard_create.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/SmallBoard/script/smallboard_fastcgi.pl
===================================================================
--- trunk/examples/SmallBoard/script/smallboard_fastcgi.pl	                        (rev 0)
+++ trunk/examples/SmallBoard/script/smallboard_fastcgi.pl	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,47 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('SmallBoard','FastCGI');
+
+1;
+
+=head1 NAME
+
+smallboard_fastcgi.pl - Catalyst FastCGI
+
+=head1 SYNOPSIS
+
+smallboard_fastcgi.pl [options]
+
+ Options:
+   -? -help      display this help and exits
+   -l -listen    Socket path to listen on
+                 (defaults to standard input)
+                 can be HOST:PORT, :PORT or a
+                 filesystem path
+   -n -nproc     specify number of processes to keep
+                 to serve requests (defaults to 1,
+                 requires -listen)
+   -p -pidfile   specify filename for pid file
+                 (requires -listen)
+   -d -daemon    daemonize (requires -listen)
+   -M -manager   specify alternate process manager
+                 (FCGI::ProcManager sub-class)
+                 or empty string to disable
+   -e -keeperr   send error messages to STDOUT, not
+                 to the webserver
+
+=head1 DESCRIPTION
+
+Run a Catalyst application as fastcgi.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut


Property changes on: trunk/examples/SmallBoard/script/smallboard_fastcgi.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/SmallBoard/script/smallboard_server.pl
===================================================================
--- trunk/examples/SmallBoard/script/smallboard_server.pl	                        (rev 0)
+++ trunk/examples/SmallBoard/script/smallboard_server.pl	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,6 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('SmallBoard', 'Server');
+
+1;


Property changes on: trunk/examples/SmallBoard/script/smallboard_server.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/SmallBoard/script/smallboard_test.pl
===================================================================
--- trunk/examples/SmallBoard/script/smallboard_test.pl	                        (rev 0)
+++ trunk/examples/SmallBoard/script/smallboard_test.pl	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,41 @@
+#!/usr/bin/env perl
+
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('SmallBoard','Test');
+
+1;
+
+
+=head1 NAME
+
+smallboard_test.pl - Catalyst Test
+
+=head1 SYNOPSIS
+
+smallboard_test.pl [options] uri
+
+ Options:
+   -help    display this help and exits
+
+ Examples:
+   smallboard_test.pl http://localhost/some_action
+   smallboard_test.pl /some_action
+
+ See also:
+   perldoc Catalyst::Manual
+   perldoc Catalyst::Manual::Intro
+
+=head1 DESCRIPTION
+
+Run a Catalyst action from the command line.
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut


Property changes on: trunk/examples/SmallBoard/script/smallboard_test.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/SmallBoard/smallboard.conf
===================================================================
--- trunk/examples/SmallBoard/smallboard.conf	                        (rev 0)
+++ trunk/examples/SmallBoard/smallboard.conf	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,3 @@
+# rename this file to SmallBoard.yml and put a ':' in front of 'name' if
+# you want to use YAML like in old versions of Catalyst
+name SmallBoard

Added: trunk/examples/SmallBoard/smallboard.db
===================================================================
--- trunk/examples/SmallBoard/smallboard.db	                        (rev 0)
+++ trunk/examples/SmallBoard/smallboard.db	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1 @@
+S
\ No newline at end of file

Added: trunk/examples/SmallBoard/t/01app.t
===================================================================
--- trunk/examples/SmallBoard/t/01app.t	                        (rev 0)
+++ trunk/examples/SmallBoard/t/01app.t	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+BEGIN { use_ok 'Catalyst::Test', 'SmallBoard' }
+
+ok( request('/')->is_success, 'Request should succeed' );
+
+done_testing();

Added: trunk/examples/SmallBoard/t/02pod.t
===================================================================
--- trunk/examples/SmallBoard/t/02pod.t	                        (rev 0)
+++ trunk/examples/SmallBoard/t/02pod.t	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+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/examples/SmallBoard/t/03podcoverage.t
===================================================================
--- trunk/examples/SmallBoard/t/03podcoverage.t	                        (rev 0)
+++ trunk/examples/SmallBoard/t/03podcoverage.t	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+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();

Added: trunk/examples/SmallBoard/t/model_Board.t
===================================================================
--- trunk/examples/SmallBoard/t/model_Board.t	                        (rev 0)
+++ trunk/examples/SmallBoard/t/model_Board.t	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'SmallBoard::Model::Board' }
+
+
+done_testing();

Added: trunk/examples/SmallBoard/t/view_TT.t
===================================================================
--- trunk/examples/SmallBoard/t/view_TT.t	                        (rev 0)
+++ trunk/examples/SmallBoard/t/view_TT.t	2009-12-12 23:53:00 UTC (rev 12321)
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'SmallBoard::View::TT' }
+
+
+done_testing();




More information about the Catalyst-commits mailing list