@@ -1,5 +1,8 @@
Revision history for Perl extension Catalyst::Plugin::Static::Simple
+0.29 2010-02-01 18:45:00
+ - Switch from override to around, because really, wtf
+
0.28 2010-01-04 13:15:00
- Fix issues in debug mode. (RT#53338)
@@ -8,7 +8,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: 6.42
distribution_type: module
-generated_by: 'Module::Install version 0.910'
+generated_by: 'Module::Install version 0.91'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -28,4 +28,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Plugin-Static-Simple/trunk/
-version: 0.28
+version: 0.29
@@ -8,7 +8,7 @@ use MIME::Types ();
use MooseX::Types::Moose qw/ArrayRef Str/;
use namespace::autoclean;
-our $VERSION = '0.28';
+our $VERSION = '0.29';
has _static_file => ( is => 'rw' );
has _static_debug_message => ( is => 'rw', isa => ArrayRef[Str] );
@@ -60,7 +60,8 @@ before prepare_action => sub {
}
};
-override dispatch => sub {
+around dispatch => sub {
+ my $orig = shift;
my $c = shift;
return if ( $c->res->status != 200 );
@@ -72,7 +73,7 @@ override dispatch => sub {
return $c->_serve_static;
}
else {
- return super;
+ return $c->$orig(@_);
}
};
@@ -569,6 +570,8 @@ Tomas Doran, <bobtfish@bobtfish.net>
Justin Wheeler (dnm)
+Matt S Trout, <mst@shadowcat.co.uk>
+
=head1 THANKS
The authors of Catalyst::Plugin::Static: