+ - properly die when composing a module that isn't a Role
+
1.002000 - 2013-05-04
- add 'moosify' attribute key to provide code for inflating to Moose
- fix warnings about unknown attribute parameters on metaclass inflation
and (
$INC{"Moose.pm"}
and $meta = Class::MOP::class_of($role)
+ and $meta->isa('Moose::Meta::Role')
)
or (
Mouse::Util->can('find_meta')
and $meta = Mouse::Util::find_meta($role)
+ and $meta->isa('Mouse::Meta::Role')
)
) {
$INFO{$role}{methods} = {
sub apply_single_role_to_package {
my ($me, $to, $role) = @_;
+ die "${role} is not a Moo::Role" unless my $info = $INFO{$role};
$me->_inhale_if_moose($role);
$me->_handle_constructor($to, $INFO{$role}{attributes});
$me->_maybe_make_accessors($role, $to);