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)
use MooseX::Storage::Meta::Attribute::DoNotSerialize;
-our $VERSION = '0.15';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
sub import {
use MooseX::Storage::Engine;
-our $VERSION = '0.02';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
our $DIGEST_MARKER = '__DIGEST__';
use MooseX::Storage::Engine;
-our $VERSION = '0.01';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
sub pack {
package MooseX::Storage::Deferred;
use Moose::Role;
-our $VERSION = '0.03';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
with 'MooseX::Storage::Basic';
use Moose;
use Scalar::Util qw(refaddr);
-our $VERSION = '0.07';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
# the class marker when
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)
} 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;
}
## ------------------------------------------------------------------
use utf8 ();
use IO::AtomicFile;
-our $VERSION = '0.03';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
extends 'MooseX::Storage::Engine::IO::File';
use utf8 ();
use IO::File;
-our $VERSION = '0.03';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
has 'file' => (
use JSON::Any;
use utf8 ();
-our $VERSION = '0.03';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
requires 'pack';
use Storable ();
-our $VERSION = '0.01';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
requires 'pack';
[ qw[Load Dump] ]
];
-our $VERSION = '0.02';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
requires 'pack';
use MooseX::Storage::Engine::IO::AtomicFile;
-our $VERSION = '0.01';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
with 'MooseX::Storage::IO::File';
use MooseX::Storage::Engine::IO::File;
-our $VERSION = '0.01';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
requires 'thaw';
use Storable ();
-our $VERSION = '0.01';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
requires 'pack';
package MooseX::Storage::Meta::Attribute::DoNotSerialize;
use Moose;
-our $VERSION = '0.02';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
extends 'Moose::Meta::Attribute';
# 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' }
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' }
use MooseX::Storage::Engine ();
use utf8 ();
-our $VERSION = '0.03';
+our $VERSION = '0.17';
our $AUTHORITY = 'cpan:STEVAN';
sub peek {