--- /dev/null
+MANIFEST
+MANIFEST.bak
+META.yml
+Makefile
+blib/
+inc/
+pm_to_blib
Revision history for Perl extension Catalyst::Plugin::SubRequest
+0.15 2009-11-23 22:47:32 GMT
+ - Be compatible with Catalyst 5.80014 by not writing to the
+ request body directly.
+ - Remove deprecation warnings by moving actions out of the test app.
+
0.14 2009-10-18 18:30:00 BST
- Tweak copyright info to ease downstream packaging.
all_from 'lib/Catalyst/Plugin/SubRequest.pm';
requires 'Catalyst::Runtime' => '5.7012';
-
requires 'Test::More';
-auto_install;
+if ($Module::Install::AUTHOR) {
+ system("pod2text lib/Catalyst/Plugin/SubRequest.pm > README");
+}
+
resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-SubRequest/';
WriteAll;
SRI, for writing the awesome Catalyst framework
COPYRIGHT
+ Copyright (c) 2005 - 2008 the Catalyst::Plugin::SubRequest "AUTHOR" as
+ listed above.
+
+LICENSE
This program is free software, you can redistribute it and/or modify it
under the same terms as Perl itself.
package Catalyst::Plugin::SubRequest;
use strict;
+use warnings;
use Time::HiRes qw/tv_interval/;
-our $VERSION = '0.14';
+our $VERSION = '0.15';
=head1 NAME
} else {
$request_mods{path} = $path;
}
+ $request_mods{_body} = delete $request_mods{body};
my $fake_engine = bless(
{
L<Catalyst>.
-=head1 AUTHOR
+=head1 AUTHORS
Marcus Ramberg, C<mramberg@cpan.org>
+Tomas Doran (t0m) C<< bobtfish@bobtfish.net >>
+
=head1 THANK YOU
SRI, for writing the awesome Catalyst framework
=head1 COPYRIGHT
Copyright (c) 2005 - 2008
-the Catalyst::Plugin::SubRequest L</AUTHOR>
+the Catalyst::Plugin::SubRequest L</AUTHORS>
as listed above.
=head1 LICENSE
package TestApp;
+use strict;
+use warnings;
+use base qw/Catalyst/;
use Catalyst qw[SubRequest];
__PACKAGE__->setup();
- sub begin : Private {
- my ( $self, $c ) = @_;
- $c->res->body('1');
- }
-
- sub subtest : Global {
- my ( $self, $c ) = @_;
- my $subreq= $c->res->body().
- $c->subreq('/normal/4');
- $c->res->body($subreq);
- }
-
- sub normal : Global {
- my ( $self, $c, $arg ) = @_;
- $c->res->body($c->res->body().$arg);
- }
-
- sub subtest_params : Global {
- my ( $self, $c ) = @_;
- my $before = $c->req->params->{value};
- my $subreq = $c->subreq('/normal/2');
- my $after = $c->req->params->{value};
- $c->res->body($c->res->body().$after);
- }
-
- sub end : Private {
- my ( $self, $c ) = @_;
- $c->res->body($c->res->body().'3');
- }
-
-
1;
--- /dev/null
+package TestApp::Controller::Root;
+use strict;
+use warnings;
+
+use base qw/Catalyst::Controller/;
+
+sub begin : Private {
+ my ( $self, $c ) = @_;
+ $c->res->body('1');
+}
+
+sub subtest : Global {
+ my ( $self, $c ) = @_;
+ my $subreq= $c->res->body().
+ $c->subreq('/normal/4');
+ $c->res->body($subreq);
+}
+
+sub normal : Global {
+ my ( $self, $c, $arg ) = @_;
+ $c->res->body($c->res->body().$arg);
+}
+
+sub subtest_params : Global {
+ my ( $self, $c ) = @_;
+ my $before = $c->req->params->{value};
+ my $subreq = $c->subreq('/normal/2');
+ my $after = $c->req->params->{value};
+ $c->res->body($c->res->body().$after);
+}
+
+sub end : Private {
+ my ( $self, $c ) = @_;
+ $c->res->body($c->res->body().'3');
+}
+
+1;
+