Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Meta / Role / Application / RoleSummation.pm
index dfa6522..372545e 100644 (file)
@@ -8,8 +8,6 @@ use Scalar::Util 'blessed';
 
 use Moose::Meta::Role::Composite;
 
-our $VERSION   = '1.02';
-$VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
 use base 'Moose::Meta::Role::Application';
@@ -156,7 +154,6 @@ sub apply_methods {
         my $role     = $_;
         my $aliases  = $self->get_method_aliases_for_role($role);
         my %excludes = map { $_ => undef } @{ $self->get_exclusions_for_role($role) };
-        $excludes{meta} = undef;
         (
             (map {
                 exists $excludes{$_} ? () :
@@ -165,7 +162,9 @@ sub apply_methods {
                     name   => $_,
                     method => $role->get_method($_),
                 }
-            } $role->get_method_list),
+            } map { $_->name }
+              grep { !$_->isa('Class::MOP::Method::Meta') }
+                   $role->_get_local_methods),
             (map {
                 +{
                     role   => $role,
@@ -253,14 +252,12 @@ sub apply_method_modifiers {
 
 1;
 
+# ABSTRACT: Combine two or more roles
+
 __END__
 
 =pod
 
-=head1 NAME
-
-Moose::Meta::Role::Application::RoleSummation - Combine two or more roles
-
 =head1 DESCRIPTION
 
 Summation composes two traits, forming the union of non-conflicting
@@ -308,18 +305,5 @@ bindings and 'disabling' the conflicting bindings
 
 See L<Moose/BUGS> for details on reporting bugs.
 
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2010 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
 =cut