Skip Menu |

This queue is for tickets about the MooseX-MetaDescription CPAN distribution.

Report information
The Basics
Id: 90984
Status: open
Priority: 0/
Queue: MooseX-MetaDescription

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:40:11 +0530
To: bug-MooseX-MetaDescription [...] 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: MooseX-MetaDescription-0.06.patch
diff -Naur MooseX-MetaDescription-0.06_orig/lib/MooseX/MetaDescription/Meta/Trait.pm MooseX-MetaDescription-0.06/lib/MooseX/MetaDescription/Meta/Trait.pm --- MooseX-MetaDescription-0.06_orig/lib/MooseX/MetaDescription/Meta/Trait.pm 2014-01-24 19:38:52.478594662 -0500 +++ MooseX-MetaDescription-0.06/lib/MooseX/MetaDescription/Meta/Trait.pm 2014-01-24 19:39:23.159247063 -0500 @@ -1,5 +1,6 @@ package MooseX::MetaDescription::Meta::Trait; use Moose::Role; +use Class::Load; our $VERSION = '0.06'; our $AUTHORITY = 'cpan:STEVAN'; @@ -30,7 +31,7 @@ my $metadesc_class = $self->metadescription_classname; my $desc = $self->description; - Class::MOP::load_class($metadesc_class); + Class::Load::load_class($metadesc_class); if (my $traits = delete $desc->{traits}) { my $meta = Moose::Meta::Class->create_anon_class( diff -Naur MooseX-MetaDescription-0.06_orig/Makefile.PL MooseX-MetaDescription-0.06/Makefile.PL --- MooseX-MetaDescription-0.06_orig/Makefile.PL 2014-01-24 19:38:52.478594662 -0500 +++ MooseX-MetaDescription-0.06/Makefile.PL 2014-01-24 19:39:38.310319263 -0500 @@ -10,6 +10,7 @@ # prereqs requires 'Moose' => 0.40; +requires 'Class::Load' => 0.20; # things the tests need test_requires 'Test::More' => '0.62';