Skip Menu |

This queue is for tickets about the Bot-Jabbot CPAN distribution.

Report information
The Basics
Id: 90985
Status: open
Priority: 0/
Queue: Bot-Jabbot

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:17 +0530
To: bug-Bot-Jabbot [...] 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: Bot-Jabbot-0.41.patch
diff -Naur Bot-Jabbot-0.41_orig/lib/Bot/Jabbot.pm Bot-Jabbot-0.41/lib/Bot/Jabbot.pm --- Bot-Jabbot-0.41_orig/lib/Bot/Jabbot.pm 2014-01-24 22:55:07.994627604 -0500 +++ Bot-Jabbot-0.41/lib/Bot/Jabbot.pm 2014-01-24 22:55:34.474627950 -0500 @@ -36,7 +36,7 @@ use Encode qw(decode_utf8); use Config::Any::YAML; use Data::Dumper; -use Class::MOP; +use Class::Load; use Data::Localize; our $VERSION = 0.41; @@ -74,7 +74,7 @@ while (my ($name,$mod)=each(%{$self->{config}->{modules}})) { print "loading $mod \n"; - Class::MOP::load_class($mod); + Class::Load::load_class($mod); $self->{modules}->{$name}=$mod->new($self->{config}->{lang} || "en"); } my $calldir = $class; @@ -352,7 +352,7 @@ =item AnyEvent::XMPP -=item Class::MOP +=item Class::Load =item Config::Any diff -Naur Bot-Jabbot-0.41_orig/Makefile.PL Bot-Jabbot-0.41/Makefile.PL --- Bot-Jabbot-0.41_orig/Makefile.PL 2014-01-24 22:55:07.994627604 -0500 +++ Bot-Jabbot-0.41/Makefile.PL 2014-01-24 22:55:46.790628111 -0500 @@ -10,7 +10,7 @@ 'PREREQ_PM' => { 'AnyEvent' => '5.202', 'AnyEvent::XMPP' => '0.51', - 'Class::MOP' => 0, + 'Class::Load' => '0.20', 'Encode' => 0, 'Config::Any' => 0, 'Data::Localize' => ' 0.00010', diff -Naur Bot-Jabbot-0.41_orig/META.yml Bot-Jabbot-0.41/META.yml --- Bot-Jabbot-0.41_orig/META.yml 2014-01-24 22:55:07.994627604 -0500 +++ Bot-Jabbot-0.41/META.yml 2014-01-24 22:56:00.190628288 -0500 @@ -7,7 +7,7 @@ requires: AnyEvent: 5.202 AnyEvent::XMPP: 0.51 - Class::MOP: 0 + Class::Load: 0.20 Config::Any: 0 Data::Localize: 0.00010 Encode: 0