Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Form-Processor CPAN distribution.

Report information
The Basics
Id: 90968
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Form-Processor

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:38:57 +0530
To: bug-Catalyst-Plugin-Form-Processor [...] 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-Plugin-Form-Processor-1.131420.patch
diff -Naur Catalyst-Plugin-Form-Processor-1.131420_orig/lib/Catalyst/Plugin/Form/Processor.pm Catalyst-Plugin-Form-Processor-1.131420/lib/Catalyst/Plugin/Form/Processor.pm --- Catalyst-Plugin-Form-Processor-1.131420_orig/lib/Catalyst/Plugin/Form/Processor.pm 2014-01-25 11:02:33.389226023 -0500 +++ Catalyst-Plugin-Form-Processor-1.131420/lib/Catalyst/Plugin/Form/Processor.pm 2014-01-25 11:02:55.053333444 -0500 @@ -3,7 +3,7 @@ $Catalyst::Plugin::Form::Processor::VERSION = '1.131420'; } use Moose::Role; -use Class::MOP; +use Class::Load; use HTML::FillInForm; use Module::Find; use Scalar::Util; @@ -33,7 +33,7 @@ $package .= '::' . ucfirst( $c->action->name ); } - Class::MOP::load_class( $package ); + Class::Load::load_class( $package ); # Single argument to Form::Processor->new means it's an item id or object. @@ -174,7 +174,7 @@ warn "Loading form module [$form]\n" if $debug; - Class::MOP::load_class( $form ); + Class::Load::load_class( $form ); eval { $form->load_form } || die "Failed load_module for form module [$form]: $@" if $@; diff -Naur Catalyst-Plugin-Form-Processor-1.131420_orig/Makefile.PL Catalyst-Plugin-Form-Processor-1.131420/Makefile.PL --- Catalyst-Plugin-Form-Processor-1.131420_orig/Makefile.PL 2014-01-25 11:02:33.389226023 -0500 +++ Catalyst-Plugin-Form-Processor-1.131420/Makefile.PL 2014-01-25 11:03:07.001392693 -0500 @@ -24,7 +24,7 @@ "LICENSE" => "perl", "NAME" => "Catalyst::Plugin::Form::Processor", "PREREQ_PM" => { - "Class::MOP" => 0, + "Class::Load" => "0.20", "HTML::FillInForm" => 0, "Module::Find" => 0, "Moose::Role" => 0, diff -Naur Catalyst-Plugin-Form-Processor-1.131420_orig/META.yml Catalyst-Plugin-Form-Processor-1.131420/META.yml --- Catalyst-Plugin-Form-Processor-1.131420_orig/META.yml 2014-01-25 11:02:33.389226023 -0500 +++ Catalyst-Plugin-Form-Processor-1.131420/META.yml 2014-01-25 11:03:16.985442202 -0500 @@ -16,7 +16,7 @@ version: 1.4 name: Catalyst-Plugin-Form-Processor requires: - Class::MOP: 0 + Class::Load: 0.20 HTML::FillInForm: 0 Module::Find: 0 Moose::Role: 0
On Sat Jan 25 11:04:00 2014, ZOFFIX wrote: Show quoted text
> Attached patch fixes the issue.
Thanks for the patch. Will work on applying this week. Been putting this off. We have more usage in other modules that needs addressing: $ find . -name \*.pm | xargs fgrep Class::MOP::load_class | wc -l 147
Uploaded to CPAN Catalyst-Plugin-Form-Processor-1.140270.tar.gz with patch. Thanks.