Subject: | [PATCH] Convert from NEXT to Class::C3 |
Date: | Mon, 03 Nov 2008 16:23:13 +0000 |
To: | bug-Catalyst-Action-RenderView [...] rt.cpan.org |
From: | ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker) |
Hi,
Attached is a patch that converts this plugin to use Class::C3 so it
works with Catalyst 5.80.
=== Changes
==================================================================
--- Changes (revision 31391)
+++ Changes (local)
@@ -1,3 +1,7 @@
+0.09
+ - Switch from NEXT to Class::C3 for compatibility with Catalyst
+ 5.80. (ilmari)
+
0.08 2008-05-02 19:40:00
- Add AsCGI to list of test requirements.
- Check for defined()ness of $c->res->body so "0" is valid. (RT #30564)
=== Makefile.PL
==================================================================
--- Makefile.PL (revision 31391)
+++ Makefile.PL (local)
@@ -10,6 +10,7 @@
requires 'Catalyst::Runtime' => '5.70';
requires 'Test::More';
requires 'Data::Visitor' => '0.08';
+requires 'Class::C3';
test_requires 'HTTP::Request::AsCGI';
=== lib/Catalyst/Action/RenderView.pm
==================================================================
--- lib/Catalyst/Action/RenderView.pm (revision 31391)
+++ lib/Catalyst/Action/RenderView.pm (local)
@@ -3,19 +3,20 @@
use strict;
use warnings;
-our $VERSION = '0.08';
+our $VERSION = '0.09';
use base 'Catalyst::Action';
use Data::Visitor::Callback;
use UNIVERSAL qw/can/;
+use Class::C3;
my %ignore_classes = ();
sub execute {
my $self = shift;
my ($controller, $c ) = @_;
- $self->NEXT::execute( @_ );
+ $self->maybe::next::method( @_ );
$c->config->{debug}->{ignore_classes} = [ qw/
DBIx::Class::ResultSource::Table
--
ilmari
"A disappointingly low fraction of the human race is,
at any given time, on fire." - Stig Sandbeck Mathisen