+0.02 Mon Nov 2 02:30:10 CST 2009
+ - fix bug where roles of superclasses were not considered when
+ applying invocation schemes.
+
0.01 Tue Oct 13 02:04:03 CDT 2009
- stable release, no major changes
use Moose;
use MooseX::Types -declare => ['RunnableClass'];
use MooseX::Types::Moose qw(Str HashRef ArrayRef);
+use List::MoreUtils qw(uniq);
use namespace::autoclean;
require Class::MOP;
my ($self, $class) = @_;
my @schemes = grep { defined } map {
- $self->_convert_role_to_scheme($_)
- } $class->calculate_all_roles;
+ eval { $self->_convert_role_to_scheme($_) }
+ } map {
+ eval { $_->meta->calculate_all_roles };
+ } $class->linearized_isa;
eval {
- foreach my $scheme (@schemes) {
+ foreach my $scheme (uniq @schemes) {
$scheme->apply($self);
}
};