Hello community, here is the log from the commit of package perl-JSON-MaybeXS for openSUSE:Factory checked in at 2018-04-25 10:00:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS (Old) and /work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-JSON-MaybeXS" Wed Apr 25 10:00:30 2018 rev:5 rq:599321 version:1.004000 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS/perl-JSON-MaybeXS.changes 2018-02-07 18:43:22.814657154 +0100 +++ /work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new/perl-JSON-MaybeXS.changes 2018-04-25 10:00:43.464223411 +0200 @@ -1,0 +2,10 @@ +Fri Apr 20 05:29:06 UTC 2018 - co...@suse.com + +- updated to 1.004000 + see /usr/share/doc/packages/perl-JSON-MaybeXS/Changes + + 1.004000 - 2018-04-19 + - added true and false subs so they can be used via JSON::MaybeXS rather than + only JSON() exported sub. + +------------------------------------------------------------------- Old: ---- JSON-MaybeXS-1.003010.tar.gz New: ---- JSON-MaybeXS-1.004000.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-JSON-MaybeXS.spec ++++++ --- /var/tmp/diff_new_pack.GoONSp/_old 2018-04-25 10:00:45.844136095 +0200 +++ /var/tmp/diff_new_pack.GoONSp/_new 2018-04-25 10:00:45.848135948 +0200 @@ -17,11 +17,11 @@ Name: perl-JSON-MaybeXS -Version: 1.003010 +Version: 1.004000 Release: 0 %define cpan_name JSON-MaybeXS Summary: Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP> -License: Artistic-1.0 or GPL-1.0+ +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/JSON-MaybeXS/ Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz ++++++ JSON-MaybeXS-1.003010.tar.gz -> JSON-MaybeXS-1.004000.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/Changes new/JSON-MaybeXS-1.004000/Changes --- old/JSON-MaybeXS-1.003010/Changes 2018-01-28 02:42:13.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/Changes 2018-04-19 18:05:21.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for JSON-MaybeXS +1.004000 - 2018-04-19 + - added true and false subs so they can be used via JSON::MaybeXS rather than + only JSON() exported sub. + 1.003010 - 2018-01-28 - use bundled ExtUtils::HasCompiler rather than ExtUtils::CBuilder to detect compiler availability. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/META.json new/JSON-MaybeXS-1.004000/META.json --- old/JSON-MaybeXS-1.003010/META.json 2018-01-28 02:42:22.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/META.json 2018-04-19 18:05:41.000000000 +0200 @@ -64,7 +64,7 @@ "web" : "https://github.com/p5sagit/JSON-MaybeXS" } }, - "version" : "1.003010", + "version" : "1.004000", "x_contributors" : [ "Clinton Gormley <deve...@traveljury.com>", "Graham Knop <ha...@haarg.org>", @@ -73,5 +73,5 @@ "Kieren Diment <dim...@gmail.com>", "Matt S Trout <m...@shadowcat.co.uk>" ], - "x_serialization_backend" : "JSON::PP version 2.97000" + "x_serialization_backend" : "JSON::PP version 2.97001" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/META.yml new/JSON-MaybeXS-1.004000/META.yml --- old/JSON-MaybeXS-1.003010/META.yml 2018-01-28 02:42:22.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/META.yml 2018-04-19 18:05:41.000000000 +0200 @@ -33,7 +33,7 @@ bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=JSON-MaybeXS license: http://dev.perl.org/licenses/ repository: https://github.com/p5sagit/JSON-MaybeXS.git -version: '1.003010' +version: '1.004000' x_contributors: - 'Clinton Gormley <deve...@traveljury.com>' - 'Graham Knop <ha...@haarg.org>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/README new/JSON-MaybeXS-1.004000/README --- old/JSON-MaybeXS-1.003010/README 2018-01-28 02:42:22.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/README 2018-04-19 18:05:42.000000000 +0200 @@ -122,6 +122,14 @@ my $true = JSON()->true; my $false = JSON()->false; + The booleans are also available as subs or methods on JSON::MaybeXS. + + use JSON::MaybeXS (); + my $true = JSON::MaybeXS::true; + my $true = JSON::MaybeXS->true; + my $false = JSON::MaybeXS::false; + my $false = JSON::MaybeXS->false; + CONVERTING FROM JSON::Any JSON::Any used to be the favoured compatibility layer above the various JSON backends, but over time has grown a lot of extra code to deal with diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/lib/JSON/MaybeXS.pm new/JSON-MaybeXS-1.004000/lib/JSON/MaybeXS.pm --- old/JSON-MaybeXS-1.003010/lib/JSON/MaybeXS.pm 2018-01-28 02:41:54.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/lib/JSON/MaybeXS.pm 2018-04-19 18:05:14.000000000 +0200 @@ -4,7 +4,7 @@ use warnings FATAL => 'all'; use base qw(Exporter); -our $VERSION = '1.003010'; +our $VERSION = '1.004000'; $VERSION = eval $VERSION; sub _choose_json_module { @@ -29,6 +29,9 @@ BEGIN { our $JSON_Class = _choose_json_module(); $JSON_Class->import(qw(encode_json decode_json)); + no strict 'refs'; + *$_ = $JSON_Class->can($_) + for qw(true false); } our @EXPORT = qw(encode_json decode_json JSON); @@ -229,6 +232,14 @@ my $true = JSON()->true; my $false = JSON()->false; +The booleans are also available as subs or methods on JSON::MaybeXS. + + use JSON::MaybeXS (); + my $true = JSON::MaybeXS::true; + my $true = JSON::MaybeXS->true; + my $false = JSON::MaybeXS::false; + my $false = JSON::MaybeXS->false; + =head1 CONVERTING FROM JSON::Any L<JSON::Any> used to be the favoured compatibility layer above the various diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.003010/t/lib/is_bool.pm new/JSON-MaybeXS-1.004000/t/lib/is_bool.pm --- old/JSON-MaybeXS-1.003010/t/lib/is_bool.pm 2015-11-24 23:27:43.000000000 +0100 +++ new/JSON-MaybeXS-1.004000/t/lib/is_bool.pm 2018-04-19 12:19:39.000000000 +0200 @@ -21,4 +21,28 @@ JSON() . ': int does not decode to a bool', ); +is( + JSON::MaybeXS::encode_json([JSON::MaybeXS::true]), + '[true]', + JSON() . ': true sub encodes as correct boolean', +); + +is( + JSON::MaybeXS::encode_json([JSON::MaybeXS->true]), + '[true]', + JSON() . ': true method encodes as correct boolean', +); + +is( + JSON::MaybeXS::encode_json([JSON::MaybeXS::false]), + '[false]', + JSON() . ': false sub encodes as correct boolean', +); + +is( + JSON::MaybeXS::encode_json([JSON::MaybeXS->false]), + '[false]', + JSON() . ': false method encodes as correct boolean', +); + 1;