From 476bda9387a55c92645766d4adea3d65426d1e799c66c2b521e50575cb4a20f7 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Mon, 4 Jan 2021 16:40:26 +0000 Subject: [PATCH] Accepting request 860279 from devel:languages:perl:autoupdate - updated to 0.59 see /usr/share/doc/packages/perl-JSON-Parse/Changes 0.59 2021-01-04 * "json_file_to_perl" renamed "read_json" * Documentation work -- Benchmarks section updated with latest versions, add Cpanel::JSON::XS -- Add Metacpan vote ratings to other CPAN modules section -- Sections reordered to put methods above parsing details 0.58 2021-01-01 * Protect against stack overflows by having maximum parsing depth -- set_max_depth, get_max_depth methods added * Documentation updated -- JSON RFC changed to 8259 -- Discussion of Unicode tests in JSON Test Suite OBS-URL: https://build.opensuse.org/request/show/860279 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=26 --- JSON-Parse-0.57.tar.gz | 3 --- JSON-Parse-0.59.tar.gz | 3 +++ perl-JSON-Parse.changes | 19 +++++++++++++++++++ perl-JSON-Parse.spec | 27 ++++++++++++--------------- 4 files changed, 34 insertions(+), 18 deletions(-) delete mode 100644 JSON-Parse-0.57.tar.gz create mode 100644 JSON-Parse-0.59.tar.gz diff --git a/JSON-Parse-0.57.tar.gz b/JSON-Parse-0.57.tar.gz deleted file mode 100644 index 1088785..0000000 --- a/JSON-Parse-0.57.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85a88e451380b00c497465c573be9ab8c05b2a3988671d82c4131900dfc50ae7 -size 79465 diff --git a/JSON-Parse-0.59.tar.gz b/JSON-Parse-0.59.tar.gz new file mode 100644 index 0000000..363739b --- /dev/null +++ b/JSON-Parse-0.59.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b7edeb0c877a5da36097d665f5dbb4809599406a68ee2a44f7b110fa226f4c8 +size 86936 diff --git a/perl-JSON-Parse.changes b/perl-JSON-Parse.changes index 9a9b8c5..005a8dd 100644 --- a/perl-JSON-Parse.changes +++ b/perl-JSON-Parse.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jan 4 03:08:36 UTC 2021 - Tina Müller + +- updated to 0.59 + see /usr/share/doc/packages/perl-JSON-Parse/Changes + + 0.59 2021-01-04 + * "json_file_to_perl" renamed "read_json" + * Documentation work + -- Benchmarks section updated with latest versions, add Cpanel::JSON::XS + -- Add Metacpan vote ratings to other CPAN modules section + -- Sections reordered to put methods above parsing details + 0.58 2021-01-01 + * Protect against stack overflows by having maximum parsing depth + -- set_max_depth, get_max_depth methods added + * Documentation updated + -- JSON RFC changed to 8259 + -- Discussion of Unicode tests in JSON Test Suite + ------------------------------------------------------------------- Fri Jul 10 09:33:19 UTC 2020 - Tina Müller diff --git a/perl-JSON-Parse.spec b/perl-JSON-Parse.spec index aac81e5..a091491 100644 --- a/perl-JSON-Parse.spec +++ b/perl-JSON-Parse.spec @@ -1,7 +1,7 @@ # # spec file for package perl-JSON-Parse # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,32 +16,30 @@ # -Name: perl-JSON-Parse -Version: 0.57 -Release: 0 %define cpan_name JSON-Parse -Summary: Read JSON into a Perl variable +Name: perl-JSON-Parse +Version: 0.59 +Release: 0 +Summary: Parse JSON License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %description A module for parsing JSON. (JSON means "JavaScript Object Notation" and it -is specified in RFC 7159.) +is specified in RFC 8259.) JSON::Parse offers the function parse_json, which takes a string containing JSON, and returns an equivalent Perl structure. It also offers validation of JSON via valid_json, which returns true or false depending on whether the JSON is correct or not, and assert_valid_json, which produces a -descriptive fatal error if the JSON is invalid. A function -json_file_to_perl reads JSON from a file, and there is a safer version of -parse_json called parse_json_safe which doesn't throw exceptions. +descriptive fatal error if the JSON is invalid. A function read_json reads +JSON from a file, and there is a safer version of parse_json called +parse_json_safe which doesn't throw exceptions. For special cases of parsing, there are also methods new and run, which create a JSON parsing object and run it on text. See METHODS. @@ -50,7 +48,7 @@ JSON::Parse accepts only UTF-8 as input. See UTF-8 only and Handling of Unicode. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 # MANUAL BEGIN for file in $(find . -type f); do @@ -63,7 +61,7 @@ done %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -make %{?_smp_mflags} +%make_build %check make test @@ -74,7 +72,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes examples README +%doc Changes CONTRIBUTING.md examples README see-also-info.json %changelog