r76419 - in /trunk/libcgi-application-plugin-viewcode-perl/debian: control examples/ examples/ViewCode.cgi examples/ViewCodeApp.pm libcgi-application-plugin-viewcode-perl.examples patches/ds-pod.patch

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Thu Jun 23 22:10:41 UTC 2011


Author: periapt-guest
Date: Thu Jun 23 22:10:38 2011
New Revision: 76419

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=76419
Log:
finished

Added:
    trunk/libcgi-application-plugin-viewcode-perl/debian/examples/
    trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi   (with props)
    trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCodeApp.pm
    trunk/libcgi-application-plugin-viewcode-perl/debian/libcgi-application-plugin-viewcode-perl.examples
Modified:
    trunk/libcgi-application-plugin-viewcode-perl/debian/control
    trunk/libcgi-application-plugin-viewcode-perl/debian/patches/ds-pod.patch

Modified: trunk/libcgi-application-plugin-viewcode-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-plugin-viewcode-perl/debian/control?rev=76419&op=diff
==============================================================================
--- trunk/libcgi-application-plugin-viewcode-perl/debian/control (original)
+++ trunk/libcgi-application-plugin-viewcode-perl/debian/control Thu Jun 23 22:10:38 2011
@@ -21,6 +21,7 @@
 Replaces: libcgi-application-basic-plugin-bundle-perl (<< 0.6),
  libcgi-application-plugins-perl (<< 0.11)
 Provides: libcgi-application-plugin-debugscreen-perl
+Recommends: libcgi-application-plugin-devpopup-perl
 Description: set of debugging tools for CGI::Application
  CGI::Application::Plugin::ViewCode provides additional run modes that
  display code and documentation.

Added: trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi?rev=76419&op=file
==============================================================================
--- trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi (added)
+++ trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi Thu Jun 23 22:10:38 2011
@@ -1,0 +1,5 @@
+#!/usr/bin/perl
+use lib qw(/usr/share/doc/libcgi-application-plugin-viewcode-perl/examples);
+$ENV{CGI_APP_DEBUG}=1;
+use ViewCodeApp;
+ViewCodeApp->new->run;

Propchange: trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCode.cgi
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCodeApp.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCodeApp.pm?rev=76419&op=file
==============================================================================
--- trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCodeApp.pm (added)
+++ trunk/libcgi-application-plugin-viewcode-perl/debian/examples/ViewCodeApp.pm Thu Jun 23 22:10:38 2011
@@ -1,0 +1,42 @@
+package ViewCodeApp;
+use strict;
+use warnings;
+use base qw(CGI::Application);
+use CGI::Application::Plugin::ViewCode;
+use CGI::Application::Plugin::DebugScreen;
+
+sub setup {
+    my $self = shift;
+    $self->start_mode('start');
+    $self->run_modes(start=>'start',die=>'die_abort_finito');
+    return;
+}
+
+sub start {
+    my $self = shift;
+    return "Hello world!";
+}
+
+sub die_abort_finito {
+    my $self = shift;
+    die "Is this really it?";
+}
+
+1;
+
+=head1 DESCRIPTION
+
+This CGI script is only a test example. It provides the following run
+modes:
+
+=over
+
+=item start - Returns a simple "Hello world" string.
+
+=item view_code - As provided by L<CGI::Application::Plugin::ViewCode>.
+
+=item view_pod  - As provided by L<CGI::Application::Plugin::ViewCode>.
+
+=item die - Provided so that one can test
+L<CGI::Application::Plugin::DebugScreen>.
+

