json_schemer 0.1.7 → 0.1.8

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: 382a4fe7c0bfaba4ac319cc29289337490b69440217d6725034e516efe5a9f97
4
- data.tar.gz: 59abe27c6052f6f7a210a0c1a51c08ffbb231f6dfe0f5f10d1021a9ccb05b0ac
3
+ metadata.gz: d8539e2f821dae70cf72e1a1763214c65de861b8fa46bc34ca959ca03c320c7f
4
+ data.tar.gz: f5e6ad6cac83929765d123951f816e614f3e51eab4df37533c7acee601defae1
5
5
  SHA512:
6
- metadata.gz: 59328690e27ae9ef6fe1a2c82bca000d99ea1678a39de8f81e01e5f58ffa6cb1254adfb2163ba738b784bff3067c51d429ae6eb61da83da755ca72982b704669
7
- data.tar.gz: 003be8eb68f6f57a70aeaa1014a0e2f26f63252eddb7599b44270c15850d5195acc7a60042927714cfb2e406d0a4af6d5d5c2c4a66c905460b20fb2323e1b82c
6
+ metadata.gz: 38976cf5c7948cd9ef0a334b9e6d12ec984cee8954b54f2e92a17466bba0581e50886cc6290c82c6819aecd034ae44566a573dc74ad262999ab5f0daf89dc9fc
7
+ data.tar.gz: e23d82c6a4d16049e12ba913c1a1e87d178717d9bd0a1aebb715a66ada0e60d681c86feba4ee98ec51e572b261b39e9dcf293f1e1f70f33a2f3ac5b3cd889b30
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_schemer (0.1.7)
5
- ecma-re-validator (~> 0.1.2)
4
+ json_schemer (0.1.8)
5
+ ecma-re-validator (~> 0.2.0)
6
6
  hana (~> 1.3.3)
7
- regexp_parser (~> 0.5.0)
7
+ regexp_parser (~> 1.2.0)
8
8
  uri_template (~> 0.7.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- ecma-re-validator (0.1.2)
14
- regexp_parser (~> 0.2)
13
+ ecma-re-validator (0.2.0)
14
+ regexp_parser (~> 1.2)
15
15
  hana (1.3.4)
16
16
  minitest (5.11.1)
17
17
  rake (10.5.0)
18
- regexp_parser (0.5.0)
18
+ regexp_parser (1.2.0)
19
19
  uri_template (0.7.0)
20
20
 
21
21
  PLATFORMS
data/README.md CHANGED
@@ -49,6 +49,8 @@ schemer.validate({ 'abc' => 10 }).to_a
49
49
 
50
50
  # schema files
51
51
 
52
+ require 'pathname'
53
+
52
54
  schema = Pathname.new('/path/to/schema.json')
53
55
  schemer = JSONSchemer.schema(schema)
54
56
 
@@ -31,8 +31,8 @@ Gem::Specification.new do |spec|
31
31
  # spec.add_development_dependency "json_validation", "~> 0.1.0"
32
32
  # spec.add_development_dependency "jsonschema", "~> 2.0.2"
33
33
 
34
- spec.add_runtime_dependency "ecma-re-validator", "~> 0.1.2"
34
+ spec.add_runtime_dependency "ecma-re-validator", "~> 0.2.0"
35
35
  spec.add_runtime_dependency "hana", "~> 1.3.3"
36
36
  spec.add_runtime_dependency "uri_template", "~> 0.7.0"
37
- spec.add_runtime_dependency "regexp_parser", "~> 0.5.0"
37
+ spec.add_runtime_dependency "regexp_parser", "~> 1.2.0"
38
38
  end
@@ -228,7 +228,7 @@ module JSONSchemer
228
228
  ref_uri = join_uri(instance.parent_uri, ref)
229
229
 
230
230
  if valid_json_pointer?(ref_uri.fragment)
231
- ref_pointer = Hana::Pointer.new(URI.unescape(ref_uri.fragment))
231
+ ref_pointer = Hana::Pointer.new(URI.decode_www_form_component(ref_uri.fragment))
232
232
  if ref.start_with?('#')
233
233
  subinstance = instance.merge(
234
234
  schema: ref_pointer.eval(root),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchemer
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schemer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Harsha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.2
61
+ version: 0.2.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.2
68
+ version: 0.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hana
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.5.0
103
+ version: 1.2.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.5.0
110
+ version: 1.2.0
111
111
  description:
112
112
  email:
113
113
  - davishmcclurg@gmail.com