Skip Menu |

This queue is for tickets about the App-TemplateServer-Provider-TD CPAN distribution.

Report information
The Basics
Id: 90980
Status: open
Priority: 0/
Queue: App-TemplateServer-Provider-TD

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:39:54 +0530
To: bug-App-TemplateServer-Provider-TD [...] 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: App-TemplateServer-Provider-TD-0.01.patch
diff -Naur App-TemplateServer-Provider-TD-0.01_orig/lib/App/TemplateServer/Provider/TD.pm App-TemplateServer-Provider-TD-0.01/lib/App/TemplateServer/Provider/TD.pm --- App-TemplateServer-Provider-TD-0.01_orig/lib/App/TemplateServer/Provider/TD.pm 2014-01-24 21:12:28.470546900 -0500 +++ App-TemplateServer-Provider-TD-0.01/lib/App/TemplateServer/Provider/TD.pm 2014-01-24 21:13:04.802547376 -0500 @@ -2,7 +2,7 @@ use Moose; use Method::Signatures; use Template::Declare; -use Class::MOP; +use Class::Load; require Module::Pluggable::Object; our $VERSION = '0.01'; @@ -15,7 +15,7 @@ for my $template_root (@roots){ # first class not always loadable; it depends - eval { Class::MOP::load_class($template_root) }; + eval { Class::Load::load_class($template_root) }; my $mpo = Module::Pluggable::Object->new( require => 0, search_path => $template_root, @@ -23,7 +23,7 @@ my @extras = $mpo->plugins; foreach my $extra (@extras) { # load module - Class::MOP::load_class($extra); + Class::Load::load_class($extra); } push @more, @extras; } diff -Naur App-TemplateServer-Provider-TD-0.01_orig/Makefile.PL App-TemplateServer-Provider-TD-0.01/Makefile.PL --- App-TemplateServer-Provider-TD-0.01_orig/Makefile.PL 2014-01-24 21:12:28.470546900 -0500 +++ App-TemplateServer-Provider-TD-0.01/Makefile.PL 2014-01-24 21:13:20.218547577 -0500 @@ -4,7 +4,7 @@ all_from 'lib/App/TemplateServer/Provider/TD.pm'; requires 'App::TemplateServer' => '0.02'; -requires 'Class::MOP'; +requires 'Class::Load' => '0.20'; requires 'Method::Signatures'; requires 'Module::Pluggable::Object'; requires 'Moose'; diff -Naur App-TemplateServer-Provider-TD-0.01_orig/META.yml App-TemplateServer-Provider-TD-0.01/META.yml --- App-TemplateServer-Provider-TD-0.01_orig/META.yml 2014-01-24 21:12:28.470546900 -0500 +++ App-TemplateServer-Provider-TD-0.01/META.yml 2014-01-24 21:13:27.002547667 -0500 @@ -17,7 +17,7 @@ - t requires: App::TemplateServer: 0.02 - Class::MOP: 0 + Class::Load: 0.20 Method::Signatures: 0 Module::Pluggable::Object: 0 Moose: 0