Browse files

Use new MetaRole API

  • Loading branch information...
1 parent 78ca272 commit 1c3dc10b75da5dea8d4a53ce5c1d7e460525cc5c @autarch autarch committed with Jul 15, 2010
Showing with 6 additions and 3 deletions.
  1. +1 −0 Changes
  2. +5 −3 lib/MooseX/NonMoose.pm
View
1 Changes
@@ -1,6 +1,7 @@
Revision history for MooseX-NonMoose
{{$NEXT}}
+ - Avoid warnings from Moose 1.09 (Dave Rolsky).
0.11 2010-06-30
- Actually use the right test.
View
8 lib/MooseX/NonMoose.pm
@@ -65,9 +65,11 @@ confused by the extra arguments that Moose requires (for attributes, etc.)
=cut
my ($import, $unimport, $init_meta) = Moose::Exporter->build_import_methods(
- metaclass_roles => ['MooseX::NonMoose::Meta::Role::Class'],
- constructor_class_roles => ['MooseX::NonMoose::Meta::Role::Constructor'],
- install => [qw(import unimport)],
+ class_metaroles => {
+ class => ['MooseX::NonMoose::Meta::Role::Class'],
+ constructor => ['MooseX::NonMoose::Meta::Role::Constructor'],
+ },
+ install => [qw(import unimport)],
);
sub init_meta {

0 comments on commit 1c3dc10

Please sign in to comment.