From: Chris Prather Date: Tue, 20 Oct 2009 05:12:43 +0000 (-0400) Subject: update docs and Changes X-Git-Tag: 0.93_01~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c345515801ccf94ce15513cd185060052d3ed94e;p=gitmo%2FMoose.git update docs and Changes in #moose 04:40 <@doy> perigrin: you have a typo in the docs (Age vs ValidAge), and you should add a Changes entry --- diff --git a/Changes b/Changes index 14a566f..eaed900 100644 --- a/Changes +++ b/Changes @@ -14,6 +14,10 @@ for, noteworthy changes. - Added a with_immutable test function, to run a block of tests with and without certain classes being immutable. (doy) + * oose.pm + - Add Moose::Util::TypeConstraints exports to allow easier testing + of TypeConsraints from the command line. (perigrin) + 0.94 * Moose::Cookbook::Basics::Recipe4 - Grammar error [rt.cpan.org #51791] (Amir E. Aharoni) diff --git a/lib/oose.pm b/lib/oose.pm index 94b2d32..37576bd 100644 --- a/lib/oose.pm +++ b/lib/oose.pm @@ -42,7 +42,7 @@ oose - syntactic sugar to make Moose one-liners easier perl -Moose=+My::Class -e 'print join ", " => __PACKAGE__->meta->get_method_list' # also loads Moose::Util::TypeConstraints to allow subtypes etc - perl -Moose=Person -e'subtype q[Age] => as q[Int] => where { $_ > 0 && $_ < 78 }; has => age ( isa => q[ValidAge], is => q[ro]); Person->new(age => 90)' + perl -Moose=Person -e'subtype q[ValidAge] => as q[Int] => where { $_ > 0 && $_ < 78 }; has => age ( isa => q[ValidAge], is => q[ro]); Person->new(age => 90)' =head1 DESCRIPTION