Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-JSON-MaybeXS for
openSUSE:Factory checked in at 2023-05-04 17:10:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS (Old)
and /work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-JSON-MaybeXS"
Thu May 4 17:10:39 2023 rev:10 rq:1084442 version:1.004005
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-JSON-MaybeXS/perl-JSON-MaybeXS.changes
2022-10-06 07:41:35.720605990 +0200
+++
/work/SRC/openSUSE:Factory/.perl-JSON-MaybeXS.new.1533/perl-JSON-MaybeXS.changes
2023-05-04 17:10:59.524511639 +0200
@@ -1,0 +2,9 @@
+Mon May 1 03:08:44 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 1.004005
+ see /usr/share/doc/packages/perl-JSON-MaybeXS/Changes
+
+ 1.004005 - 2023-04-30
+ - to_json and from_json are now documented (Dan Book, PR #2)
+
+-------------------------------------------------------------------
Old:
----
JSON-MaybeXS-1.004004.tar.gz
New:
----
JSON-MaybeXS-1.004005.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-JSON-MaybeXS.spec ++++++
--- /var/tmp/diff_new_pack.PT6N2j/_old 2023-05-04 17:10:59.980514308 +0200
+++ /var/tmp/diff_new_pack.PT6N2j/_new 2023-05-04 17:10:59.984514332 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-JSON-MaybeXS
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%define cpan_name JSON-MaybeXS
Name: perl-JSON-MaybeXS
-Version: 1.004004
+Version: 1.004005
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
++++++ JSON-MaybeXS-1.004004.tar.gz -> JSON-MaybeXS-1.004005.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/Changes
new/JSON-MaybeXS-1.004005/Changes
--- old/JSON-MaybeXS-1.004004/Changes 2022-09-17 20:17:18.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/Changes 2023-04-30 10:56:45.000000000 +0200
@@ -1,5 +1,8 @@
Revision history for JSON-MaybeXS
+1.004005 - 2023-04-30
+ - to_json and from_json are now documented (Dan Book, PR #2)
+
1.004004 - 2022-09-17
- slight speed optimization for is_bool()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/LICENSE
new/JSON-MaybeXS-1.004005/LICENSE
--- old/JSON-MaybeXS-1.004004/LICENSE 2022-09-17 20:17:56.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/LICENSE 2023-04-30 10:58:17.000000000 +0200
@@ -7,7 +7,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2022 by mst - Matt S. Trout (cpan:MSTROUT)
<[email protected]>.
+This software is Copyright (c) 2023 by mst - Matt S. Trout (cpan:MSTROUT)
<[email protected]>.
This is free software, licensed under:
@@ -267,7 +267,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2022 by mst - Matt S. Trout (cpan:MSTROUT)
<[email protected]>.
+This software is Copyright (c) 2023 by mst - Matt S. Trout (cpan:MSTROUT)
<[email protected]>.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/META.json
new/JSON-MaybeXS-1.004005/META.json
--- old/JSON-MaybeXS-1.004004/META.json 2022-09-17 20:17:55.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/META.json 2023-04-30 10:58:17.000000000 +0200
@@ -4,7 +4,7 @@
"mst - Matt S. Trout (cpan:MSTROUT) <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter
version 2.150010",
+ "generated_by" : "ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter
version 2.150010",
"keywords" : [
"json",
"serializer",
@@ -65,7 +65,7 @@
"web" : "https://github.com/p5sagit/JSON-MaybeXS"
}
},
- "version" : "1.004004",
+ "version" : "1.004005",
"x_contributors" : [
"Clinton Gormley <[email protected]>",
"Graham Knop <[email protected]>",
@@ -74,5 +74,5 @@
"Kieren Diment <[email protected]>",
"Matt S Trout <[email protected]>"
],
- "x_serialization_backend" : "JSON::MaybeXS version 1.004003"
+ "x_serialization_backend" : "JSON::MaybeXS version 1.004004"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/META.yml
new/JSON-MaybeXS-1.004005/META.yml
--- old/JSON-MaybeXS-1.004004/META.yml 2022-09-17 20:17:55.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/META.yml 2023-04-30 10:58:17.000000000 +0200
@@ -8,7 +8,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version
2.150010'
keywords:
- json
- serializer
@@ -34,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.004004'
+version: '1.004005'
x_contributors:
- 'Clinton Gormley <[email protected]>'
- 'Graham Knop <[email protected]>'
@@ -42,4 +42,4 @@
- 'Karen Etheridge <[email protected]>'
- 'Kieren Diment <[email protected]>'
- 'Matt S Trout <[email protected]>'
-x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/README
new/JSON-MaybeXS-1.004005/README
--- old/JSON-MaybeXS-1.004004/README 2022-09-17 20:17:56.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/README 2023-04-30 10:58:17.000000000 +0200
@@ -69,8 +69,29 @@
my $data_structure = decode_json($json_text);
- to_json, from_json
- See JSON for details. These are included to support legacy code only.
+ to_json
+ This function is equivalent to calling
+ "JSON()->new->encode($data_structure)". It takes a perl data structure
+ which is serialised to JSON text without encoding it to UTF-8. You
+ should only use this function if you expect another layer to handle the
+ UTF-8 encoding of the resulting JSON text.
+
+ my $json_text = to_json($data_structure);
+
+ Additional arguments can be passed and will be handled as in "to_json"
+ in JSON, this is included to support legacy code only.
+
+ from_json
+ This function is equivalent to calling
+ "JSON()->new->decode($json_text)". It takes a string of unencoded JSON
+ text to deserialise to a perl data structure. You should only use this
+ function if another layer is already handling the UTF-8 decoding of the
+ input JSON text.
+
+ my $data_structure = from_json($json_text);
+
+ Additional arguments can be passed and will be handled as in "from_json"
+ in JSON, this is included to support legacy code only.
JSON
The "JSON" constant returns the selected implementation module's name
@@ -160,7 +181,7 @@
my $json = decode_json($data);
CAVEATS
- The "new()" method in this module is technically a factory, not a
+ The new() method in this module is technically a factory, not a
constructor, because the objects it returns will *NOT* be blessed into
the "JSON::MaybeXS" class.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/lib/JSON/MaybeXS.pm
new/JSON-MaybeXS-1.004005/lib/JSON/MaybeXS.pm
--- old/JSON-MaybeXS-1.004004/lib/JSON/MaybeXS.pm 2022-09-17
20:16:54.000000000 +0200
+++ new/JSON-MaybeXS-1.004005/lib/JSON/MaybeXS.pm 2023-04-30
10:56:27.000000000 +0200
@@ -4,7 +4,7 @@
use warnings FATAL => 'all';
use base qw(Exporter);
-our $VERSION = '1.004004';
+our $VERSION = '1.004005';
$VERSION =~ tr/_//d;
sub _choose_json_module {
@@ -175,10 +175,29 @@
my $data_structure = decode_json($json_text);
-=head2 to_json, from_json
+=head2 to_json
-See L<JSON> for details. These are included to support legacy code
-B<only>.
+This function is equivalent to calling C<<
JSON()->new->encode($data_structure) >>.
+It takes a perl data structure which is serialised to JSON text without
encoding
+it to UTF-8. You should only use this function if you expect another layer to
+handle the UTF-8 encoding of the resulting JSON text.
+
+ my $json_text = to_json($data_structure);
+
+Additional arguments can be passed and will be handled as in L<JSON/to_json>,
+this is included to support legacy code B<only>.
+
+=head2 from_json
+
+This function is equivalent to calling C<< JSON()->new->decode($json_text) >>.
It
+takes a string of unencoded JSON text to deserialise to a perl data structure.
You
+should only use this function if another layer is already handling the UTF-8
+decoding of the input JSON text.
+
+ my $data_structure = from_json($json_text);
+
+Additional arguments can be passed and will be handled as in L<JSON/from_json>,
+this is included to support legacy code B<only>.
=head2 JSON
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-MaybeXS-1.004004/t/lib/is_bool.pm
new/JSON-MaybeXS-1.004005/t/lib/is_bool.pm
--- old/JSON-MaybeXS-1.004004/t/lib/is_bool.pm 2018-11-29 19:21:51.000000000
+0100
+++ new/JSON-MaybeXS-1.004005/t/lib/is_bool.pm 2023-04-30 10:55:07.000000000
+0200
@@ -45,4 +45,21 @@
JSON() . ': false method encodes as correct boolean',
);
+TODO:
+if ($] ge '5.036') {
+ local $TODO = 'support for builtin::is_bool not yet done';
+ ok(JSON::MaybeXS::is_bool(!!0), 'is_bool recognizes new stablebool false');
+ ok(JSON::MaybeXS::is_bool(!!1), 'is_bool recognizes new stablebool true');
+}
+else {
+ diag 'tests for 5.36+ are skipped';
+}
+
+ok(!JSON::MaybeXS::is_bool(0), 'numeric 0 is not a bool');
+ok(!JSON::MaybeXS::is_bool(1), 'numeric 1 is not a bool');
+ok(!JSON::MaybeXS::is_bool('0'), 'stringy 0 is not a bool');
+ok(!JSON::MaybeXS::is_bool('1'), 'stringy 1 is not a bool');
+ok(!JSON::MaybeXS::is_bool(''), 'empty string is not a bool');
+ok(!JSON::MaybeXS::is_bool(undef), 'undef is not a bool');
+
1;