Commit 9497fefd authored by Fabrizio Regalli's avatar Fabrizio Regalli

[svn-upgrade] new version libdata-serializer-perl (0.58)

parent 964f07f5
Revision history for Perl extension Data::Serializer
0.57 Tue Jun 14 2011
- Added utf8 to the decode in the JSON deserializing code. Fixes https://rt.cpan.org/Public/Bug/Display.html?id=68125
Thanks to colink@perldreamer.com for finding the bug and supplying good tests and a suggested fix and to
lp@sunnyspot.org for the suggested ->utf8-> fix (which really was functionally identical to what colink recommended)
0.57 Mon Jan 17 2011
- Updated remainder of test suite to armor against XML::Simple dependency problems that I first
attempted to fix in 0.53. Only modified tests, no change to module code
......
......@@ -17,7 +17,7 @@ name: Data-Serializer
provides:
Data::Serializer:
file: lib/Data/Serializer.pm
version: 0.57
version: 0.58
Data::Serializer::Bencode:
file: lib/Data/Serializer/Bencode.pm
version: 0.03
......@@ -47,7 +47,7 @@ provides:
version: 0.02
Data::Serializer::JSON:
file: lib/Data/Serializer/JSON.pm
version: 0.03
version: 0.04
Data::Serializer::JSON::Syck:
file: lib/Data/Serializer/JSON/Syck.pm
version: 0.02
......@@ -105,4 +105,4 @@ requires:
IO::File: 0
resources:
license: http://dev.perl.org/licenses/
version: 0.57
version: 0.58
......@@ -7,7 +7,7 @@ use vars qw($VERSION);
use Carp;
require 5.004 ;
$VERSION = '0.57';
$VERSION = '0.58';
#Global cache of modules we've loaded
my %_MODULES;
......
......@@ -6,7 +6,7 @@ use strict;
use JSON;
use vars qw($VERSION @ISA);
$VERSION = '0.03';
$VERSION = '0.04';
sub serialize {
return JSON->VERSION < 2 ? JSON->new->objToJson($_[1]) : JSON->new->utf8->encode($_[1]);
......@@ -14,7 +14,7 @@ sub serialize {
sub deserialize {
#return JSON->VERSION < 2 ? JSON->new->jsonToObj($_[1]) : JSON->new->decode($_[1]);
$_[1] and return JSON->VERSION < 2 ? JSON->new->jsonToObj($_[1]) : JSON->new->decode($_[1]);
$_[1] and return JSON->VERSION < 2 ? JSON->new->jsonToObj($_[1]) : JSON->new->utf8->decode($_[1]);
}
1;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment