simple_json_schema 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddf8b00b377c44e276b281a67ee6daf52bb254dec9cea0f2ef277e835cb5c7e1
4
- data.tar.gz: b8bd835175f4559692c4858ba4735c74afca34dd39c2aa609e9a2a05c5a36ed4
3
+ metadata.gz: 4a5d08a707fb776e0309811b811f6549d27e62f2b4ce92f6317d71859f7e56f6
4
+ data.tar.gz: e27270587926a72a6a3b6bc82f61b642d6baecd83fbf6b3c91357f81565c4e24
5
5
  SHA512:
6
- metadata.gz: 454cdba35466ad60e6177c1e621c789776d2080b9780b7133cb355c99124f4d7f779f61e178bddf7c73bcf2db4da3b754d414630d726796f26189c2115f725e9
7
- data.tar.gz: 6d4e0d386ab1aae6147f1fd8ce278b421b2f18da7c58ff5d07a1d55c323b1edc9d79b32f193e9426295349d903a16e35921e2b89e179961bb2d7b650474e9d50
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.6)
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.0)
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.1)
21
+ ast (2.4.2)
22
22
  byebug (11.1.3)
23
23
  coderay (1.1.3)
24
- concurrent-ruby (1.1.7)
24
+ concurrent-ruby (1.1.8)
25
25
  diff-lcs (1.4.4)
26
- docile (1.3.3)
26
+ docile (1.3.5)
27
27
  ecma-re-validator (0.3.0)
28
28
  regexp_parser (~> 2.0)
29
- i18n (1.8.7)
29
+ i18n (1.8.8)
30
30
  concurrent-ruby (~> 1.0)
31
31
  method_source (1.0.0)
32
- minitest (5.14.2)
32
+ minitest (5.14.3)
33
33
  parallel (1.20.1)
34
- parser (2.7.2.0)
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.1)
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.0)
51
+ rspec-core (3.10.1)
52
52
  rspec-support (~> 3.10.0)
53
- rspec-expectations (3.10.0)
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.0)
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.0)
60
- rubocop (1.6.1)
59
+ rspec-support (3.10.2)
60
+ rubocop (1.9.1)
61
61
  parallel (~> 1.10)
62
- parser (>= 2.7.1.5)
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, < 2.0)
69
- rubocop-ast (1.3.0)
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.1)
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.1.0)
74
+ rubocop-rspec (2.2.0)
75
75
  rubocop (~> 1.0)
76
76
  rubocop-ast (>= 1.1.0)
77
- ruby-progressbar (1.10.1)
78
- simplecov (0.20.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 (1.7.0)
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
- schema_paths: schema_paths,
41
- type: type,
42
- parent_uri: parent_uri || URIExtender.join_uri(self.parent_uri, id)))
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleJSONSchema
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
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.6
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-01-10 00:00:00.000000000 Z
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