Hello community,
here is the log from the commit of package perl-JSON-Validator for
openSUSE:Factory checked in at 2020-01-01 14:59:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-JSON-Validator (Old)
and /work/SRC/openSUSE:Factory/.perl-JSON-Validator.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-JSON-Validator"
Wed Jan 1 14:59:45 2020 rev:10 rq:760198 version:3.17
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-JSON-Validator/perl-JSON-Validator.changes
2019-10-30 14:47:47.870180960 +0100
+++
/work/SRC/openSUSE:Factory/.perl-JSON-Validator.new.6675/perl-JSON-Validator.changes
2020-01-01 14:59:46.561977416 +0100
@@ -1,0 +2,10 @@
+Mon Dec 30 03:07:46 UTC 2019 - <[email protected]>
+
+- updated to 3.17
+ see /usr/share/doc/packages/perl-JSON-Validator/Changes
+
+ 3.17 2019-12-29T14:21:53+0900
+ - Fix for deep recursion on Windows #170
+ - Fix reading unicode specifiation from __DATA__ #179
+
+-------------------------------------------------------------------
Old:
----
JSON-Validator-3.16.tar.gz
New:
----
JSON-Validator-3.17.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-JSON-Validator.spec ++++++
--- /var/tmp/diff_new_pack.kxPJ7F/_old 2020-01-01 14:59:47.153977725 +0100
+++ /var/tmp/diff_new_pack.kxPJ7F/_new 2020-01-01 14:59:47.153977725 +0100
@@ -17,7 +17,7 @@
Name: perl-JSON-Validator
-Version: 3.16
+Version: 3.17
Release: 0
%define cpan_name JSON-Validator
Summary: Validate data against a JSON schema
++++++ JSON-Validator-3.16.tar.gz -> JSON-Validator-3.17.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-Validator-3.16/Changes
new/JSON-Validator-3.17/Changes
--- old/JSON-Validator-3.16/Changes 2019-10-28 05:59:47.000000000 +0100
+++ new/JSON-Validator-3.17/Changes 2019-12-29 06:21:53.000000000 +0100
@@ -1,5 +1,9 @@
Revision history for perl distribution JSON-Validator
+3.17 2019-12-29T14:21:53+0900
+ - Fix for deep recursion on Windows #170
+ - Fix reading unicode specifiation from __DATA__ #179
+
3.16 2019-10-28T13:59:47+0900
- Add generate_definitions_path() #175 #177
Contributor: Henrik Andersen, Jan Henning Thorsen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-Validator-3.16/META.json
new/JSON-Validator-3.17/META.json
--- old/JSON-Validator-3.16/META.json 2019-10-28 05:59:50.000000000 +0100
+++ new/JSON-Validator-3.17/META.json 2019-12-29 06:21:54.000000000 +0100
@@ -61,6 +61,6 @@
},
"x_IRC" : "irc://irc.freenode.net/#mojo"
},
- "version" : "3.16",
+ "version" : "3.17",
"x_serialization_backend" : "JSON::PP version 4.02"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-Validator-3.16/META.yml
new/JSON-Validator-3.17/META.yml
--- old/JSON-Validator-3.16/META.yml 2019-10-28 05:59:49.000000000 +0100
+++ new/JSON-Validator-3.17/META.yml 2019-12-29 06:21:54.000000000 +0100
@@ -30,5 +30,5 @@
homepage: https://mojolicious.org
license: http://www.opensource.org/licenses/artistic-license-2.0
repository: https://github.com/mojolicious/json-validator.git
-version: '3.16'
+version: '3.17'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-Validator-3.16/lib/JSON/Validator.pm
new/JSON-Validator-3.17/lib/JSON/Validator.pm
--- old/JSON-Validator-3.16/lib/JSON/Validator.pm 2019-10-28
05:59:47.000000000 +0100
+++ new/JSON-Validator-3.17/lib/JSON/Validator.pm 2019-12-29
06:21:53.000000000 +0100
@@ -23,7 +23,7 @@
use constant RECURSION_LIMIT => $ENV{JSON_VALIDATOR_RECURSION_LIMIT} || 100;
use constant SPECIFICATION_URL => 'http://json-schema.org/draft-04/schema#';
-our $VERSION = '3.16';
+our $VERSION = '3.17';
our $YAML_LOADER = eval q[use YAML::XS 0.67; YAML::XS->can('Load')]; #
internal
our @EXPORT_OK = qw(joi validate_json);
@@ -320,7 +320,8 @@
@modules = _stack() unless $modules[0];
for my $module (@modules) {
warn "[JSON::Validator] Looking for $file in $module\n" if DEBUG;
- my $text = Mojo::Loader::data_section($module, $file);
+ my $text = Mojo::Util::encode('UTF-8',
+ Mojo::Loader::data_section($module, $file) // '');
return $self->_load_schema_from_text(\$text), "$url" if $text;
}
confess "$file could not be found in __DATA__ section of @modules.";
@@ -547,7 +548,8 @@
# definitely relative now
if ($base->isa('Mojo::File')) {
return $base if !length $location;
- return $base->sibling(split '/', $location)->realpath;
+ my $path = $base->sibling(split '/', $location)->realpath;
+ return CASE_TOLERANT ? lc($path) : $path;
}
return $location_as_url->to_abs($base);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/JSON-Validator-3.16/t/load-data.t
new/JSON-Validator-3.17/t/load-data.t
--- old/JSON-Validator-3.16/t/load-data.t 2019-09-27 03:36:58.000000000
+0200
+++ new/JSON-Validator-3.17/t/load-data.t 2019-12-29 06:12:46.000000000
+0100
@@ -35,7 +35,7 @@
"properties": {
"firstName": { "type": "string" },
"lastName": { "type": "string" },
- "age": { "type": "integer", "minimum": 0, "description": "Age in years" }
+ "age": { "type": "integer", "minimum": 0, "description": "トシ" }
}
}