projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8abe963
)
changelog on it
Stevan Little [Fri, 15 Feb 2008 18:03:25 +0000 (18:03 +0000)]
Changes
patch
|
blob
|
blame
|
history
lib/Moose/Meta/Attribute.pm
patch
|
blob
|
blame
|
history
t/020_attributes/019_attribute_lazy_initializer.t
patch
|
blob
|
blame
|
history
diff --git
a/Changes
b/Changes
index
c4379ab
..
c781160
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,6
+1,12
@@
Revision history for Perl extension Moose
0.38
+ * Moose::Meta::Attribute
+ - fixed initializer to correctly do
+ type checking and coercion in the
+ callback
+ - added tests for this
+
* t/
- fixed some finicky tests (thanks to konobi)
diff --git
a/lib/Moose/Meta/Attribute.pm
b/lib/Moose/Meta/Attribute.pm
index
fa3db88
..
952da9b
100644
(file)
--- 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.20';
+our $VERSION = '0.21';
our $AUTHORITY = 'cpan:STEVAN';
use Moose::Meta::Method::Accessor;
diff --git
a/t/020_attributes/019_attribute_lazy_initializer.t
b/t/020_attributes/019_attribute_lazy_initializer.t
index
40dbe54
..
6f89493
100644
(file)
--- a/
t/020_attributes/019_attribute_lazy_initializer.t
+++ b/
t/020_attributes/019_attribute_lazy_initializer.t
@@
-150,8
+150,3
@@
dies_ok {
Fail::Bar->new(foo => 10)
} '... this fails, because initializer returns a bad type';
-
-
-
-
-