Hello community, here is the log from the commit of package perl-JSON-MaybeXS for openSUSE:Factory checked in at 2020-05-20 18:45:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS (Old) and /work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-JSON-MaybeXS" Wed May 20 18:45:35 2020 rev:7 rq:807421 version:1.004002 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS/perl-JSON-MaybeXS.changes 2020-05-04 18:40:53.285096899 +0200 +++ /work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new.2738/perl-JSON-MaybeXS.changes 2020-05-20 18:46:14.685387789 +0200 @@ -1,0 +2,11 @@ +Mon May 18 03:12:46 UTC 2020 - Tina Müller <timueller+p...@suse.de> + +updated to 1.004002 + see /usr/share/doc/packages/perl-JSON-MaybeXS/Changes + + 1.004002 - 2020-05-17 + - fix test that fails when JSON::XS is installed, but below version 3.0 + (RT#132578) + + +------------------------------------------------------------------- Old: ---- JSON-MaybeXS-1.004001.tar.gz New: ---- JSON-MaybeXS-1.004002.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-JSON-MaybeXS.spec ++++++ --- /var/tmp/diff_new_pack.66Pziu/_old 2020-05-20 18:46:15.737390152 +0200 +++ /var/tmp/diff_new_pack.66Pziu/_new 2020-05-20 18:46:15.741390162 +0200 @@ -17,7 +17,7 @@ Name: perl-JSON-MaybeXS -Version: 1.004001 +Version: 1.004002 Release: 0 %define cpan_name JSON-MaybeXS Summary: Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP> @@ -33,16 +33,17 @@ BuildRequires: perl(Cpanel::JSON::XS) >= 2.3310 BuildRequires: perl(JSON::PP) >= 2.27300 BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Needs) >= 0.002006 Requires: perl(Cpanel::JSON::XS) >= 2.3310 Requires: perl(JSON::PP) >= 2.27300 Recommends: perl(Cpanel::JSON::XS) >= 2.3310 %{perl_requires} %description -This module first checks to see if either Cpanel::JSON::XS or JSON::XS is -already loaded, in which case it uses that module. Otherwise it tries to -load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and either -uses the first module it finds or throws an error. +This module first checks to see if either Cpanel::JSON::XS or JSON::XS (at +at least version 3.0) is already loaded, in which case it uses that module. +Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP +in order, and either uses the first module it finds or throws an error. It then exports the 'encode_json' and 'decode_json' functions from the loaded module, along with a 'JSON' constant that returns the class name for ++++++ JSON-MaybeXS-1.004001.tar.gz -> JSON-MaybeXS-1.004002.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/Changes new/JSON-MaybeXS-1.004002/Changes --- old/JSON-MaybeXS-1.004001/Changes 2020-05-01 19:01:16.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/Changes 2020-05-18 01:35:23.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for JSON-MaybeXS +1.004002 - 2020-05-17 + - fix test that fails when JSON::XS is installed, but below version 3.0 + (RT#132578) + 1.004001 - 2020-05-01 - document when is_bool became available - now favouring Cpanel::JSON::XS over JSON::XS in more situations (the former diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/META.json new/JSON-MaybeXS-1.004002/META.json --- old/JSON-MaybeXS-1.004001/META.json 2020-05-01 19:01:40.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/META.json 2020-05-18 01:35:35.000000000 +0200 @@ -45,7 +45,8 @@ }, "test" : { "requires" : { - "Test::More" : "0.88" + "Test::More" : "0.88", + "Test::Needs" : "0.002006" } } }, @@ -64,7 +65,7 @@ "web" : "https://github.com/p5sagit/JSON-MaybeXS" } }, - "version" : "1.004001", + "version" : "1.004002", "x_contributors" : [ "Clinton Gormley <deve...@traveljury.com>", "Graham Knop <ha...@haarg.org>", @@ -73,5 +74,5 @@ "Kieren Diment <dim...@gmail.com>", "Matt S Trout <m...@shadowcat.co.uk>" ], - "x_serialization_backend" : "JSON::MaybeXS version 1.004" + "x_serialization_backend" : "JSON::MaybeXS version 1.004001" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/META.yml new/JSON-MaybeXS-1.004002/META.yml --- old/JSON-MaybeXS-1.004001/META.yml 2020-05-01 19:01:40.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/META.yml 2020-05-18 01:35:34.000000000 +0200 @@ -4,6 +4,7 @@ - 'mst - Matt S. Trout (cpan:MSTROUT) <m...@shadowcat.co.uk>' build_requires: Test::More: '0.88' + Test::Needs: '0.002006' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 @@ -33,7 +34,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.004001' +version: '1.004002' 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.004001/Makefile.PL new/JSON-MaybeXS-1.004002/Makefile.PL --- old/JSON-MaybeXS-1.004001/Makefile.PL 2020-05-01 17:53:50.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/Makefile.PL 2020-05-18 01:28:23.000000000 +0200 @@ -29,6 +29,7 @@ test => { requires => { 'Test::More' => '0.88', + 'Test::Needs' => '0.002006', }, }, }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/README new/JSON-MaybeXS-1.004002/README --- old/JSON-MaybeXS-1.004001/README 2020-05-01 19:01:41.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/README 2020-05-18 01:35:35.000000000 +0200 @@ -15,9 +15,10 @@ DESCRIPTION This module first checks to see if either Cpanel::JSON::XS or JSON::XS - is already loaded, in which case it uses that module. Otherwise it tries - to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and - either uses the first module it finds or throws an error. + (at at least version 3.0) is already loaded, in which case it uses that + module. Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then + JSON::PP in order, and either uses the first module it finds or throws + an error. It then exports the "encode_json" and "decode_json" functions from the loaded module, along with a "JSON" constant that returns the class name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/lib/JSON/MaybeXS.pm new/JSON-MaybeXS-1.004002/lib/JSON/MaybeXS.pm --- old/JSON-MaybeXS-1.004001/lib/JSON/MaybeXS.pm 2020-05-01 18:58:01.000000000 +0200 +++ new/JSON-MaybeXS-1.004002/lib/JSON/MaybeXS.pm 2020-05-18 01:35:06.000000000 +0200 @@ -4,7 +4,7 @@ use warnings FATAL => 'all'; use base qw(Exporter); -our $VERSION = '1.004001'; +our $VERSION = '1.004002'; $VERSION =~ tr/_//d; sub _choose_json_module { @@ -121,7 +121,8 @@ =head1 DESCRIPTION This module first checks to see if either L<Cpanel::JSON::XS> or -L<JSON::XS> is already loaded, in which case it uses that module. Otherwise +L<JSON::XS> (at at least version 3.0) +is already loaded, in which case it uses that module. Otherwise it tries to load L<Cpanel::JSON::XS>, then L<JSON::XS>, then L<JSON::PP> in order, and either uses the first module it finds or throws an error. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/t/cpanel.t new/JSON-MaybeXS-1.004002/t/cpanel.t --- old/JSON-MaybeXS-1.004001/t/cpanel.t 2018-11-29 19:23:36.000000000 +0100 +++ new/JSON-MaybeXS-1.004002/t/cpanel.t 2020-05-18 01:26:32.000000000 +0200 @@ -3,10 +3,7 @@ use Test::More 0.88; use JSON::MaybeXS; -unless ( eval { require Cpanel::JSON::XS; 1 } ) { - plan skip_all => 'No Cpanel::JSON::XS'; -} - +use Test::Needs 'Cpanel::JSON::XS'; diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION; is( JSON, 'Cpanel::JSON::XS', 'Correct JSON class' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/t/pp.t new/JSON-MaybeXS-1.004002/t/pp.t --- old/JSON-MaybeXS-1.004001/t/pp.t 2018-11-29 19:23:38.000000000 +0100 +++ new/JSON-MaybeXS-1.004002/t/pp.t 2020-05-18 01:26:32.000000000 +0200 @@ -7,7 +7,7 @@ sub { return unless $_[1] eq $m; die "Can't locate $m in \@INC (hidden).\n" }; } qw{Cpanel/JSON/XS.pm JSON/XS.pm}; -use if !eval { require JSON::PP; 1; }, 'Test::More', skip_all => 'No JSON::PP'; +use Test::Needs 'JSON::PP'; use Test::More 0.88; use JSON::MaybeXS; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/t/preload_cpanel.t new/JSON-MaybeXS-1.004002/t/preload_cpanel.t --- old/JSON-MaybeXS-1.004001/t/preload_cpanel.t 2018-11-29 19:24:33.000000000 +0100 +++ new/JSON-MaybeXS-1.004002/t/preload_cpanel.t 2020-05-18 01:26:32.000000000 +0200 @@ -1,6 +1,7 @@ use strict; use warnings; -use if !eval { require Cpanel::JSON::XS; 1; }, 'Test::More', skip_all => 'No Cpanel::JSON::XS'; + +use Test::Needs 'Cpanel::JSON::XS'; # load first, before JSON::MaybeXS use Test::More 0.88; use JSON::MaybeXS; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/t/preload_xs.t new/JSON-MaybeXS-1.004002/t/preload_xs.t --- old/JSON-MaybeXS-1.004001/t/preload_xs.t 2018-11-29 19:23:40.000000000 +0100 +++ new/JSON-MaybeXS-1.004002/t/preload_xs.t 2020-05-18 01:26:44.000000000 +0200 @@ -1,7 +1,7 @@ use strict; use warnings; -use if !eval { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS'; +use Test::Needs { 'JSON::XS' => '3.0' }; # load first, before JSON::MaybeXS use Test::More 0.88; use JSON::MaybeXS; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-MaybeXS-1.004001/t/xs.t new/JSON-MaybeXS-1.004002/t/xs.t --- old/JSON-MaybeXS-1.004001/t/xs.t 2018-11-29 19:23:41.000000000 +0100 +++ new/JSON-MaybeXS-1.004002/t/xs.t 2020-05-18 01:26:32.000000000 +0200 @@ -10,10 +10,7 @@ use Test::More 0.88; use JSON::MaybeXS; -unless ( eval { require JSON::XS; 1 } ) { - plan skip_all => 'No JSON::XS'; -} - +use Test::Needs 'JSON::XS'; diag 'Using JSON::XS ', JSON::XS->VERSION; is( JSON, 'JSON::XS', 'Correct JSON class' );