X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FStorage.pm;h=05962d6e19bbfd306cf8ee3d486b52ec7b2a2e1c;hb=4fa64e865c99a6dcc3bec159a662300151d62fdf;hp=72a0b74b37e41cff398cf7b49410dc7f9bb8021a;hpb=4747c531e32782b51fca0f2744698bfb6c1bcd05;p=gitmo%2FMooseX-Storage.git diff --git a/lib/MooseX/Storage.pm b/lib/MooseX/Storage.pm index 72a0b74..05962d6 100644 --- a/lib/MooseX/Storage.pm +++ b/lib/MooseX/Storage.pm @@ -4,7 +4,7 @@ use Moose qw(confess); use MooseX::Storage::Meta::Attribute::DoNotSerialize; -our $VERSION = '0.07'; +our $VERSION = '0.12'; our $AUTHORITY = 'cpan:STEVAN'; sub import { @@ -37,12 +37,16 @@ sub import { if exists $params{'format'}; # NOTE: - # if you do choose an IO role, then - # you *must* have a format role chosen - # since load/store require freeze/thaw + # many IO roles don't make sense unless + # you have also have a format role chosen + # too, the exception being StorableFile if (exists $params{'io'}) { - (exists $params{'format'}) - || confess "You must specify a format role in order to use an IO role"; + # NOTE: + # we dont need this code anymore, cause + # the role composition will catch it for + # us. This allows the StorableFile to work + #(exists $params{'format'}) + # || confess "You must specify a format role in order to use an IO role"; push @roles => 'MooseX::Storage::IO::' . $params{'io'}; } @@ -153,8 +157,8 @@ have it. You can just use C/C instead. The third (io) level is C and C. In this level we are reading and writing data to file/network/database/etc. -This level is also optional, it does however require the C level -to be present (at least the current state does). +This level is also optional, in most cases it does require a C role +to also be used, the expection being the C role. =back @@ -253,9 +257,11 @@ Chris Prather Echris.prather@iinteractive.comE Stevan Little Estevan.little@iinteractive.comE +Yuval Kogman Eyuval.kogman@iinteractive.comE + =head1 COPYRIGHT AND LICENSE -Copyright 2007 by Infinity Interactive, Inc. +Copyright 2007-2008 by Infinity Interactive, Inc. L