From: Stevan Little Date: Thu, 17 Aug 2006 17:08:07 +0000 (+0000) Subject: doc cleanup X-Git-Tag: 0_03~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=19b62758d344df4fa5cb91cd04d65fbb0b316934;p=gitmo%2FMoose-Autobox.git doc cleanup --- diff --git a/Changes b/Changes index cca0a5e..f1fdad3 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,16 @@ Revision history for Perl extension Moose::Autobox -0.02 +0.03 + - added &mixin_additional_role to allow mixing in of + additional functionality + + - added new examples for units + - ported from the Pugs examples/units directory + + * Moose::Autobox::Code + - added the Y and U combinators + +0.02 Sat. June 24, 2006 - fixed Moose::Autobox so that PAUSE won't try to index SCALAR, ARRAY, HASH and CODE. diff --git a/examples/units/time.t b/examples/units/time.pl similarity index 100% rename from examples/units/time.t rename to examples/units/time.pl diff --git a/lib/Moose/Autobox.pm b/lib/Moose/Autobox.pm index 7899bb7..e33ae6c 100644 --- a/lib/Moose/Autobox.pm +++ b/lib/Moose/Autobox.pm @@ -11,6 +11,8 @@ our $VERSION = '0.03'; use base 'autobox'; +use Moose::Autobox::Undef; + sub import { (shift)->SUPER::import( DEFAULT => 'Moose::Autobox::', @@ -69,12 +71,11 @@ __END__ =head1 NAME -Moose::Autobox - Autoboxed for her pleasure +Moose::Autobox - Ruby ain't got nothin on us =head1 SYNOPOSIS use Moose::Autobox; - use autobox; print 'Print squares from 1 to 10 : '; print [ 1 .. 10 ]->map(sub { $_ * $_ })->join(', '); diff --git a/lib/Moose/Autobox/Array.pm b/lib/Moose/Autobox/Array.pm index e236fc9..3525595 100644 --- a/lib/Moose/Autobox/Array.pm +++ b/lib/Moose/Autobox/Array.pm @@ -152,7 +152,6 @@ Moose::Autobox::Array - the Array role =head1 SYNOPOSIS use Moose::Autobox; - use autobox; [ 1..5 ]->isa('ARRAY'); # true [ a..z ]->does('Moose::Autobox::Array'); # true diff --git a/lib/Moose/Autobox/Defined.pm b/lib/Moose/Autobox/Defined.pm index 372193f..c637f3b 100644 --- a/lib/Moose/Autobox/Defined.pm +++ b/lib/Moose/Autobox/Defined.pm @@ -20,7 +20,6 @@ Moose::Autobox::Defined - the Defined role =head1 SYNOPOSIS use Moose::Autobox; - use autobox; my $x; $x->defined; # false diff --git a/lib/Moose/Autobox/Hash.pm b/lib/Moose/Autobox/Hash.pm index c4e54eb..7fd63cd 100644 --- a/lib/Moose/Autobox/Hash.pm +++ b/lib/Moose/Autobox/Hash.pm @@ -56,7 +56,6 @@ Moose::Autobox::Hash - the Hash role =head1 SYNOPOSIS use Moose::Autobox; - use autobox; print { one => 1, two => 2 }->keys->join(', '); # prints 'one, two' diff --git a/lib/Moose/Autobox/String.pm b/lib/Moose/Autobox/String.pm index 718410e..69bc977 100644 --- a/lib/Moose/Autobox/String.pm +++ b/lib/Moose/Autobox/String.pm @@ -36,7 +36,6 @@ Moose::Autobox::String - the String role =head1 SYNOPOSIS use Moose::Autobox; - use autobox; "Hello World"->uc; # HELLO WORLD diff --git a/lib/Moose/Autobox/Undef.pm b/lib/Moose/Autobox/Undef.pm index 0d7fbdc..c78e76e 100644 --- a/lib/Moose/Autobox/Undef.pm +++ b/lib/Moose/Autobox/Undef.pm @@ -20,7 +20,6 @@ Moose::Autobox::Undef - the Undef role =head1 SYNOPOSIS use Moose::Autobox; - use autobox UNDEF => 'Moose::Autobox::Undef'; my $x; $x->defined; # false diff --git a/lib/Moose/Autobox/Value.pm b/lib/Moose/Autobox/Value.pm index de5a0aa..ab142f4 100644 --- a/lib/Moose/Autobox/Value.pm +++ b/lib/Moose/Autobox/Value.pm @@ -23,7 +23,6 @@ Moose::Autobox::Value - the Value role =head1 SYNOPOSIS use Moose::Autobox; - use autobox; # execute a sub on the value print 10->do(sub { $_ * $_ }); # prints 100 diff --git a/t/001_basic.t b/t/001_basic.t index fd2bf93..1e24b4b 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -3,11 +3,10 @@ use strict; use warnings; -use Test::More tests => 56; +use Test::More tests => 55; BEGIN { use_ok('Moose::Autobox'); - use_ok('Moose::Autobox::Undef'); } use Moose::Autobox;