Revision history for Perl extension Catalyst::Plugin::Static::Simple
+0.21 XXX
+ - Change from NEXT to MRO::Compat - RT#40628 (ilmari)
+
0.20 2007-09-24 10:00:00
- Fixed issue where the static dir regex did not add a trailing
slash so URLs such as /static1 were served as static when they
requires 'Catalyst::Runtime' => '5.30';
requires 'MIME::Types' => '1.15';
requires 'Test::More';
+requires 'MRO::Compat';
unless( can_use 'Catalyst' => '5.33' ) {
requires 'File::Slurp';
use File::Spec ();
use IO::File ();
use MIME::Types ();
+use MRO::Compat;
-our $VERSION = '0.20';
+our $VERSION = '0.21';
__PACKAGE__->mk_accessors( qw/_static_file _static_debug_message/ );
$c->_locate_static_file( $path );
}
- return $c->NEXT::ACTUAL::prepare_action(@_);
+ return $c->next::method(@_);
}
sub dispatch {
return $c->_serve_static;
}
else {
- return $c->NEXT::ACTUAL::dispatch(@_);
+ return $c->next::method(@_);
}
}
$c->log->debug( 'Static::Simple: ' . join q{ }, @{$c->_debug_msg} );
}
- return $c->NEXT::ACTUAL::finalize(@_);
+ return $c->next::method(@_);
}
sub setup {
my $c = shift;
- $c->NEXT::setup(@_);
+ $c->next::method(@_);
if ( Catalyst->VERSION le '5.33' ) {
require File::Slurp;