summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/JSON-PP
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/cpan/JSON-PP')
-rw-r--r--gnu/usr.bin/perl/cpan/JSON-PP/lib/JSON/PP.pm28
-rw-r--r--gnu/usr.bin/perl/cpan/JSON-PP/t/019_incr.t13
2 files changed, 11 insertions, 30 deletions
diff --git a/gnu/usr.bin/perl/cpan/JSON-PP/lib/JSON/PP.pm b/gnu/usr.bin/perl/cpan/JSON-PP/lib/JSON/PP.pm
index 2e617fc6227..e9e65b11c1c 100644
--- a/gnu/usr.bin/perl/cpan/JSON-PP/lib/JSON/PP.pm
+++ b/gnu/usr.bin/perl/cpan/JSON-PP/lib/JSON/PP.pm
@@ -11,7 +11,7 @@ use Carp ();
use B ();
#use Devel::Peek;
-$JSON::PP::VERSION = '2.27200';
+$JSON::PP::VERSION = '2.27202';
@JSON::PP::EXPORT = qw(encode_json decode_json from_json to_json);
@@ -1630,32 +1630,14 @@ JSON::PP - JSON::XS compatible pure-Perl module.
=head1 VERSION
- 2.27200
+ 2.27202
L<JSON::XS> 2.27 (~2.30) compatible.
=head1 NOTE
-JSON::PP was inculded in JSON distribution (CPAN module).
-It comes to be a perl core module in Perl 5.14.
-
- [STEPS]
-
- * release this module as JSON::PPdev.
-
- * release other PP::* modules as JSON::PP::Compat*.
-
- * JSON distribution will inculde yet another JSON::PP modules.
- They are JSNO::backportPP. So JSON.pm should work as it did at all!
-
- * remove JSON::PP and JSON::PP::* modules from JSON distribution
- and release it as developer version.
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- * release JSON distribution as stable version.
-
- * rename JSON::PPdev into JSON::PP and release on CPAN. <<<< HERE
+JSON::PP had been inculded in JSON distribution (CPAN module).
+It was a perl core module in Perl 5.14.
=head1 DESCRIPTION
@@ -2809,7 +2791,7 @@ Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
-Copyright 2007-2011 by Makamaka Hannyaharamitu
+Copyright 2007-2013 by Makamaka Hannyaharamitu
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
diff --git a/gnu/usr.bin/perl/cpan/JSON-PP/t/019_incr.t b/gnu/usr.bin/perl/cpan/JSON-PP/t/019_incr.t
index c5fab960020..dc84c551060 100644
--- a/gnu/usr.bin/perl/cpan/JSON-PP/t/019_incr.t
+++ b/gnu/usr.bin/perl/cpan/JSON-PP/t/019_incr.t
@@ -13,11 +13,13 @@ use JSON::PP;
if ( $] >= 5.006 ) {
-eval <<'TEST';
+eval <<'TEST' or die "Failed to eval test code for version $]: $@";
sub splitter {
my ($coder, $text) = @_;
+ $coder->canonical(1) if $] >= 5.017009;
+
for (0 .. length $text) {
my $a = substr $text, 0, $_;
my $b = substr $text, $_;
@@ -27,7 +29,7 @@ sub splitter {
my $data = $coder->incr_parse;
ok ($data);
- ok ($coder->encode ($data) eq $coder->encode ($coder->decode ($text)), "data");
+ is ($coder->encode ($data), $coder->encode ($coder->decode ($text)), "data");
ok ($coder->incr_text =~ /^\s*$/, "tailws");
}
}
@@ -75,16 +77,15 @@ splitter +JSON::PP->new->allow_nonref, ' "5" ';
ok ('[5]' eq $coder->encode (scalar $coder->incr_parse), "sparse3");
}
-
+1
TEST
-print $@;
}
else {
-eval <<'TEST';
+eval <<'TEST' or die "Failed to eval test code for version $]: $@";
my $incr_text;
@@ -148,8 +149,6 @@ splitter +JSON::PP->new->allow_nonref, ' "5" ';
TEST
-print $@;
-
} # for 5.005