json_schema 0.14.3 → 0.14.4

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
  SHA1:
3
- metadata.gz: b1d59f23d58a9aeed30273ccdcec6a106dbede93
4
- data.tar.gz: d25d184e8fc7bc6345e67ebb89b9c8d21b601ad9
3
+ metadata.gz: a4568a23c3abb4e52e8a572f5ef4a097b62371e9
4
+ data.tar.gz: 7db413d52b9c17c6ee628d3319747eadbd66011e
5
5
  SHA512:
6
- metadata.gz: f33b776903af3753baa223758920ecbb77e1d48dec0973c8cf85fea4bf92c19115f78a5dc8202912ab3d4b6faf861cdf24bf34595f1a882030721364fd56c099
7
- data.tar.gz: c0e594eb23d5faf03c6b8d14b54e24af9db99be45ae786ccb3ec33af383470b131a5b20b1fa94a2236eb8bb1391cbc2e64a7fca3b1e08fbd0cf14cd621a0e102
6
+ metadata.gz: 9108a578bdb1e5e44f8e28358e770bfe2607d97aa23e060b57393ab5a327cac50607a53aae73ca4a56d2579b98854d754d891c37ead2f2a44b0964ec4438aefc
7
+ data.tar.gz: 12495587293fa18e9f18a5c7f0b640c650160bb2b4659fa472584a3dede66060cbfd26dfedee47f38b3c02f5fb1b5b13292db7d8c1651f5ea20b74a69bdd41ed
@@ -185,6 +185,7 @@ module JsonSchema
185
185
  schema.links = schema.links.each_with_index.map { |l, i|
186
186
  link = Schema::Link.new
187
187
  link.parent = schema
188
+ link.fragment = "links/#{i}"
188
189
 
189
190
  link.data = l
190
191
 
@@ -198,6 +198,8 @@ describe JsonSchema::Parser do
198
198
  schema = parse.definitions["app"]
199
199
  link = schema.links[0]
200
200
  assert_equal schema, link.parent
201
+ assert_equal "links/0", link.fragment
202
+ assert_equal "#/definitions/app/links/0", link.pointer
201
203
  assert_equal "Create a new app.", link.description
202
204
  assert_equal "application/x-www-form-urlencoded", link.enc_type
203
205
  assert_equal "/apps", link.href
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.3
4
+ version: 0.14.4
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-18 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ecma-re-validator