Skip Menu |

This queue is for tickets about the Excel-Template-Plus CPAN distribution.

Report information
The Basics
Id: 98475
Status: new
Priority: 0/
Queue: Excel-Template-Plus

People
Owner: Nobody in particular
Requestors: NIERLEIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)



Subject: Class::MOP::load_class is deprecated
Since Moose 2.12 Class::MOP::load_class is deprecated, see: (https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200) The attached patch fixes that. Thanks
Subject: class_loaded_patch.patch
--- a/lib/Excel/Template/Plus.pm 2014-08-31 11:39:52.000000000 +0200 +++ b/lib/Excel/Template/Plus.pm 2014-08-31 11:39:12.000000000 +0200 @@ -1,7 +1,6 @@ package Excel::Template::Plus; use Moose; -use Class::Load qw/load_class/; our $VERSION = '0.05'; our $AUTHORITY = 'cpan:STEVAN'; @@ -12,7 +11,7 @@ my $engine_class = 'Excel::Template::Plus::' . $options{engine}; - eval { Class::Load::load_class($engine_class) }; + eval { Class::MOP::load_class($engine_class) }; if ($@) { confess "Could not load engine class ($engine_class) because " . $@; }
same applies to Excel/Template/Plus/TT.pm, a patch is attached.
Subject: class_loaded_patch_tt.patch
--- a/Excel/Template/Plus/TT.pm 2014-08-31 11:46:16.000000000 +0200 +++ b/Excel/Template/Plus/TT.pm 2014-08-31 11:46:05.000000000 +0200 @@ -2,7 +2,6 @@ package Excel::Template::Plus::TT; use Moose; use Moose::Util::TypeConstraints; -use Class::Load qw/load_class/; use Template (); use IO::String (); @@ -43,7 +42,7 @@ default => sub { my $self = shift; my $class = $self->template_class; - Class::Load::load_class($class); + Class::MOP::load_class($class); ($class->isa('Template')) || confess "The template_class must be Template or a subclass of it"; $class->new( $self->config )