json-ld-validate 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jsonld_validate/validator.rb +2 -1
- data/lib/jsonld_validate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87c939c5fc7ead57800303bc24edce69331c13cea8b422fc3887b865c23c72e6
|
|
4
|
+
data.tar.gz: 77ecf0edcd7a805434b35534e29019f19aff60de64f1c19155a9d07daebe4c92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c39d110ab85ef061d26f530568b6810d0e6bddf33024d7939f42c5119c957d00cb50483452bf4ff32a39d74634074086ff26ce78317330909a5e67d0ec989afb
|
|
7
|
+
data.tar.gz: e2e5deb0d05bb8423e0b70d9dd56e011a37578f1a92cc2c4cd1ae4460e42fa0469f9cbdb5a3084ce2de63ac229df1d25838dbdcfd06e025175ab3eb829395bc8
|
|
@@ -106,7 +106,8 @@ module JsonldValidate
|
|
|
106
106
|
|
|
107
107
|
def recurse_field(orig_val, comp_val, path)
|
|
108
108
|
if orig_val.is_a?(Array)
|
|
109
|
-
comp_val = [] unless comp_val.is_a?(Array)
|
|
109
|
+
comp_val = [comp_val] unless comp_val.is_a?(Array) || comp_val.nil?
|
|
110
|
+
comp_val ||= []
|
|
110
111
|
orig_val.each_with_index do |item, i|
|
|
111
112
|
find_unknown_fields(item, comp_val[i], path + [i.to_s])
|
|
112
113
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json-ld-validate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damien MATHIEU
|
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
version: '0'
|
|
59
59
|
requirements: []
|
|
60
|
-
rubygems_version: 4.0.
|
|
60
|
+
rubygems_version: 4.0.10
|
|
61
61
|
specification_version: 4
|
|
62
62
|
summary: JSON-LD documents validation
|
|
63
63
|
test_files: []
|