From: Stevan Little Date: Wed, 19 Apr 2006 20:55:26 +0000 (+0000) Subject: more-fixes X-Git-Tag: 0_05~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c4fbe56903bd83200bd4f6f5ee47bda793b30a3;p=gitmo%2FMoose.git more-fixes --- diff --git a/Changes b/Changes index 67be4f0..f300916 100644 --- a/Changes +++ b/Changes @@ -7,7 +7,10 @@ Revision history for Perl extension Moose - has keyword now takes a 'metaclass' option to support custom attribute meta-classes on a per-attribute basis - - added tests for this + - Moose now enforces that your attribute + metaclasses are always derived from + Moose::Meta::Attribute + - added tests for this * Moose::Role - keywords are now exported with Sub::Exporter diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index d0b1086..bcb588c 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -7,7 +7,7 @@ use warnings; use Scalar::Util 'blessed', 'weaken', 'reftype'; use Carp 'confess'; -our $VERSION = '0.04'; +our $VERSION = '0.05'; use Moose::Util::TypeConstraints (); diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 1c3ee1c..5c7647f 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -9,7 +9,7 @@ use Class::MOP; use Carp 'confess'; use Scalar::Util 'weaken', 'blessed'; -our $VERSION = '0.04'; +our $VERSION = '0.05'; use base 'Class::MOP::Class'; diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 58c373d..4723e95 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -5,13 +5,11 @@ use strict; use warnings; use Moose::Meta::Class; -use metaclass 'Moose::Meta::Class' => ( - ':attribute_metaclass' => 'Moose::Meta::Attribute' -); +use metaclass 'Moose::Meta::Class'; use Carp 'confess'; -our $VERSION = '0.04'; +our $VERSION = '0.05'; sub new { my $class = shift;