0.06 06 November 2008
- Added a 'helper' type constraint called Optional. See docs for more.
- - added lots of tests to cover the API better
+ - added lots of tests to cover the API better, coverage an fixes for
+ the ->parameterize method in particular have been clarified.
- changes so that the type contraints are more forgiving when null
values appear in method calls.
+ - used make_immutable which should speed up the constraints.
+ - removed some unneccesary calls to use Moose when I wasn't using Moose.
+ - lots of little code cleanup work and more internal documentation.
+ - This version requires a newer Moose than previous versions. The
+ Makefile.PL has been updated to reflect this.
0.05 08 November 2008
- Fixed some wackiness in the documentation.
0.04 07 November 2008
- Bumped minimum required versions of Moose and MooseX-Types to solve
problem with overloading and type constraint names (issue resolved
- in Moose code.
+ in Moose code.)
- Changed the way the required Perl version string is used to increase
compatibility and lowered minimum required Perl
use inc::Module::Install;
## All the required meta information
-name 'MooseX-Types-Structured';
+name 'MooseX-Types-Structured';
all_from 'lib/MooseX/Types/Structured.pm';
abstract 'Moose Type Constraint classes for Structured Types';
author 'John Napiorkowski <jjnapiork@cpan.org>';
=cut
-1;
\ No newline at end of file
+__PACKAGE__->meta->make_immutable;
\ No newline at end of file
=cut
-1;
\ No newline at end of file
+__PACKAGE__->meta->make_immutable;
\ No newline at end of file
package MooseX::Types::Structured;
use 5.008;
-use Moose;
use Moose::Util::TypeConstraints;
use MooseX::Meta::TypeConstraint::Structured;
use MooseX::Types -declare => [qw(Dict Tuple Optional)];
use strict;
use warnings;
-use Test::More tests=>2;
+use Test::More tests=>3;
## List all the modules we want to make sure can at least compile
use_ok 'MooseX::Meta::TypeConstraint::Structured';
+use_ok 'MooseX::Meta::TypeCoercion::Structured';
use_ok 'MooseX::Types::Structured';
\ No newline at end of file