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.
- checksums.yaml +4 -4
- data/lib/json_schema/schema.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23a2151b76d4fb55e79b7b2c38d1738cb6d891cc
|
4
|
+
data.tar.gz: fac096a0e499f17e6a64c732284278d7f4e4c764
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5fa881adb1b78efeafcaade0d20b5caba675d998591cea60a2ed0d56ef1c7b77377bde23bc9ddfb61a6da6d462225666fbdaa3f01b24559f652c31b68ff3b7d
|
7
|
+
data.tar.gz: 0327c85a93f4f51e8e4092458168b3822d45c0eabe00c51b82a0273ef93c04191e5fd457229dd774a5cac6a368bc6160aa3eeb3e3a1d17f1983eb218102921f1
|
data/lib/json_schema/schema.rb
CHANGED
@@ -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.
|
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-
|
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
|