my $builder = Module::Build->new
( module_name => 'MooseX::ClassAttribute',
license => 'perl',
- requires => { 'Moose' => '0.57',
+ requires => { 'Moose' => '0.73_01',
'MooseX::AttributeHelpers' => '0.13',
},
build_requires => { 'Scalar::Util' => '0',
+0.08
+
+- Make this work with Moose 0.73_01+.
+
+- Deprecated compute_all_applicable_class_attributes. Use
+ get_all_class_attributes instead.
+
+
0.07 2008-11-10
- Fixed a bug where class attributes did not honor the
our $VERSION = '0.07';
our $AUTHORITY = 'cpan:DROLSKY';
-use Moose ();
+use Moose 0.73_01 ();
use Moose::Exporter;
use MooseX::ClassAttribute::Role::Meta::Class;
extends 'Moose::Meta::Method::Accessor';
-sub generate_predicate_method_inline
+sub _generate_predicate_method_inline
{
my $attr = (shift)->associated_attribute;
return $code;
}
-sub generate_clearer_method_inline
+sub _generate_clearer_method_inline
{
my $attr = (shift)->associated_attribute;
my $meta_instance = $attr->associated_class->instance_metaclass;
sub get_all_class_attributes
{
- shift->compute_all_applicable_class_attributes(@_);
-}
-
-sub compute_all_applicable_class_attributes
-{
my $self = shift;
my %attrs =
return values %attrs;
}
+sub compute_all_applicable_class_attributes
+{
+ warn 'The compute_all_applicable_class_attributes method has been deprecated.'
+ . " Use get_all_class_attributes instead.\n";
+
+ shift->compute_all_applicable_class_attributes(@_);
+}
+
sub find_class_attribute_by_name
{
my $self = shift;
=head2 $meta->get_all_class_attributes()
-=head2 $meta->compute_all_applicable_class_attributes()
-
-These methods return a list of attribute objects for the class and all
+This method returns a list of attribute objects for the class and all
its parent classes.
=head2 $meta->find_class_attribute_by_name($name)
my %trustme =
( 'MooseX::ClassAttribute' => [ 'init_meta', 'class_has' ],
+ 'MooseX::ClassAttribute::Role::Meta::Class' => [ 'compute_all_applicable_class_attributes' ],
'MooseX::ClassAttribute::Meta::Method::Accessor' => [ '.+' ]
);