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
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.44
|
||||
Version: 0.47
|
||||
Release: 0
|
||||
%define cpan_name JSON-Parse
|
||||
Summary: Read JSON into a Perl variable
|
||||
@@ -32,29 +32,22 @@ BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
JSON::Parse offers the function parse_json, which takes one argument, a
|
||||
string containing JSON, and returns a Perl reference or scalar. The input
|
||||
to 'parse_json' must be a complete JSON structure.
|
||||
A module for parsing JSON. (JSON means "JavaScript Object Notation" and it
|
||||
is specified in RFC 7159.)
|
||||
|
||||
JSON::Parse also offers two high-speed validation functions, valid_json,
|
||||
which returns true or false, and assert_valid_json, which produces a
|
||||
descriptive fatal error if the JSON is invalid. These are much faster than
|
||||
parse_json. See PERFORMANCE for a comparison.
|
||||
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.
|
||||
|
||||
JSON::Parse also offers one convenience function to read JSON directly from
|
||||
a file, json_file_to_perl, and 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.
|
||||
|
||||
For special cases, such as JSON objects with non-unique names (key
|
||||
collisions), or round-trips with JSON booleans, there are also new and run,
|
||||
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.)
|
||||
JSON::Parse accepts only UTF-8 as input. See UTF-8 only and Handling of
|
||||
Unicode.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
@@ -74,6 +67,6 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%doc Changes examples README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user