json_schema 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 421ca42c0b7fb0754a26c972ab21b5970eaafa92
4
+ data.tar.gz: ddb435ca9c6bf52abf17510adb7d1d7484d53234
5
+ SHA512:
6
+ metadata.gz: 2017cba51b8e2c1a91a7148aeb5dc4831698d6f5ddf7c19c041663dc645ec0014c64f35e2395df8144f7585719b54c03eacebd2037b7d165edf568e6d4c1feba
7
+ data.tar.gz: 79a9c3f2d2c0dcb846249700bcdb91a4ca685937fbd3b1323406222a66006bde176975db1042a8dadd78ca6bd307a664ecd6644686bef0257e7268cddd5acdd1
@@ -118,7 +118,6 @@ module JsonSchema
118
118
  # Type: Array[Schema]
119
119
  attr_copyable :one_of
120
120
 
121
-
122
121
  # A subschema which data must not validate against to be valid.
123
122
  #
124
123
  # Type: Schema
@@ -34,8 +34,9 @@ module JsonSchema
34
34
  private
35
35
 
36
36
  def first_visit(schema, errors, path)
37
+ path = path.join("/")
37
38
  pointer = schema.pointer
38
- if !@visits.key?(pointer) || !@visits[pointer].key?(path.join("/"))
39
+ if !@visits.key?(pointer) || !@visits[pointer].key?(path)
39
40
  @visits[pointer] ||= {}
40
41
  @visits[pointer][path] = true
41
42
  true
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
5
- prerelease:
4
+ version: 0.1.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brandur
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description:
15
14
  email:
@@ -21,19 +20,19 @@ extra_rdoc_files: []
21
20
  files:
22
21
  - README.md
23
22
  - bin/validate-schema
24
- - schemas/hyper-schema.json
25
- - schemas/schema.json
26
23
  - lib/commands/validate_schema.rb
27
- - lib/json_pointer/evaluator.rb
28
24
  - lib/json_pointer.rb
25
+ - lib/json_pointer/evaluator.rb
29
26
  - lib/json_reference.rb
27
+ - lib/json_schema.rb
30
28
  - lib/json_schema/document_store.rb
31
29
  - lib/json_schema/parser.rb
32
30
  - lib/json_schema/reference_expander.rb
33
31
  - lib/json_schema/schema.rb
34
32
  - lib/json_schema/schema_error.rb
35
33
  - lib/json_schema/validator.rb
36
- - lib/json_schema.rb
34
+ - schemas/hyper-schema.json
35
+ - schemas/schema.json
37
36
  - test/commands/validate_schema_test.rb
38
37
  - test/data_scaffold.rb
39
38
  - test/json_pointer/evaluator_test.rb
@@ -46,27 +45,26 @@ files:
46
45
  homepage: https://github.com/brandur/json_schema
47
46
  licenses:
48
47
  - MIT
48
+ metadata: {}
49
49
  post_install_message:
50
50
  rdoc_options: []
51
51
  require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
54
  requirements:
56
- - - ! '>='
55
+ - - ">="
57
56
  - !ruby/object:Gem::Version
58
57
  version: '0'
59
58
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
59
  requirements:
62
- - - ! '>='
60
+ - - ">="
63
61
  - !ruby/object:Gem::Version
64
62
  version: '0'
65
63
  requirements: []
66
64
  rubyforge_project:
67
- rubygems_version: 1.8.24
65
+ rubygems_version: 2.2.2
68
66
  signing_key:
69
- specification_version: 3
67
+ specification_version: 4
70
68
  summary: A JSON Schema V4 and Hyperschema V4 parser and validator.
71
69
  test_files: []
72
70
  has_rdoc: