Revision history for Perl extension Moose::Autobox
+0.06
+ * Moose::Autobox
+ - fixed role application code to follow the new
+ Moose::Util based API, upped the Moose version
+ dependency.
+
0.05 Sun. Aug. 5, 2007
* Moose::Autobox
- fixed loading approach so that Moose::Object doesn't end
use Carp qw(confess);
use Scalar::Util ();
-our $VERSION = '0.05';
+our $VERSION = '0.06';
use base 'autobox';
my ($class, $type, $role) = @_;
($type =~ /SCALAR|ARRAY|HASH|CODE/)
|| confess "Can only add additional roles to SCALAR, ARRAY, HASH or CODE";
- ('Moose::Autobox::' . $type)->meta->_apply_all_roles($role);
+ Moose::Util::apply_all_roles(('Moose::Autobox::' . $type)->meta, ($role));
}
{
use metaclass 'Moose::Meta::Class';
- __PACKAGE__->meta->_apply_all_roles('Moose::Autobox::Scalar');
+ Moose::Util::apply_all_roles(__PACKAGE__->meta, ('Moose::Autobox::Scalar'));
*does = \&Moose::Object::does;
use metaclass 'Moose::Meta::Class';
- __PACKAGE__->meta->_apply_all_roles('Moose::Autobox::Array');
+ Moose::Util::apply_all_roles(__PACKAGE__->meta, ('Moose::Autobox::Array'));
*does = \&Moose::Object::does;
use metaclass 'Moose::Meta::Class';
- __PACKAGE__->meta->_apply_all_roles('Moose::Autobox::Hash');
+ Moose::Util::apply_all_roles(__PACKAGE__->meta, ('Moose::Autobox::Hash'));
*does = \&Moose::Object::does;
use metaclass 'Moose::Meta::Class';
- __PACKAGE__->meta->_apply_all_roles('Moose::Autobox::Code');
+ Moose::Util::apply_all_roles(__PACKAGE__->meta, ('Moose::Autobox::Code'));
*does = \&Moose::Object::does;