Added: trunk/libcgi-application-plugin-viewcode-perl/debian/libcgi-application-plugin-viewcode-perl.examples
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-plugin-viewcode-perl/debian/libcgi-application-plugin-viewcode-perl.examples?rev=76419&op=file
==============================================================================
--- trunk/libcgi-application-plugin-viewcode-perl/debian/libcgi-application-plugin-viewcode-perl.examples (added)
+++ trunk/libcgi-application-plugin-viewcode-perl/debian/libcgi-application-plugin-viewcode-perl.examples Thu Jun 23 22:10:38 2011
@@ -1,0 +1,1 @@
+debian/examples/*

Modified: trunk/libcgi-application-plugin-viewcode-perl/debian/patches/ds-pod.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-plugin-viewcode-perl/debian/patches/ds-pod.patch?rev=76419&op=diff
==============================================================================
--- trunk/libcgi-application-plugin-viewcode-perl/debian/patches/ds-pod.patch (original)
+++ trunk/libcgi-application-plugin-viewcode-perl/debian/patches/ds-pod.patch Thu Jun 23 22:10:38 2011
@@ -1,13 +1,14 @@
 Author: Nicholas Bamber <nicholas at periapt.co.uk>
 Subject: rewriting documentation
- Sadly the English in this module is really poor and barely comprehensible.
- I am attempting to rewrite it but sometimes I really am not sure what
- the author is saying. I will have to test it to check.
+ Sadly the English in DebugScreen is not quite perfect.
+ Hopefully this rewrite captures all the important information
+ and will be of benefit to the users.
+ We also updated the version number.
 Forwarded: no
-Last-Update: 2011-06-22
+Last-Update: 2011-06-23
 --- a/ds/lib/CGI/Application/Plugin/DebugScreen.pm
 +++ b/ds/lib/CGI/Application/Plugin/DebugScreen.pm
-@@ -280,30 +280,29 @@
+@@ -280,39 +280,24 @@
  
  =head1 VERSION
  
@@ -26,25 +27,34 @@
  
 -This plug-in add Debug support to CGI::Application.
 -This plug-in like Catalyst debug mode.
-+This plug-in adds stack tracing support to CGI::Application similar in style
-+to the Catalyst debug mode.
- 
+-
 -DebugScreen is done when B<$ENV{CGI_APP_DEBUG}> is set,
 - and DebugScreen is not done when not setting it.
 -When your code is released, this plug-in need not be removed.
-+The DebugScreen is deactivated unless the B<$ENV{CGI_APP_DEBUG}> environment
-+variable is set. Therefore when your code is released, this plug-in does not
-+need to be removed.
- 
+-
 -When 'die' is generated by 'run_mode',
 - this plug-in outputs the stack trace by error_mode().
-+When a C<die> event is generated by a run mode,
-+ this plug-in outputs the stack trace by C<error_mode()>.
- As for this plug-in, error_mode() is overwrited in error callback.
- The error cannot be caught excluding run_mode.
+-As for this plug-in, error_mode() is overwrited in error callback.
+-The error cannot be caught excluding run_mode.
+-
+-This uses CGI::Application::Plugin::ViewCode
+- if a state that CGI::Application::Plugin::ViewCode can be used or used.
+-But CGI::Application::Dispatch is used,
+- this not uses CGI::Application::Plugin::ViewCode.
+-
+-When CGI::Application::Plugin::ViewCode can be used,
+- Title, Package, File, code and line are links to CGI::Application::Plugin::ViewCode's view_code mode.
+-line jumps to the specified line.
+-And pod are links to CGI::Application::Plugin::ViewCode's view_pod mode.
+-The code of the displayed is links to CGI::Application::Plugin::ViewCode's view_code mode.
++This plug-in adds stack tracing support to CGI::Application similar in style
++to the Catalyst debug mode. In the event of the module calling C<die>,
++a stack trace of the error is displayed. At each level of the stack
++links to the code and documentation are provided.
++
++The stack trace functionality is deactivated unless the B<$ENV{CGI_APP_DEBUG}>
++environment variable is set. Therefore when your code is released,
++this plug-in does not need to be removed.
  
--This uses CGI::Application::Plugin::ViewCode
-+This uses L<CGI::Application::Plugin::ViewCode>
-  if a state that CGI::Application::Plugin::ViewCode can be used or used.
- But CGI::Application::Dispatch is used,
-  this not uses CGI::Application::Plugin::ViewCode.
+ =head1 DEPENDENCIES
+ 




More information about the Pkg-perl-cvs-commits mailing list