lacerda 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: a649b97be0c953c6fe87cb0804eafe3879406cfc
4
- data.tar.gz: 547571204173899985e9ff33c40a1e0f5f40b794
3
+ metadata.gz: 3b0dba276ebefe21f102870b1921d0f4e3d69c47
4
+ data.tar.gz: 1907a3b8c378c8e316f9c6a9d2b840e989ed9d9e
5
5
  SHA512:
6
- metadata.gz: 5871af140f0b8f5998aa0d8caa3f326f60b21e9a608d5b150bf611d42222cf5c180e55a78144d944bc727cd2f8f3e25f829a452231c46d0f78d34cc5deaf08de
7
- data.tar.gz: ff39862113897086daa584b875d09ac1612d49d793b334271e07436e7054a02cfde8c9b31c4c2de917ee48547cb0f51e95652e07a19b9570257cad0218b75f53
6
+ metadata.gz: 435b5e0263c1beee9d4d272c06cfd935e255b8c794620b16d241e847e4dc72049092c5ff99205df04c9a7b51a73263abc3479fffb9de0e69da671ec5f212ea20
7
+ data.tar.gz: ac3dbd9bbca84a199c83ce29911ba6f7d1f6c47d52d536450813b8963f3b783ec44daa83e197c764effd5f227ac56faf6be75e22a5ba26fa7fd9589a317037c6
@@ -1,3 +1,6 @@
1
+ # 0.14.4
2
+ - don't raise an error when a sub schema is missing a property/definition
3
+
1
4
  # 0.14.3
2
5
  - "don't choke on schemas without local definitions" part 2
3
6
 
@@ -248,6 +248,10 @@ module Lacerda
248
248
  def resolve_pointer(pointer, schema)
249
249
  type = pointer[/\#\/definitions\/([^\/]+)$/, 1]
250
250
  return false unless type
251
+ # TODO: Not so sure if we should raise an error
252
+ # when schema['definitions'] is missing?
253
+ return false unless schema
254
+ return false unless schema['definitions']
251
255
  schema['definitions'][type]
252
256
  end
253
257
 
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.14.3'
2
+ VERSION = '0.14.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
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
  - Jannis Hermanns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport