simple_json_schema 0.1.6 → 0.1.7
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/Gemfile.lock +22 -22
- data/{bin → exe}/simple_json_schema +0 -0
- data/lib/simple_json_schema/scope.rb +4 -4
- data/lib/simple_json_schema/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a5d08a707fb776e0309811b811f6549d27e62f2b4ce92f6317d71859f7e56f6
|
|
4
|
+
data.tar.gz: e27270587926a72a6a3b6bc82f61b642d6baecd83fbf6b3c91357f81565c4e24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 152b8aeb26451c83ff0537ea7f42dd96fe5e4eb18f2576c506adb6ae2a78cc87af87aba558b435c62164915902a0fe7e7891daf63865a892f75fd4be49849bbf
|
|
7
|
+
data.tar.gz: 1d9d85afee2f8a79b2de64ae5b8072822108e7f610a939cbeb5d95843bb99d65d1667fb6fc2949231dc48c4d632308aac7926ad832c9c43f81a96231836e6d7d
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_json_schema (0.1.
|
|
4
|
+
simple_json_schema (0.1.7)
|
|
5
5
|
activesupport (~> 6.0)
|
|
6
6
|
addressable (~> 2.7)
|
|
7
7
|
ecma-re-validator (~> 0.3)
|
|
@@ -10,7 +10,7 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
activesupport (6.1.
|
|
13
|
+
activesupport (6.1.1)
|
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
15
15
|
i18n (>= 1.6, < 2)
|
|
16
16
|
minitest (>= 5.1)
|
|
@@ -18,20 +18,20 @@ GEM
|
|
|
18
18
|
zeitwerk (~> 2.3)
|
|
19
19
|
addressable (2.7.0)
|
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
|
21
|
-
ast (2.4.
|
|
21
|
+
ast (2.4.2)
|
|
22
22
|
byebug (11.1.3)
|
|
23
23
|
coderay (1.1.3)
|
|
24
|
-
concurrent-ruby (1.1.
|
|
24
|
+
concurrent-ruby (1.1.8)
|
|
25
25
|
diff-lcs (1.4.4)
|
|
26
|
-
docile (1.3.
|
|
26
|
+
docile (1.3.5)
|
|
27
27
|
ecma-re-validator (0.3.0)
|
|
28
28
|
regexp_parser (~> 2.0)
|
|
29
|
-
i18n (1.8.
|
|
29
|
+
i18n (1.8.8)
|
|
30
30
|
concurrent-ruby (~> 1.0)
|
|
31
31
|
method_source (1.0.0)
|
|
32
|
-
minitest (5.14.
|
|
32
|
+
minitest (5.14.3)
|
|
33
33
|
parallel (1.20.1)
|
|
34
|
-
parser (
|
|
34
|
+
parser (3.0.0.0)
|
|
35
35
|
ast (~> 2.4.1)
|
|
36
36
|
pry (0.13.1)
|
|
37
37
|
coderay (~> 1.1)
|
|
@@ -42,40 +42,40 @@ GEM
|
|
|
42
42
|
public_suffix (4.0.6)
|
|
43
43
|
rainbow (3.0.0)
|
|
44
44
|
rake (13.0.3)
|
|
45
|
-
regexp_parser (2.0.
|
|
45
|
+
regexp_parser (2.0.3)
|
|
46
46
|
rexml (3.2.4)
|
|
47
47
|
rspec (3.10.0)
|
|
48
48
|
rspec-core (~> 3.10.0)
|
|
49
49
|
rspec-expectations (~> 3.10.0)
|
|
50
50
|
rspec-mocks (~> 3.10.0)
|
|
51
|
-
rspec-core (3.10.
|
|
51
|
+
rspec-core (3.10.1)
|
|
52
52
|
rspec-support (~> 3.10.0)
|
|
53
|
-
rspec-expectations (3.10.
|
|
53
|
+
rspec-expectations (3.10.1)
|
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
55
|
rspec-support (~> 3.10.0)
|
|
56
|
-
rspec-mocks (3.10.
|
|
56
|
+
rspec-mocks (3.10.2)
|
|
57
57
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
58
|
rspec-support (~> 3.10.0)
|
|
59
|
-
rspec-support (3.10.
|
|
60
|
-
rubocop (1.
|
|
59
|
+
rspec-support (3.10.2)
|
|
60
|
+
rubocop (1.9.1)
|
|
61
61
|
parallel (~> 1.10)
|
|
62
|
-
parser (>=
|
|
62
|
+
parser (>= 3.0.0.0)
|
|
63
63
|
rainbow (>= 2.2.2, < 4.0)
|
|
64
64
|
regexp_parser (>= 1.8, < 3.0)
|
|
65
65
|
rexml
|
|
66
66
|
rubocop-ast (>= 1.2.0, < 2.0)
|
|
67
67
|
ruby-progressbar (~> 1.7)
|
|
68
|
-
unicode-display_width (>= 1.4.0, <
|
|
69
|
-
rubocop-ast (1.
|
|
68
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
69
|
+
rubocop-ast (1.4.1)
|
|
70
70
|
parser (>= 2.7.1.5)
|
|
71
|
-
rubocop-performance (1.9.
|
|
71
|
+
rubocop-performance (1.9.2)
|
|
72
72
|
rubocop (>= 0.90.0, < 2.0)
|
|
73
73
|
rubocop-ast (>= 0.4.0)
|
|
74
|
-
rubocop-rspec (2.
|
|
74
|
+
rubocop-rspec (2.2.0)
|
|
75
75
|
rubocop (~> 1.0)
|
|
76
76
|
rubocop-ast (>= 1.1.0)
|
|
77
|
-
ruby-progressbar (1.
|
|
78
|
-
simplecov (0.
|
|
77
|
+
ruby-progressbar (1.11.0)
|
|
78
|
+
simplecov (0.21.2)
|
|
79
79
|
docile (~> 1.1)
|
|
80
80
|
simplecov-html (~> 0.11)
|
|
81
81
|
simplecov_json_formatter (~> 0.1)
|
|
@@ -83,7 +83,7 @@ GEM
|
|
|
83
83
|
simplecov_json_formatter (0.1.2)
|
|
84
84
|
tzinfo (2.0.4)
|
|
85
85
|
concurrent-ruby (~> 1.0)
|
|
86
|
-
unicode-display_width (
|
|
86
|
+
unicode-display_width (2.0.0)
|
|
87
87
|
zeitwerk (2.4.2)
|
|
88
88
|
|
|
89
89
|
PLATFORMS
|
|
File without changes
|
|
@@ -36,10 +36,10 @@ module SimpleJSONSchema
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def merge(data_paths: self.data_paths, schema_paths: self.schema_paths, type: nil, parent_uri: nil)
|
|
39
|
-
self.class.new(scope.merge(data_paths: data_paths,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
self.class.new(**scope.merge(data_paths: data_paths,
|
|
40
|
+
schema_paths: schema_paths,
|
|
41
|
+
type: type,
|
|
42
|
+
parent_uri: parent_uri || URIExtender.join_uri(self.parent_uri, id)))
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def replace_data(new_data)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_json_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georgeo Rocco
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -169,7 +169,8 @@ description: |-
|
|
|
169
169
|
based on https://github.com/davishmcclurg/json_schemer
|
|
170
170
|
email:
|
|
171
171
|
- ggrocco@vliper.com
|
|
172
|
-
executables:
|
|
172
|
+
executables:
|
|
173
|
+
- simple_json_schema
|
|
173
174
|
extensions: []
|
|
174
175
|
extra_rdoc_files: []
|
|
175
176
|
files:
|
|
@@ -187,8 +188,8 @@ files:
|
|
|
187
188
|
- Rakefile
|
|
188
189
|
- bin/console
|
|
189
190
|
- bin/setup
|
|
190
|
-
- bin/simple_json_schema
|
|
191
191
|
- draft-07-schema
|
|
192
|
+
- exe/simple_json_schema
|
|
192
193
|
- lib/simple_json_schema.rb
|
|
193
194
|
- lib/simple_json_schema/cache.rb
|
|
194
195
|
- lib/simple_json_schema/checker.rb
|