CGI-Application-Plugin-Forward
view release on metacpan or search on metacpan
Revision history for CGI-Application-Plugin-Forward
1.06 October 18, 2005
- fixed test failure due to incompatibility with new
CAP::AutoRunmode (discovered by Shawn Sorichetti)
- removed TODO, since everything on the list has been done
1.05 October 03, 2005
- fixed to work with old versions of CGI::Application that don't
support callbacks
- now explicitly 'use CGI::Application' to make the registration
of hooks it possible to register hooks at class load time.
- added docs describing the difference between this module and
CGI::Application::Plugin::Redirect, and also providng some
notes on when to use each method.
1.04 September 15, 2005
- actually, NOW I added the 'forward_prerun' hook
t/04-forward_prerun_hook.t view on Meta::CPAN
use strict;
# the number of tests is important, because we want to make sure that
# all run modes are actually reached
use Test::More;
if (CGI::Application->can('new_hook')) {
plan 'no_plan';
}
else {
plan skip_all => 'installed version of CGI::Application does not support callbacks';
}
{
package WebApp;
use vars qw(@ISA);
use Test::More;
use CGI::Application;
use CGI::Application::Plugin::Forward;
t/05-auto_runmode.t view on Meta::CPAN
use Test::More;
BEGIN {
eval {
require CGI::Application::Plugin::AutoRunmode;
};
if ($@) {
plan skip_all => 'CGI::Application::Plugin::AutoRunmode not installed';
}
if (!CGI::Application->can('new_hook')) {
plan skip_all => 'installed CGI::Application does not support callbacks';
}
else {
if (CGI::Application::Plugin::AutoRunmode->can('is_auto_runmode')) {
plan 'tests' => 17;
CGI::Application::Plugin::AutoRunmode->import('cgiapp_prerun');
}
else {
plan skip_all => 'installed CGI::Application::Plugin::AutoRunmode does not support is_auto_runmode';
}
}
( run in 1.176 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )