From: Stevan Little Date: Thu, 14 Feb 2008 20:16:29 +0000 (+0000) Subject: 0.37 X-Git-Tag: 0_55~308 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c14746bc8269ab593798469dc204aa0d8f72f7ee;p=gitmo%2FMoose.git 0.37 --- diff --git a/Changes b/Changes index bc0623c..3902ea5 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for Perl extension Moose -0.37 +0.37 Thurs. Fri. 14, 2008 * Moose - fixed some details in Moose::init_meta and its superclass handling (thanks thepler) @@ -24,6 +24,7 @@ Revision history for Perl extension Moose * Moose::Util::TypeConstraints Moose::Util::TypeConstraints::OptimizedConstraints + Moose::Meta::TypeConstraints Moose::Meta::Attribute Moose::Meta::Method::Constructor Moose::Meta::Method::Accessor @@ -40,6 +41,10 @@ Revision history for Perl extension Moose - fixed handling of undef with type constraints (thanks to Ernesto) - added tests for this + + * Moose::Util + - added &get_all_init_args and &get_all_attribute_values + (thanks to Sartak and nothingmuch) 0.36 Sat. Jan. 26, 2008 * Moose::Role diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index 15064d9..b31a5c0 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -9,7 +9,7 @@ use Carp 'confess'; use Sub::Name 'subname'; use overload (); -our $VERSION = '0.18'; +our $VERSION = '0.20'; our $AUTHORITY = 'cpan:STEVAN'; use Moose::Meta::Method::Accessor; diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index be298e7..3dd0bb4 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', 'reftype'; -our $VERSION = '0.19'; +our $VERSION = '0.20'; our $AUTHORITY = 'cpan:STEVAN'; use Moose::Meta::Method::Overriden; diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index ed1fa1d..40f7a9a 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -7,7 +7,7 @@ use warnings; use Carp 'confess'; use Scalar::Util 'blessed', 'weaken', 'looks_like_number'; -our $VERSION = '0.05'; +our $VERSION = '0.08'; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method', diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index 0dd9126..53ba3a7 100644 --- a/lib/Moose/Meta/TypeConstraint.pm +++ b/lib/Moose/Meta/TypeConstraint.pm @@ -12,7 +12,7 @@ use Sub::Name 'subname'; use Carp 'confess'; use Scalar::Util 'blessed'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; our $AUTHORITY = 'cpan:STEVAN'; __PACKAGE__->meta->add_attribute('name' => (reader => 'name')); diff --git a/lib/Moose/Util.pm b/lib/Moose/Util.pm index d819112..466e2aa 100644 --- a/lib/Moose/Util.pm +++ b/lib/Moose/Util.pm @@ -8,7 +8,7 @@ use Scalar::Util 'blessed'; use Carp 'confess'; use Class::MOP (); -our $VERSION = '0.02'; +our $VERSION = '0.03'; our $AUTHORITY = 'cpan:STEVAN'; my @exports = qw[ diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index b771149..171a28a 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -8,7 +8,7 @@ use Carp 'confess'; use Scalar::Util 'blessed', 'reftype'; use Sub::Exporter; -our $VERSION = '0.20'; +our $VERSION = '0.21'; our $AUTHORITY = 'cpan:STEVAN'; ## -------------------------------------------------------- diff --git a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm index 5a6607b..f40845c 100644 --- a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm +++ b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm @@ -5,7 +5,7 @@ use warnings; use Scalar::Util 'blessed', 'looks_like_number'; -our $VERSION = '0.01'; +our $VERSION = '0.02'; our $AUTHORITY = 'cpan:STEVAN'; sub Value { defined($_[0]) && !ref($_[0]) } diff --git a/t/040_type_constraints/023_types_and_undef.t b/t/040_type_constraints/023_types_and_undef.t index a4b1c6e..f5eccd1 100644 --- a/t/040_type_constraints/023_types_and_undef.t +++ b/t/040_type_constraints/023_types_and_undef.t @@ -5,15 +5,12 @@ use warnings; use Test::More tests => 55; use Test::Exception; -use Test::Deep; BEGIN { use_ok('Moose'); } -# A MOOSE OBJECT -# { package Foo; use Moose; diff --git a/t/060_compat/003_foreign_inheritence.t b/t/060_compat/003_foreign_inheritence.t index 2b9751c..2ee2b37 100644 --- a/t/060_compat/003_foreign_inheritence.t +++ b/t/060_compat/003_foreign_inheritence.t @@ -82,7 +82,7 @@ lives_ok { } 'Immutability on Moose class extending Class::MOP class ok'; TODO: { - local $TODO = 'Needs MRO::Compat support'; + local $TODO = 'Needs MRO::Compat support' if $] < 5.009_005; lives_ok { SubClass2::extends('MyBase');