forked from pool/perl-JSON-Parse
Accepting request 440797 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/440797 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
51e40dbc32
commit
678699ac27
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ca387550b86bcc746abf3654c99f0035fb4e696a022123e5e3d083aa5d761671
|
|
||||||
size 70069
|
|
3
JSON-Parse-0.47.tar.gz
Normal file
3
JSON-Parse-0.47.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c4d8fd3e6d609caa3dfcd2cbe8f38ddb2fc8f2de7cfe0890639e743ad11dfb6a
|
||||||
|
size 73611
|
@@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 18 06:39:49 UTC 2016 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.47
|
||||||
|
see /usr/share/doc/packages/perl-JSON-Parse/Changes
|
||||||
|
|
||||||
|
0.47 2016-11-16
|
||||||
|
|
||||||
|
* Bug fixes for Perl 12 and earlier regarding diagnostics_hash method
|
||||||
|
|
||||||
|
0.46 2016-11-16
|
||||||
|
|
||||||
|
* Remove experimental feature $json_diagnostics
|
||||||
|
* Add diagnostics_hash method as a replacement for $json_diagnostics
|
||||||
|
* Better warnings for parse_json_safe
|
||||||
|
* Add the examples directory files to the CPAN distribution
|
||||||
|
* Documentation rewrites
|
||||||
|
|
||||||
|
0.45 2016-11-15
|
||||||
|
|
||||||
|
* Remove non-functioning JSON::Whitespace module from CPAN distribution
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 14 06:40:09 UTC 2016 - coolo@suse.com
|
Mon Nov 14 06:40:09 UTC 2016 - coolo@suse.com
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-JSON-Parse
|
Name: perl-JSON-Parse
|
||||||
Version: 0.44
|
Version: 0.47
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name JSON-Parse
|
%define cpan_name JSON-Parse
|
||||||
Summary: Read JSON into a Perl variable
|
Summary: Read JSON into a Perl variable
|
||||||
@@ -32,29 +32,22 @@ BuildRequires: perl-macros
|
|||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JSON::Parse offers the function parse_json, which takes one argument, a
|
A module for parsing JSON. (JSON means "JavaScript Object Notation" and it
|
||||||
string containing JSON, and returns a Perl reference or scalar. The input
|
is specified in RFC 7159.)
|
||||||
to 'parse_json' must be a complete JSON structure.
|
|
||||||
|
|
||||||
JSON::Parse also offers two high-speed validation functions, valid_json,
|
JSON::Parse offers the function parse_json, which takes a string containing
|
||||||
which returns true or false, and assert_valid_json, which produces a
|
JSON, and returns an equivalent Perl structure. It also offers validation
|
||||||
descriptive fatal error if the JSON is invalid. These are much faster than
|
of JSON via valid_json, which returns true or false depending on whether
|
||||||
parse_json. See PERFORMANCE for a comparison.
|
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.
|
||||||
|
|
||||||
JSON::Parse also offers one convenience function to read JSON directly from
|
For special cases of parsing, there are also methods new and run, which
|
||||||
a file, json_file_to_perl, and a safer version of parse_json called
|
create a JSON parsing object and run it on text. See METHODS.
|
||||||
parse_json_safe which doesn't throw exceptions.
|
|
||||||
|
|
||||||
For special cases, such as JSON objects with non-unique names (key
|
JSON::Parse accepts only UTF-8 as input. See UTF-8 only and Handling of
|
||||||
collisions), or round-trips with JSON booleans, there are also new and run,
|
Unicode.
|
||||||
which create a JSON parsing object and run it on text.
|
|
||||||
|
|
||||||
JSON::Parse accepts only UTF-8 as input. If its input is marked as Unicode
|
|
||||||
characters, the strings in its output are also marked as Unicode
|
|
||||||
characters. If its input contains Unicode escapes of the form '"\u3000"',
|
|
||||||
its output is upgraded to Unicode character strings.
|
|
||||||
|
|
||||||
(JSON means "JavaScript Object Notation" and it is specified in RFC 7159.)
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
@@ -74,6 +67,6 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes examples README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user