Skip Menu |
 

This queue is for tickets about the Devel-REPL CPAN distribution.

Report information
The Basics
Id: 44902
Status: resolved
Priority: 0/
Queue: Devel-REPL

People
Owner: OLIVER [...] cpan.org
Requestors: vecchi.b [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.003004
Fixed in: (no value)



Subject: Patch for warning due to deprecated use of 'alias_method' in Plugin.pm
Download (untitled) / with headers
text/plain 317b
Due to the deprecated (as of Moose 0.74) use of alias_method in Plugin.pm, re.pl (v 1.3.4) was throwing a warning on startup (attached as stacktrace.txt). The patch submitted fixes this, replacing 'alias_method' for 'add_method'. Moose version was bumped to 0.74 in Makefile.PL. The patched is attached as patch.diff.
Subject: patch.diff
Download patch.diff
text/x-diff 897b
Index: patched/lib/Devel/REPL/Plugin.pm =================================================================== --- patched/lib/Devel/REPL/Plugin.pm (revisión: 5874) +++ patched/lib/Devel/REPL/Plugin.pm (copia de trabajo) @@ -8,7 +8,7 @@ sub import { my $target = caller; my $meta = Devel::REPL::Meta::Plugin->initialize($target); - $meta->alias_method('meta' => sub { $meta }); + $meta->add_method('meta' => sub { $meta }); goto &Moose::Role::import; } Index: patched/Makefile.PL =================================================================== --- patched/Makefile.PL (revisión: 5874) +++ patched/Makefile.PL (copia de trabajo) @@ -13,7 +13,7 @@ requires 'Term::ReadLine'; # rest -requires 'Moose' => '0.64'; +requires 'Moose' => '0.74'; requires 'MooseX::Object::Pluggable' => '0.0009'; requires 'MooseX::Getopt' => '0.15'; requires 'MooseX::AttributeHelpers' => '0.14';
Subject: stacktrace.txt
Download stacktrace.txt
text/plain 23.6k

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 575b
Hi, On Thu Apr 09 13:40:23 2009, brunov wrote: Show quoted text
> Due to the deprecated (as of Moose 0.74) use of alias_method in > Plugin.pm, re.pl (v 1.3.4) was throwing a warning on startup (attached > as stacktrace.txt). > The patch submitted fixes this, replacing 'alias_method' for 'add_method'. > Moose version was bumped to 0.74 in Makefile.PL. The patched is attached > as patch.diff.
All looks good, so I've applied the patch. I'm just going to have a look and see if any other work needs doing, otherwise I'll ship this to CPAN tonight. Many thanks once again, regards, oliver.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.