[Moose-commits] r7894 - in MooseX-Storage/trunk: . lib/MooseX lib/MooseX/Storage lib/MooseX/Storage/Base lib/MooseX/Storage/Engine/IO lib/MooseX/Storage/Format lib/MooseX/Storage/IO lib/MooseX/Storage/Meta/Attribute lib/MooseX/Storage/Meta/Attribute/Trait

t0m at code2.0beta.co.uk t0m at code2.0beta.co.uk
Mon Apr 6 14:24:12 GMT 2009


Author: t0m
Date: 2009-04-06 07:24:12 -0700 (Mon, 06 Apr 2009)
New Revision: 7894

Modified:
   MooseX-Storage/trunk/Changes
   MooseX-Storage/trunk/lib/MooseX/Storage.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Base/WithChecksum.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Basic.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Deferred.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Engine.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/AtomicFile.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/File.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Format/JSON.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Format/Storable.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Format/YAML.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/IO/AtomicFile.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/IO/File.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/IO/StorableFile.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm
   MooseX-Storage/trunk/lib/MooseX/Storage/Util.pm
Log:
Update the use non-deprecated methods, and bump all the version numbers to be current.


Modified: MooseX-Storage/trunk/Changes
===================================================================
--- MooseX-Storage/trunk/Changes	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/Changes	2009-04-06 14:24:12 UTC (rev 7894)
@@ -1,5 +1,9 @@
 Revision history for MooseX-Storage
 
+0.17
+   * Change MooseX::Storage::Engine to use get_all_attributes,
+     rather than the deprecated compute_all_applicable_attributes (t0m)
+
 0.16
    * Don't fail tests when Best is unavailable (t0m)
 

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Base/WithChecksum.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Base/WithChecksum.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Base/WithChecksum.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -7,7 +7,7 @@
 
 use MooseX::Storage::Engine;
 
-our $VERSION   = '0.02';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 our $DIGEST_MARKER = '__DIGEST__';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Basic.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Basic.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Basic.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use MooseX::Storage::Engine;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 sub pack {

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Deferred.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Deferred.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Deferred.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -1,7 +1,7 @@
 package MooseX::Storage::Deferred;
 use Moose::Role;
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 with 'MooseX::Storage::Basic';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/AtomicFile.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/AtomicFile.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/AtomicFile.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -5,7 +5,7 @@
 use utf8 ();
 use IO::AtomicFile;
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 extends 'MooseX::Storage::Engine::IO::File';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/File.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/File.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Engine/IO/File.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -5,7 +5,7 @@
 use utf8 ();
 use IO::File;
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 has 'file' => (

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Engine.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Engine.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Engine.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -3,7 +3,7 @@
 use Moose;
 use Scalar::Util qw(refaddr);
 
-our $VERSION   = '0.07';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 # the class marker when 
@@ -70,15 +70,17 @@
 
 sub collapse_attribute_value {
     my ($self, $attr, $options)  = @_;
+    # Faster, but breaks attributes without readers, do we care?
+	#my $value = $attr->get_read_method_ref->($self->object);
 	my $value = $attr->get_value($self->object);
-	
+
 	# NOTE:
-	# this might not be enough, we might 
-	# need to make it possible for the 
+	# this might not be enough, we might
+	# need to make it possible for the
 	# cycle checker to return the value
     $self->check_for_cycle_in_collapse($attr, $value)
         if ref $value;
-	
+
     if (defined $value && $attr->has_type_constraint) {
         my $type_converter = $self->find_type_handler($attr->type_constraint);
         (defined $type_converter)
@@ -137,7 +139,7 @@
     } grep {
         # Skip our special skip attribute :)
         !$_->does('MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize') 
-    } ($self->object || $self->class)->meta->compute_all_applicable_attributes;
+    } ($self->object || $self->class)->meta->get_all_attributes;
 }
 
 ## ------------------------------------------------------------------

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Format/JSON.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Format/JSON.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Format/JSON.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -7,7 +7,7 @@
 use JSON::Any;
 use utf8 ();
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 requires 'pack';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Format/Storable.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Format/Storable.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Format/Storable.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use Storable ();
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 requires 'pack';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Format/YAML.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Format/YAML.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Format/YAML.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -11,7 +11,7 @@
     [ qw[Load Dump] ]
 ];
 
-our $VERSION   = '0.02';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 requires 'pack';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/IO/AtomicFile.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/IO/AtomicFile.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/IO/AtomicFile.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use MooseX::Storage::Engine::IO::AtomicFile;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 with 'MooseX::Storage::IO::File';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/IO/File.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/IO/File.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/IO/File.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use MooseX::Storage::Engine::IO::File;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 requires 'thaw';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/IO/StorableFile.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/IO/StorableFile.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/IO/StorableFile.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use Storable ();
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 requires 'pack';

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -2,7 +2,7 @@
 package MooseX::Storage::Meta::Attribute::DoNotSerialize;
 use Moose;
 
-our $VERSION   = '0.02';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 extends 'Moose::Meta::Attribute';
@@ -11,7 +11,7 @@
 # register this alias ...
 package Moose::Meta::Attribute::Custom::DoNotSerialize;
 
-our $VERSION   = '0.02';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' }

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -2,13 +2,13 @@
 package MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize;
 use Moose::Role;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 # register this alias ...
 package Moose::Meta::Attribute::Custom::Trait::DoNotSerialize;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 sub register_implementation { 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize' }

Modified: MooseX-Storage/trunk/lib/MooseX/Storage/Util.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage/Util.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage/Util.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 use MooseX::Storage::Engine ();
 use utf8 ();
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 sub peek {

Modified: MooseX-Storage/trunk/lib/MooseX/Storage.pm
===================================================================
--- MooseX-Storage/trunk/lib/MooseX/Storage.pm	2009-04-05 21:59:18 UTC (rev 7893)
+++ MooseX-Storage/trunk/lib/MooseX/Storage.pm	2009-04-06 14:24:12 UTC (rev 7894)
@@ -4,7 +4,7 @@
 
 use MooseX::Storage::Meta::Attribute::DoNotSerialize;
 
-our $VERSION   = '0.15';
+our $VERSION   = '0.17';
 our $AUTHORITY = 'cpan:STEVAN';
 
 sub import {




More information about the Moose-commits mailing list