jschema 0.1.2 → 0.2.0

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/jschema/schema.rb +4 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5975d1ffb59b9a5adaaaa4155bfa277ee36c18d
4
- data.tar.gz: b159e075f06114b2beebfdafd78e4e991600bd6b
3
+ metadata.gz: 5d4b107701aecdbf3da8a1f497e1ea5464005b5f
4
+ data.tar.gz: 7f37df5b104add21c85fb491925d932b4c708212
5
5
  SHA512:
6
- metadata.gz: 5d363449dfdeba0d314bec5da9229c230d5d5b23d52552983218f92e9792c75cda7369fa201b80b5085d2273cf572955742b709d9d5f230bbbf7fe5312df6246
7
- data.tar.gz: 063973f04bed0d87bd855d5111160817122c701f1465bb838bd0448881ad293aa4114df1b8d0e9767096ba175c8daf465617a6c48daac27310a9acad5d9c53cb
6
+ metadata.gz: 40ec990c33022c4983b23aaeb1e1859da7f8e260138a981c02b732dcdeb7fcb1a643acc0a4b7048c0e8e5b7716bf0b774e07471d43adccdc07600bfd2945912e
7
+ data.tar.gz: e0240a32c0769dee642d98f5fffbe599b94c316dab0c1ecba68e8dd4cbca6b71695c46e7328ab4ce8a76bcf6228418a6a213f5e0b56e546483526ca203404e91
@@ -52,6 +52,10 @@ module JSchema
52
52
  end.compact
53
53
  end
54
54
 
55
+ def fragment(path)
56
+ JSchema::JSONReference.dereference(URI.parse(path), self)
57
+ end
58
+
55
59
  def to_s
56
60
  uri.to_s
57
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jschema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Papkovskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-14 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Implementation of JSON Schema Draft 4
14
14
  email: konstantin@papkovskiy.com
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.5.0
70
+ rubygems_version: 2.5.1
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: JSON Schema implementation