Skip Menu |
 

This queue is for tickets about the XML-Toolkit CPAN distribution.

Report information
The Basics
Id: 92429
Status: open
Priority: 0/
Queue: XML-Toolkit

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

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



Subject: [PATCH] Moose Class::MOP::load_class Deprecation Warnings
Download (untitled) / with headers
text/plain 747b
Hey, Attached patch fixes the warnings produced by the deprecation of Class::MOP::load_class. Below is a blurb the Moose guys have been distributing. --- 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. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: XML-Toolkit-0.15.patch
diff -Naur XML-Toolkit-0.15_orig/dist.ini XML-Toolkit-0.15/dist.ini --- XML-Toolkit-0.15_orig/dist.ini 2014-01-23 20:10:48.498743738 -0500 +++ XML-Toolkit-0.15/dist.ini 2014-01-23 20:12:21.338744954 -0500 @@ -28,6 +28,7 @@ Template = 2.20 XML::SAX = 0.96 XML::SAX::Writer = 0.50 +Class::Load = 0.20 [Prereqs / RuntimeReccomends] -phase = runtime diff -Naur XML-Toolkit-0.15_orig/ex/xspf/lib/XMLTK/XSPF.pm XML-Toolkit-0.15/ex/xspf/lib/XMLTK/XSPF.pm --- XML-Toolkit-0.15_orig/ex/xspf/lib/XMLTK/XSPF.pm 2014-01-23 20:10:48.210743734 -0500 +++ XML-Toolkit-0.15/ex/xspf/lib/XMLTK/XSPF.pm 2014-01-23 20:11:22.018744177 -0500 @@ -1,6 +1,6 @@ package XMLTK::XSPF; use strict; -use Class::MOP; +use Class::Load; use Sub::Exporter -setup => { exports => [ @@ -18,7 +18,7 @@ sub _generator { my ( $c, $name ) = @_; my $class = "XMLTK::XSPF::${name}"; - Class::MOP::load_class($class); + Class::Load::load_class($class); return sub () { $class }; } diff -Naur XML-Toolkit-0.15_orig/lib/XML/Toolkit/Loader/Filter.pm XML-Toolkit-0.15/lib/XML/Toolkit/Loader/Filter.pm --- XML-Toolkit-0.15_orig/lib/XML/Toolkit/Loader/Filter.pm 2014-01-23 20:10:48.498743738 -0500 +++ XML-Toolkit-0.15/lib/XML/Toolkit/Loader/Filter.pm 2014-01-23 20:11:48.858744529 -0500 @@ -3,6 +3,7 @@ $XML::Toolkit::Loader::Filter::VERSION = '0.15'; } use Moose; +use Class::Load; use namespace::autoclean; extends qw(XML::Filter::Moose); @@ -41,7 +42,7 @@ sub load_class { my ( $self, $name ) = @_; - Class::MOP::load_class($name); + Class::Load::load_class($name); return $name; }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.