diff -Nru libhttp-entity-parser-perl-0.21/Changes libhttp-entity-parser-perl-0.22/Changes --- libhttp-entity-parser-perl-0.21/Changes 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/Changes 2019-11-16 14:21:49.000000000 +0000 @@ -1,5 +1,9 @@ Revision history for Perl extension HTTP-Entity-Parser +0.22 2019-11-16T14:21:39Z + + - Do not stringify nested hash references in JSON #11 + 0.21 2018-03-03T04:51:32Z - Relax minimum perl version to 5.8.1 @@ -72,4 +76,3 @@ 0.01 2014-02-05T02:00:47Z - original version - diff -Nru libhttp-entity-parser-perl-0.21/cpanfile libhttp-entity-parser-perl-0.22/cpanfile --- libhttp-entity-parser-perl-0.21/cpanfile 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/cpanfile 2019-11-16 14:21:49.000000000 +0000 @@ -15,5 +15,3 @@ requires 'Cwd'; requires 'HTTP::Message' => 6; }; - - diff -Nru libhttp-entity-parser-perl-0.21/debian/changelog libhttp-entity-parser-perl-0.22/debian/changelog --- libhttp-entity-parser-perl-0.21/debian/changelog 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/changelog 2019-11-24 16:45:25.000000000 +0000 @@ -1,3 +1,16 @@ +libhttp-entity-parser-perl (0.22-1) unstable; urgency=medium + + * Import upstream version 0.22. + * Update years of packaging copyright. + * Annotate test-only build dependencies with . + * Declare compliance with Debian Policy 4.4.1. + * Bump debhelper-compat to 12. + * debian/watch: use uscan version 4. + * Set upstream metadata fields: Bug-Submit. + * Remove obsolete fields Contact, Name from debian/upstream/metadata. + + -- gregor herrmann Sun, 24 Nov 2019 17:45:25 +0100 + libhttp-entity-parser-perl (0.21-1) unstable; urgency=medium [ Damyan Ivanov ] diff -Nru libhttp-entity-parser-perl-0.21/debian/compat libhttp-entity-parser-perl-0.22/debian/compat --- libhttp-entity-parser-perl-0.21/debian/compat 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -10 diff -Nru libhttp-entity-parser-perl-0.21/debian/control libhttp-entity-parser-perl-0.22/debian/control --- libhttp-entity-parser-perl-0.21/debian/control 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/control 2019-11-24 16:45:25.000000000 +0000 @@ -4,16 +4,16 @@ Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional -Build-Depends: debhelper (>= 10), +Build-Depends: debhelper-compat (= 12), libmodule-build-tiny-perl, perl -Build-Depends-Indep: libhash-multivalue-perl, - libhttp-message-perl, - libhttp-multipartparser-perl, - libjson-maybexs-perl (>= 1.003007), - libstream-buffered-perl, - libwww-form-urlencoded-perl -Standards-Version: 4.1.4 +Build-Depends-Indep: libhash-multivalue-perl , + libhttp-message-perl , + libhttp-multipartparser-perl , + libjson-maybexs-perl (>= 1.003007) , + libstream-buffered-perl , + libwww-form-urlencoded-perl +Standards-Version: 4.4.1 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libhttp-entity-parser-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libhttp-entity-parser-perl.git Homepage: https://metacpan.org/release/HTTP-Entity-Parser diff -Nru libhttp-entity-parser-perl-0.21/debian/copyright libhttp-entity-parser-perl-0.22/debian/copyright --- libhttp-entity-parser-perl-0.21/debian/copyright 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/copyright 2019-11-24 16:45:25.000000000 +0000 @@ -8,7 +8,7 @@ License: Artistic or GPL-1+ Files: debian/* -Copyright: 2016-2018, gregor herrmann +Copyright: 2016-2019, gregor herrmann License: Artistic or GPL-1+ License: Artistic diff -Nru libhttp-entity-parser-perl-0.21/debian/upstream/metadata libhttp-entity-parser-perl-0.22/debian/upstream/metadata --- libhttp-entity-parser-perl-0.21/debian/upstream/metadata 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/upstream/metadata 2019-11-24 16:45:25.000000000 +0000 @@ -1,7 +1,5 @@ ---- Archive: CPAN Bug-Database: https://github.com/kazeburo/HTTP-Entity-Parser/issues -Contact: Masahiro Nagano -Name: HTTP-Entity-Parser Repository: https://github.com/kazeburo/HTTP-Entity-Parser.git Repository-Browse: https://github.com/kazeburo/HTTP-Entity-Parser +Bug-Submit: https://github.com/kazeburo/HTTP-Entity-Parser/issues/new diff -Nru libhttp-entity-parser-perl-0.21/debian/watch libhttp-entity-parser-perl-0.22/debian/watch --- libhttp-entity-parser-perl-0.21/debian/watch 2018-04-16 18:57:28.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/debian/watch 2019-11-24 16:45:25.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 -https://metacpan.org/release/HTTP-Entity-Parser .*/HTTP-Entity-Parser-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +version=4 +https://metacpan.org/release/HTTP-Entity-Parser .*/HTTP-Entity-Parser-v?@ANY_VERSION@@ARCHIVE_EXT@$ diff -Nru libhttp-entity-parser-perl-0.21/lib/HTTP/Entity/Parser/JSON.pm libhttp-entity-parser-perl-0.22/lib/HTTP/Entity/Parser/JSON.pm --- libhttp-entity-parser-perl-0.21/lib/HTTP/Entity/Parser/JSON.pm 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/lib/HTTP/Entity/Parser/JSON.pm 2019-11-16 14:21:49.000000000 +0000 @@ -27,8 +27,10 @@ for (@$v) { push @params, encode_utf8($k), encode_utf8($_); } + } elsif (ref $v) { + push @params, encode_utf8($k), $v; } else { - push @params, encode_utf8($k), encode_utf8($v); + push @params, encode_utf8($k), encode_utf8($v); } } } @@ -48,7 +50,7 @@ =head1 SYNOPSIS use HTTP::Entity::Parser; - + my $parser = HTTP::Entity::Parser->new; $parser->register('application/json','HTTP::Entity::Parser::JSON'); diff -Nru libhttp-entity-parser-perl-0.21/lib/HTTP/Entity/Parser.pm libhttp-entity-parser-perl-0.22/lib/HTTP/Entity/Parser.pm --- libhttp-entity-parser-perl-0.21/lib/HTTP/Entity/Parser.pm 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/lib/HTTP/Entity/Parser.pm 2019-11-16 14:21:49.000000000 +0000 @@ -6,7 +6,7 @@ use Stream::Buffered; use Module::Load; -our $VERSION = "0.21"; +our $VERSION = "0.22"; our $BUFFER_LENGTH = 65536; diff -Nru libhttp-entity-parser-perl-0.21/META.json libhttp-entity-parser-perl-0.22/META.json --- libhttp-entity-parser-perl-0.21/META.json 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/META.json 2019-11-16 14:21:49.000000000 +0000 @@ -4,7 +4,7 @@ "Masahiro Nagano " ], "dynamic_config" : 0, - "generated_by" : "Minilla/v3.0.13", + "generated_by" : "Minilla/v3.0.16", "license" : [ "perl_5" ], @@ -68,7 +68,7 @@ "provides" : { "HTTP::Entity::Parser" : { "file" : "lib/HTTP/Entity/Parser.pm", - "version" : "0.21" + "version" : "0.22" }, "HTTP::Entity::Parser::JSON" : { "file" : "lib/HTTP/Entity/Parser/JSON.pm" @@ -94,12 +94,13 @@ "web" : "https://github.com/kazeburo/HTTP-Entity-Parser" } }, - "version" : "0.21", + "version" : "0.22", "x_contributors" : [ + "José Joaquín Atria ", "Karen Etheridge ", "Shoichi Kaji ", "Todd Rinaldo ", "moznion " ], - "x_serialization_backend" : "JSON::PP version 2.27300_01" + "x_serialization_backend" : "JSON::PP version 2.27400_02" } diff -Nru libhttp-entity-parser-perl-0.21/META.yml libhttp-entity-parser-perl-0.22/META.yml --- libhttp-entity-parser-perl-0.21/META.yml 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/META.yml 2019-11-16 14:21:49.000000000 +0000 @@ -10,7 +10,7 @@ configure_requires: Module::Build::Tiny: '0.035' dynamic_config: 0 -generated_by: 'Minilla/v3.0.13, CPAN::Meta::Converter version 2.150005' +generated_by: 'Minilla/v3.0.16, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -29,7 +29,7 @@ provides: HTTP::Entity::Parser: file: lib/HTTP/Entity/Parser.pm - version: '0.21' + version: '0.22' HTTP::Entity::Parser::JSON: file: lib/HTTP/Entity/Parser/JSON.pm HTTP::Entity::Parser::MultiPart: @@ -52,8 +52,9 @@ bugtracker: https://github.com/kazeburo/HTTP-Entity-Parser/issues homepage: https://github.com/kazeburo/HTTP-Entity-Parser repository: git://github.com/kazeburo/HTTP-Entity-Parser.git -version: '0.21' +version: '0.22' x_contributors: + - 'José Joaquín Atria ' - 'Karen Etheridge ' - 'Shoichi Kaji ' - 'Todd Rinaldo ' diff -Nru libhttp-entity-parser-perl-0.21/t/01_content_type/json.t libhttp-entity-parser-perl-0.22/t/01_content_type/json.t --- libhttp-entity-parser-perl-0.21/t/01_content_type/json.t 2018-03-03 04:51:33.000000000 +0000 +++ libhttp-entity-parser-perl-0.22/t/01_content_type/json.t 2019-11-16 14:21:49.000000000 +0000 @@ -8,6 +8,7 @@ my $parser = HTTP::Entity::Parser::JSON->new(); $parser->add('{'); $parser->add('"hoge":["fuga","hige"],'); +$parser->add('"moji":{"kanji":{"ji":"\u5b57"}},'); $parser->add('"\u306b\u307b\u3093\u3054":"\u65e5\u672c\u8a9e",'); $parser->add('"moge":"muga"'); $parser->add('}'); @@ -17,6 +18,7 @@ +{ 'hoge' => [ 'fuga', 'hige' ], 'moge' => ['muga'], + 'moji' => [ { 'kanji' => { 'ji' => '字' } } ], Encode::encode_utf8('にほんご') => [Encode::encode_utf8('日本語')], }); is_deeply $uploads, [];