json_schema 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/json_schema/schema.rb +8 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0bf452530b4b54246e04aae4fb36c02222c9631
4
- data.tar.gz: e04f230e83d2da306a5c2462eda95a12f1b579cf
3
+ metadata.gz: 23a2151b76d4fb55e79b7b2c38d1738cb6d891cc
4
+ data.tar.gz: fac096a0e499f17e6a64c732284278d7f4e4c764
5
5
  SHA512:
6
- metadata.gz: 0dd9c714bcbdb4d882c2e4a931aabacf1b57ed5cb5c0af409c18b1fcc5700d6ec821276a593175d6af8ca5a2cb91ef06c8a5e58cd40bc82056450210f2f5d883
7
- data.tar.gz: a0aef6c2277dd70609a723aa8e23b8b955baf1f98538e98dd645c2530ddd1ddcac7da36b1ba13d258bb1f9a47f922355e5e6b76a441fada5cadafb5e46b3fb15
6
+ metadata.gz: f5fa881adb1b78efeafcaade0d20b5caba675d998591cea60a2ed0d56ef1c7b77377bde23bc9ddfb61a6da6d462225666fbdaa3f01b24559f652c31b68ff3b7d
7
+ data.tar.gz: 0327c85a93f4f51e8e4092458168b3822d45c0eabe00c51b82a0273ef93c04191e5fd457229dd774a5cac6a368bc6160aa3eeb3e3a1d17f1983eb218102921f1
@@ -33,6 +33,14 @@ module JsonSchema
33
33
 
34
34
  def initialize
35
35
  @clones = Set.new
36
+
37
+ # nil out all our schema fields so that it's possible to instantiate a
38
+ # schema instance without going through the parser and validate against
39
+ # it without Ruby throwing warnings about uninitialized instance
40
+ # variables.
41
+ @@schema_attrs.each do |_, a|
42
+ send(:"#{a}=", nil)
43
+ end
36
44
  end
37
45
 
38
46
  # Fragment of a JSON Pointer that can help us build a pointer back to this
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-06 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ecma-re-validator