rid of all our CPANtester failures
- tested against 5.10 as well
- * MooseX::Storage::Meta::Attribute::DoNotSerialize
+ * MooseX::Storage::Engine
+ MooseX::Storage::Meta::Attribute::DoNotSerialize
MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize
- adding meta-attribute-trait support for
DoNotSerialize
package MooseX::Storage::Engine;
use Moose;
-our $VERSION = '0.04';
+our $VERSION = '0.05';
our $AUTHORITY = 'cpan:STEVAN';
# the class marker when
$self->$method_name($_, @args)
} grep {
# Skip our special skip attribute :)
- !$_->isa('MooseX::Storage::Meta::Attribute::DoNotSerialize')
+ !$_->does('MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize')
} ($self->object || $self->class)->meta->compute_all_applicable_attributes;
}
# register this alias ...
package Moose::Meta::Attribute::Custom::DoNotSerialize;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' }
use strict;
use warnings;
-use Test::More no_plan => 1;
+use Test::More no_plan => 6;
use Test::Exception;
BEGIN {
my $foo = Foo->new;
isa_ok($foo, 'Foo');
+is($foo->bar, 'BAR', '... got the value we expected');
+is($foo->baz, 'BAZ', '... got the value we expected');
+is($foo->gorch, 'GORCH', '... got the value we expected');
+
+is_deeply(
+ $foo->pack,
+ {
+ __CLASS__ => 'Foo',
+ gorch => 'GORCH'
+ },
+ '... got the right packed class data'
+);
+
+
+