Skip Menu |

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

Report information
The Basics
Id: 90995
Status: open
Priority: 0/
Queue: MooseX-Attribute-Prototype

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:41:01 +0530
To: bug-MooseX-Attribute-Prototype [...] 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-Attribute-Prototype-0.10.patch
diff -Naur MooseX-Attribute-Prototype-0.10_orig/lib/MooseX/Attribute/Prototype/Meta.pm MooseX-Attribute-Prototype-0.10/lib/MooseX/Attribute/Prototype/Meta.pm --- MooseX-Attribute-Prototype-0.10_orig/lib/MooseX/Attribute/Prototype/Meta.pm 2014-01-25 12:52:57.058071023 -0500 +++ MooseX-Attribute-Prototype-0.10/lib/MooseX/Attribute/Prototype/Meta.pm 2014-01-25 12:53:19.826183916 -0500 @@ -1,6 +1,7 @@ package MooseX::Attribute::Prototype::Meta; use Moose::Role; + use Class::Load; use MooseX::Attribute::Prototype::Object; use MooseX::Attribute::Prototype::Collection; use MooseX::AttributeHelpers; @@ -97,7 +98,7 @@ # Dynamic loading of classes. - Class::MOP::load_class( $role_name ); + Class::Load::load_class( $role_name ); my $role = Moose::Meta::Role->initialize( $role_name ); $role->apply( $self ); diff -Naur MooseX-Attribute-Prototype-0.10_orig/Makefile.PL MooseX-Attribute-Prototype-0.10/Makefile.PL --- MooseX-Attribute-Prototype-0.10_orig/Makefile.PL 2014-01-25 12:52:57.058071023 -0500 +++ MooseX-Attribute-Prototype-0.10/Makefile.PL 2014-01-25 12:53:31.170240174 -0500 @@ -9,6 +9,7 @@ build_requires 'Test::Moose'; requires 'Moose' => 0.65; +requires 'Class::Load' => 0.20; requires 'MooseX::AttributeHelpers' => 0.13; requires 'Moose::Exporter' => 0.65; requires 'Moose::Util' => 0.65;