lacerda 0.14.2 → 0.14.3

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: 84b9f409e21598d3679266a9195f9f0ab4067903
4
- data.tar.gz: 383463e0faf1b456f810ab9f16c0193ed210ea06
3
+ metadata.gz: a649b97be0c953c6fe87cb0804eafe3879406cfc
4
+ data.tar.gz: 547571204173899985e9ff33c40a1e0f5f40b794
5
5
  SHA512:
6
- metadata.gz: f4385a9a6af721d743c2feace10086a6e6d57acba4a69dd79dc93c00285dc51152b47476df846fe2624f266803e81aa749304ad02085e1f87aaa66c98c690a56
7
- data.tar.gz: 48500d3fbbb716afbddf75b3adecb81cdcbe7d0eee117f065e7339a95f7f8054859c1308fec03e3eb70c5ca3db584d1ee002fda71f6d6ad5da96cc0e31e5ecec
6
+ metadata.gz: 5871af140f0b8f5998aa0d8caa3f326f60b21e9a608d5b150bf611d42222cf5c180e55a78144d944bc727cd2f8f3e25f829a452231c46d0f78d34cc5deaf08de
7
+ data.tar.gz: ff39862113897086daa584b875d09ac1612d49d793b334271e07436e7054a02cfde8c9b31c4c2de917ee48547cb0f51e95652e07a19b9570257cad0218b75f53
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.14.3
2
+ - "don't choke on schemas without local definitions" part 2
3
+
1
4
  # 0.14.2
2
5
  - fix compatibility check for types that allow multiple primitives
3
6
  (e.g. `"type": ["number", "null"]`)
@@ -45,7 +45,6 @@ module Lacerda
45
45
 
46
46
  def object?(name)
47
47
  underscored_name = Lacerda.underscore(name)
48
- return false unless @schema[:definitions]
49
48
  !!@schema[:definitions][underscored_name]
50
49
  end
51
50
 
@@ -30,6 +30,8 @@ module Lacerda
30
30
  @schema = {}
31
31
  end
32
32
  @schema = @schema.with_indifferent_access
33
+ @schema[:definitions] ||= {}
34
+ @schema
33
35
  end
34
36
  end
35
37
  end
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.14.2'
2
+ VERSION = '0.14.3'
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.2
4
+ version: 0.14.3
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-07 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport