From: Guillermo Roditi Date: Sat, 15 Mar 2008 23:45:57 +0000 (+0000) Subject: going to finally release this X-Git-Tag: 0.00100^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e579fc460f17605811c6bcfb72b051e0e3c9dda2;p=gitmo%2FMooseX-Emulate-Class-Accessor-Fast.git going to finally release this --- diff --git a/Changes b/Changes index c6c9559..220a896 100644 --- a/Changes +++ b/Changes @@ -1,2 +1,2 @@ -0.0001 May 24, 2007 - Initial Release! \ No newline at end of file +0.00100 Mar 15, 2008 + - Initial Release! \ No newline at end of file diff --git a/lib/MooseX/Adopt/Class/Accessor/Fast.pm b/lib/MooseX/Adopt/Class/Accessor/Fast.pm index 32c96af..0ad4d45 100644 --- a/lib/MooseX/Adopt/Class/Accessor/Fast.pm +++ b/lib/MooseX/Adopt/Class/Accessor/Fast.pm @@ -1,12 +1,13 @@ package MooseX::Adopt::Class::Accessor::Fast; -our $VERSION = 0.0001; +our $VERSION = 0.00100; $INC{'Class/Accessor/Fast.pm'} = __FILE__; package Class::Accessor::Fast; -use base qw/MooseX::Emulate::Class::Accessor::Fast/; +use Moose; +with 'MooseX::Emulate::Class::Accessor::Fast'; 1; @@ -33,12 +34,15 @@ you migrate your project from L, to L, L, L -=head1 AUTHOR +=head1 AUTHORS -Matt S Trout +=over 4 -With Contributions from: -Guillermo Roditi (groditi) +=item Matt S Trout + +=item Guillermo Roditi (groditi) + +=back =head1 LICENSE diff --git a/lib/MooseX/Emulate/Class/Accessor/Fast.pm b/lib/MooseX/Emulate/Class/Accessor/Fast.pm index 14509de..b6a0459 100644 --- a/lib/MooseX/Emulate/Class/Accessor/Fast.pm +++ b/lib/MooseX/Emulate/Class/Accessor/Fast.pm @@ -1,8 +1,8 @@ package MooseX::Emulate::Class::Accessor::Fast; -use Moose; +use Moose::Role; -our $VERSION = 0.0001; +our $VERSION = 0.00100; =head1 NAME @@ -12,11 +12,10 @@ MooseX::Emulate::Class::Accessor::Fast - =head1 SYNOPSYS package MyClass; + Use Moose; + + with 'MooseX::Emulate::Class::Accessor::Fast'; - use base 'MooseX::Emulate::Class::Accessor::Fast'; - #or - use Moose; - extends 'MooseX::Emulate::Class::Accessor::Fast'; #fields with readers and writers __PACKAGE__->mk_accessors(qw/field1 field2/); @@ -32,7 +31,7 @@ This module attempts to emulate the behavior of L as accurately as possible using the Moose attribute system. The public API of C is wholly supported, but the private methods are not. If you are only using the public methods (as you should) migration should be a -matter of switching your C line. +matter of switching your C line to a C line. While I have attempted to emulate the behavior of Class::Accessor::Fast as closely as possible bugs may still be lurking in edge-cases. diff --git a/t/lib/TestAdoptCAF.pm b/t/lib/TestAdoptCAF.pm index 0022be4..bd428c9 100644 --- a/t/lib/TestAdoptCAF.pm +++ b/t/lib/TestAdoptCAF.pm @@ -1,6 +1,6 @@ package TestAdoptCAF; -use base qw/Class::Accessor::Fast/; +use base 'Class::Accessor::Fast'; __PACKAGE__->mk_accessors('foo'); __PACKAGE__->mk_ro_accessors('bar');