8
0

Accepting request 397450 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/397450
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=12
This commit is contained in:
Stephan Kulow
2016-05-25 07:51:20 +00:00
committed by Git OBS Bridge
parent 38f1966c7a
commit 07051d39db
4 changed files with 25 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ca48d1887a846ed834cc985a4e29e3ccaccb5b2cb99e2595c5bd119ffd0be20
size 63187

3
JSON-Parse-0.40.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:314a3098d461b6405deef1554614e707591a3708a0a030c94ded061ff7a62622
size 64047

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon May 23 12:02:34 UTC 2016 - coolo@suse.com
- updated to 0.40
see /usr/share/doc/packages/perl-JSON-Parse/Changes
0.40 2016-05-22
* Compilation warning, possible memory leaks (SHLOMIF)
-------------------------------------------------------------------
Fri Nov 20 09:41:24 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-JSON-Parse
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-JSON-Parse
Version: 0.39
Version: 0.40
Release: 0
%define cpan_name JSON-Parse
Summary: Read JSON into a Perl variable
@@ -36,19 +36,18 @@ 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 safer version of the same function parse_json_safe also exists.
JSON::Parse also offers two 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 act at a higher speed than parse_json.
See PERFORMANCE for a comparison.
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 also offers one convenience function to read JSON directly from
a file, json_file_to_perl.
a file, json_file_to_perl, and a safer version of parse_json called
parse_json_safe which doesn't throw exceptions.
For those who need to deal with special cases, such as JSON objects with
non-unique names, or round-trips with JSON booleans, there is also new and
run.
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
@@ -59,7 +58,7 @@ its output is upgraded to Unicode character strings.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"