Revision history for MooseX-Storage
+0.05 Sun. July 15. 2007
+ * MooseX::Storage::Base::WithChecksum
+ - Fixed minor issue where the WithChecksum would
+ choke with a bad checksum due to odd Data::Dumper
+ output.
+
+ * t/
+ - forced JSON::Any in the basic JSON tests to use
+ JSON.pm since this is what Test::JSON uses and
+ subtle (and annoying) issues can arise.
+
0.04 Tues. July 3, 2007
* MooseX::Storage::Util
- made this more robust when it tries
use MooseX::Storage::Meta::Attribute::DoNotSerialize;
-our $VERSION = '0.04';
+our $VERSION = '0.05';
our $AUTHORITY = 'cpan:STEVAN';
sub import {
use MooseX::Storage::Engine;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
our $DIGEST_MARKER = '__DIGEST__';
local $Data::Dumper::Useqq = 0;
local $Data::Dumper::Deparse = 0; # FIXME?
my $str = Data::Dumper::Dumper($collapsed);
- $str =~ s/(?<! ['"] ) \b (\d+) \b (?! ['"] )/'$1'/gx; # canonicalize numbers to strings even if it mangles numbers inside strings
+ # NOTE:
+ # Canonicalize numbers to strings even if it
+ # mangles numbers inside strings. It really
+ # does not matter since its just the checksum
+ # anyway.
+ # - YK/SL
+ $str =~ s/(?<! ['"] ) \b (\d+) \b (?! ['"] )/'$1'/gx;
$d->add( $str );
}
BEGIN {
eval "use Test::JSON";
- plan skip_all => "Test::JSON is required for this test" if $@;
+ plan skip_all => "Test::JSON is required for this test" if $@;
+ # NOTE:
+ # this idiocy is cause Test::JSON
+ # uses JSON.pm and that can be
+ # very picky about the JSON output
+ # - SL
+ BEGIN { $ENV{JSON_ANY_ORDER} = qw(JSON) }
plan tests => 12;
use_ok('MooseX::Storage');
}
BEGIN {
eval "use Digest; use Digest::SHA1";
- plan skip_all => "Digest and Digest::SHA1 is required for this test" if $@;
+ plan skip_all => "Digest and Digest::SHA1 is required for this test" if $@;
plan tests => 26;
use_ok('MooseX::Storage');
}