[Catalyst-commits] r14347 - in
trunk/Catalyst-Plugin-UploadProgress: . lib/Catalyst/Plugin
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Oct 9 07:45:09 GMT 2012
Author: t0m
Date: 2012-10-09 07:45:09 +0000 (Tue, 09 Oct 2012)
New Revision: 14347
Modified:
trunk/Catalyst-Plugin-UploadProgress/Makefile.PL
trunk/Catalyst-Plugin-UploadProgress/lib/Catalyst/Plugin/UploadProgress.pm
Log:
Rename method, dep on new Runtime version
Modified: trunk/Catalyst-Plugin-UploadProgress/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/Makefile.PL 2012-10-08 19:08:55 UTC (rev 14346)
+++ trunk/Catalyst-Plugin-UploadProgress/Makefile.PL 2012-10-09 07:45:09 UTC (rev 14347)
@@ -7,7 +7,7 @@
name 'Catalyst-Plugin-UploadProgress';
all_from 'lib/Catalyst/Plugin/UploadProgress.pm';
-requires 'Catalyst::Runtime' => '5.80004';
+requires 'Catalyst::Runtime' => '5.90017';
requires 'Moose';
requires 'MooseX::RelatedClassRoles';
requires 'namespace::autoclean';
Modified: trunk/Catalyst-Plugin-UploadProgress/lib/Catalyst/Plugin/UploadProgress.pm
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/lib/Catalyst/Plugin/UploadProgress.pm 2012-10-08 19:08:55 UTC (rev 14346)
+++ trunk/Catalyst-Plugin-UploadProgress/lib/Catalyst/Plugin/UploadProgress.pm 2012-10-09 07:45:09 UTC (rev 14347)
@@ -14,7 +14,7 @@
/;
-around _build_request_class_construction_parameters => sub {
+around _build_request_constructor_args => sub {
my ($orig, $self, @args) = @_;
my $p = $self->$orig(@args);
$p->{_cache} = $self->cache;
@@ -78,11 +78,9 @@
message => 'UploadProgress requires a cache plugin.'
);
}
- if ($c->request_class->can('prepare_body_chunk')) {
- Class::MOP::class_of('MooseX::RelatedClassRoles')
- ->apply($c->meta, name => 'request', require_class_accessor => 0);
- $c->apply_request_class_roles('Catalyst::Plugin::UploadProgress::Role::Request');
- }
+ Class::MOP::class_of('MooseX::RelatedClassRoles')
+ ->apply($c->meta, name => 'request', require_class_accessor => 0);
+ $c->apply_request_class_roles('Catalyst::Plugin::UploadProgress::Role::Request');
};
sub upload_progress {
More information about the Catalyst-commits
mailing list