Subject: | Patch for warning due to deprecated use of 'alias_method' in Plugin.pm |
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 |
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 |
Message body is not shown because it is too large.