Skip Menu |

This queue is for tickets about the Catalyst-View-Component-SubInclude CPAN distribution.

Report information
The Basics
Id: 91021
Status: open
Priority: 0/
Queue: Catalyst-View-Component-SubInclude

People
Owner: Nobody in particular
Requestors: upasna.shukla [...] gmail.com
cpan [...] zoffix.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: New Moose may break your code
Date: Fri, 29 Nov 2013 03:43:01 +0530
To: bug-Catalyst-View-Component-SubInclude [...] rt.cpan.org
From: "Upasana Shukla" <upasna.shukla [...] gmail.com>
We recently deprecated Class::MOP::load_class in Moose. It appears that your module is affected. You can read more about the change here: https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200 We recommend that you take a look at your code to see if it indeed does need to be updated with respect to the latest Moose release, 2.1106-TRIAL. If you have any questions, then please ask either on Moose mailing list : http://lists.perl.org/list/moose.html or on #moose & #moose-dev on irc.perl.org.
Attached patch fixes the issue. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: Catalyst-View-Component-SubInclude.patch
diff --git a/Makefile.PL b/Makefile.PL index 0a3b6d9..9512b98 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,6 +12,7 @@ requires 'Catalyst::Plugin::SubRequest'; requires 'Moose'; requires 'Moose::Role'; requires 'MooseX::Types'; +requires 'Class::Load' => '0.20'; requires 'Carp'; requires 'namespace::clean'; requires 'LWP::UserAgent'; diff --git a/lib/Catalyst/View/Component/SubInclude.pm b/lib/Catalyst/View/Component/SubInclude.pm index f77345f..16a1740 100644 --- a/lib/Catalyst/View/Component/SubInclude.pm +++ b/lib/Catalyst/View/Component/SubInclude.pm @@ -3,7 +3,7 @@ use Moose::Role; use Carp qw/croak/; use Catalyst::Utils (); -use Class::MOP (); +use Class::Load (); use MooseX::Types::Moose qw/Str HashRef/; use namespace::clean -except => 'meta'; @@ -194,7 +194,7 @@ sub _subinclude_plugin_class_instance { $short_class : __PACKAGE__ . '::' . $short_class; - Class::MOP::load_class($class); + Class::Load::load_class($class); return $cache->{$class} = $class->new($plugin_config); }