Skip Menu |

This queue is for tickets about the Catalyst-Model-MenuGrinder CPAN distribution.

Report information
The Basics
Id: 91001
Status: open
Priority: 0/
Queue: Catalyst-Model-MenuGrinder

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:28 +0530
To: bug-Catalyst-Model-MenuGrinder [...] 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-Model-MenuGrinder-0.06.patch
diff -Naur Catalyst-Model-MenuGrinder-0.06_orig/dist.ini Catalyst-Model-MenuGrinder-0.06/dist.ini --- Catalyst-Model-MenuGrinder-0.06_orig/dist.ini 2014-01-25 12:06:08.276143023 -0500 +++ Catalyst-Model-MenuGrinder-0.06/dist.ini 2014-01-25 12:07:31.132553890 -0500 @@ -14,5 +14,6 @@ WWW::MenuGrinder = 0.04 Scope::Guard = 0 Moose = 0 +Class::Load = 0.20 [PodWeaver] diff -Naur Catalyst-Model-MenuGrinder-0.06_orig/lib/Catalyst/Model/MenuGrinder.pm Catalyst-Model-MenuGrinder-0.06/lib/Catalyst/Model/MenuGrinder.pm --- Catalyst-Model-MenuGrinder-0.06_orig/lib/Catalyst/Model/MenuGrinder.pm 2014-01-25 12:06:08.276143023 -0500 +++ Catalyst-Model-MenuGrinder-0.06/lib/Catalyst/Model/MenuGrinder.pm 2014-01-25 12:07:23.092514021 -0500 @@ -10,6 +10,7 @@ # ACCEPT_CONTEXT. We could probably remove a layer here and switch to PerRequest # but that's for later. +use Class::Load; use Moose; extends 'Catalyst::Model'; @@ -35,7 +36,7 @@ sub _build__menu { my ($self) = @_; - Class::MOP::load_class( $self->menu_class ); + Class::Load::load_class( $self->menu_class ); return $self->menu_class->new( config => $self->menu_config,