From: oliver Date: Thu, 9 Apr 2009 21:26:24 +0000 (+0000) Subject: resolve rt.cpan#44902 warning due to deprecated use of alias_method in Plugin.pm X-Git-Tag: v1.003015~62 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1c8966706abed2189ab3ea1ff358ac298930625;p=p5sagit%2FDevel-REPL.git resolve rt.cpan#44902 warning due to deprecated use of alias_method in Plugin.pm git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@5875 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/Makefile.PL b/Makefile.PL index a2b36d8..26bb211 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -13,7 +13,7 @@ requires 'File::Spec'; 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'; diff --git a/lib/Devel/REPL/Plugin.pm b/lib/Devel/REPL/Plugin.pm index f2f6d8a..f7b9d67 100644 --- a/lib/Devel/REPL/Plugin.pm +++ b/lib/Devel/REPL/Plugin.pm @@ -8,7 +8,7 @@ use Moose::Role (); 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; }