debian/0000755000000000000000000000000012150003210007146 5ustar debian/rules0000755000000000000000000000006012150003210010222 0ustar #!/usr/bin/make -f %: dh $@ --with components debian/control0000644000000000000000000000376012150003210010557 0ustar Source: libcgi-application-plugin-viewcode-perl Maintainer: Debian Perl Group Uploaders: Nicholas Bamber , Jaldhar H. Vyas Section: perl Priority: optional Build-Depends: debhelper (>= 8), perl, libtest-longstring-perl, libpod-xhtml-perl, libcgi-application-perl, libhtml-template-perl, libsyntax-highlight-perl-improved-perl, pkg-components, libdevel-stacktrace-perl, libuniversal-require-perl, libtest-pod-perl, libtest-pod-coverage-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libcgi-application-plugin-viewcode-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libcgi-application-plugin-viewcode-perl.git Homepage: https://metacpan.org/release/CGI-Application-Plugin-ViewCode/ Package: libcgi-application-plugin-viewcode-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libpod-xhtml-perl, libcgi-application-perl, libsyntax-highlight-perl-improved-perl, libhtml-template-perl, libdevel-stacktrace-perl, libuniversal-require-perl Recommends: libcgi-application-plugin-devpopup-perl Breaks: libcgi-application-basic-plugin-bundle-perl (<< 0.6), libcgi-application-plugins-perl (<< 0.11) Provides: libcgi-application-plugin-debugscreen-perl Replaces: libcgi-application-basic-plugin-bundle-perl (<< 0.6), libcgi-application-plugins-perl (<< 0.11) Description: set of debugging tools for CGI::Application CGI::Application::Plugin::ViewCode provides additional run modes that display code and documentation. . CGI::Application::Plugin::DebugScreen captures die events and displays the stack trace to the user. It also provides links to the source code and documentation view the ViewCode plugin. debian/README.source0000644000000000000000000000214012150003210011322 0ustar For most purposes this package is a standard Debian Perl Group package. The aspect in which it is special is that some related modules are bundled together with the package. So long as you have the appropriate tar balls in the correct place you can build using dpkg-buildpackage or svn-buildpackage as you would normally. If you have a fresh checkout from the svn repository and you wish to download all the tarballs to build under svn-buildpackage, then from the package root directory run: ./debian/update.sh update To check for new updates drop the "update" argument. If you are building under dpkg-buildpackage you need to tell the script about the alternative build directory so run DESTDIR=.. ./debian/update.sh update There are a couple of important caveats about the update.sh script. First of all when used in update mode it will DELETE the existing tarballs. Secondly when you do update one of the components, the update.sh script will need to be updated. These limitations arise because it is a temporary work around until pkg-components (or even uscan) provides something more substantial. debian/source/0000755000000000000000000000000012150003210010446 5ustar debian/source/format0000644000000000000000000000001412150003210011654 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000154212150003210011022 0ustar libcgi-application-plugin-viewcode-perl (1.02-2) unstable; urgency=low * Team upload. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Add patch to put qw() literal under parentheses. (Closes: #709681) * Set Standards-Version to 3.9.4 (no changes). * debian/copyright: switch formatting to Copyright-Format 1.0. -- gregor herrmann Sat, 25 May 2013 02:31:41 +0200 libcgi-application-plugin-viewcode-perl (1.02-1) unstable; urgency=low * Split out from libcgi-application-basic-plugin-bundle-perl (Closes: #631244) -- Nicholas Bamber Fri, 24 Jun 2011 17:42:45 +0100 debian/libcgi-application-plugin-viewcode-perl.examples0000644000000000000000000000002212150003210020471 0ustar debian/examples/* debian/compat0000644000000000000000000000000212150003210010344 0ustar 8 debian/patches/0000755000000000000000000000000012150003210010575 5ustar debian/patches/series0000644000000000000000000000004012150003210012004 0ustar ds-pod.patch qw-as-parens.patch debian/patches/qw-as-parens.patch0000644000000000000000000000120112150003210014126 0ustar Description: using qw() as parentheses is a fatal error now Origin: vendor Bug: https://rt.cpan.org/Public/Bug/Display.html?id=73317 Bug-Debian: http://bugs.debian.org/709681 Forwarded: not needed Author: gregor herrmann Last-Update: 2013-05-25 --- a/lib/CGI/Application/Plugin/ViewCode.pm +++ b/lib/CGI/Application/Plugin/ViewCode.pm @@ -176,7 +176,7 @@ my $query = $self->query; my %options; - foreach my $opt qw(highlight line_no pod) { + foreach my $opt (qw(highlight line_no pod)) { if( defined $query->param($opt) ) { $options{$opt} = $query->param($opt); } else { debian/patches/ds-pod.patch0000644000000000000000000000515712150003210013014 0ustar Author: Nicholas Bamber Subject: rewriting documentation 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. Bug: http://rt.cpan.org/Ticket/Display.html?id=69063 Last-Update: 2011-06-24 --- a/ds/lib/CGI/Application/Plugin/DebugScreen.pm +++ b/ds/lib/CGI/Application/Plugin/DebugScreen.pm @@ -280,39 +280,29 @@ =head1 VERSION -This documentation refers to CGI::Application::Plugin::DebugScreen version 0.06 +This documentation refers to CGI::Application::Plugin::DebugScreen version 1.00 =head1 SYNOPSIS use CGI::Application::Plugin::DebugScreen; -Only it. -If "Internal Server Error" was generated by "run_mode".... +That is it! The fun starts when a run mode calls C. =head1 DESCRIPTION -This plug-in add Debug support to CGI::Application. -This plug-in like 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. - -When 'die' is generated by 'run_mode', - this plug-in outputs the stack trace by error_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, +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. + +The links links to code and documentation are implemented using +L, which will be loaded automatically +if available. However these links are not supported in conjunction +with L. =head1 DEPENDENCIES debian/copyright0000644000000000000000000000257312150003210011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CGI-Application-Plugin-ViewCode Upstream-Contact: Michael Peters Source: https://metacpan.org/release/CGI-Application-Plugin-ViewCode/ Files: * Copyright: 2005, Michael Peters License: Artistic or GPL-1+ Files: ds/* Copyright: 2006, Atsushi Kobayashi License: Artistic or GPL-1+ Files: ds/inc/Module/* Copyright: 2002-2010, Adam Kennedy 2002-2010, Audrey Tang 2002-2010, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* Copyright: 2011, Nicholas Bamber License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/components/0000755000000000000000000000000012150003210011333 5ustar debian/components/ds/0000755000000000000000000000000012150003210011741 5ustar debian/components/ds/test0000755000000000000000000000063512150003210012652 0ustar #!/bin/sh TDIR=COMPONENTS/${DH_COMPONENT} export PERL5LIB=../../debian/${PACKAGE}/usr/share/perl5 if [ -z ${PACKAGE} ] then echo PACKAGE not set exit 1 fi if [ -z ${DH_COMPONENT} ] then echo DH_COMPONENT not set exit 1 fi if [ ! -d ${TDIR} ] then echo ${TDIR} not a directory exit 1 fi if dh_auto_test -D ${TDIR} then EXIT_STATUS=0 else EXIT_STATUS=1 fi exit $EXIT_STATUS debian/components/ds/watch0000644000000000000000000000024112150003210012767 0ustar version=3 http://search.cpan.org/dist/CGI-Application-Plugin-DebugScreen/ .*/CGI-Application-Plugin-DebugScreen-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/watch0000644000000000000000000000023412150003210010176 0ustar version=3 https://metacpan.org/release/CGI-Application-Plugin-ViewCode/ .*/CGI-Application-Plugin-ViewCode-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/examples/0000755000000000000000000000000012150003210010764 5ustar debian/examples/ViewCodeApp.pm0000644000000000000000000000151112150003210013466 0ustar 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. =item view_pod - As provided by L. =item die - Provided so that one can test L. debian/examples/ViewCode.cgi0000755000000000000000000000023412150003210013157 0ustar #!/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; debian/update.sh0000755000000000000000000000135412150003210010772 0ustar #!/bin/sh set -e DESTDIR=${DESTDIR:-../tarballs} MODULE=CGI-Application-Plugin-ViewCode PACKAGE=libcgi-application-plugin-viewcode-perl VERSION=1.02 DEBUG_VERS=1.00 FD=--force-download NS=--no-symlink RE=--rename DD="--destdir ${DESTDIR}" RS=--report-status DC=-"-watch debian/components" US=--upstream-version if [ $1 ] then echo update; rm -f ${DESTDIR}/${MODULE}*.tar.gz uscan ${FD} ${RE} ${DD} && true; uscan ${DC}/ds/watch ${FD} ${NS} ${DD} ${US} ${DEBUG_VERS} && true; cd ${DESTDIR} DEBUG=`ls CGI-Application-Plugin-DebugScreen*.tar.gz` mv ${DEBUG} ${PACKAGE}_${VERSION}.orig-ds.tar.gz cd - else echo report; uscan ${RS} && true; uscan ${DC}/ds/watch ${RS} ${DD} ${US} ${DEBUG_VERS} && true; fi