[Jifty-commit] r6756 - jifty/trunk/lib/Jifty/Plugin/TestServerWarnings

Jifty commits jifty-commit at lists.jifty.org
Thu Apr 9 18:39:29 EDT 2009


Author: alexmv
Date: Thu Apr  9 18:39:28 2009
New Revision: 6756

Modified:
   jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/Appender.pm
   jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/View.pm

Log:
Add POD for short TestServerWarnings classes

Modified: jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/Appender.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/Appender.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/Appender.pm	Thu Apr  9 18:39:28 2009
@@ -3,11 +3,35 @@
 use warnings;
 use base qw/Log::Log4perl::Appender/;
 
+=head1 NAME
+
+Jifty::Plugin::TestServerWarnings::Appender - Log appender
+
+=head1 DESCRIPTION
+
+L<Log::Log4perl::Appender> which stores warnings in memory, for later
+downloading by the test client.
+
+=head1 METHODS
+
+=head2 new
+
+Creates a new appender; takes no arguments.
+
+=cut
+
 sub new {
     my $class = shift;
     return bless {@_}, $class;
 }
 
+=head2 log
+
+Appends the message to L<Jifty::Plugin::TestServerWarnings>' internal
+storage.
+
+=cut
+
 sub log {
     my $self = shift;
     my $plugin = Jifty->find_plugin("Jifty::Plugin::TestServerWarnings");

Modified: jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/TestServerWarnings/View.pm	Thu Apr  9 18:39:28 2009
@@ -4,6 +4,19 @@
 package Jifty::Plugin::TestServerWarnings::View;
 use Jifty::View::Declare -base;
 
+=head1 NAME
+
+Jifty::Plugin::TestServerWarnings::View - Test warnings downloader
+
+=head1 TEMPLATES
+
+=head2 C<__jifty/test_warnings>
+
+Outputs L<Jifty::Plugin::TestServerWarnings/encoded_warnings> to the
+client.
+
+=cut
+
 template "/__jifty/test_warnings" => sub {
     my $plugin = Jifty->find_plugin('Jifty::Plugin::TestServerWarnings');
     Jifty->handler->apache->content_type("application/x-perl");


More information about the Jifty-commit mailing list