service_contract 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ece676fe679b6486a503e341a6b566b67e19cbd
4
- data.tar.gz: 54a78577a17d36b8b3541185aeede59dcb2b32f0
3
+ metadata.gz: 2500dee2d99d62c1cbda9f39db4fa93486341c6d
4
+ data.tar.gz: 9a68b256129b0395383cae942a640a3d38d0b8c0
5
5
  SHA512:
6
- metadata.gz: 29275de62be450eab48f0d59a2e620e922db90d71747a63bb4129d361ed416b6a6136f2854ddb72198a3c246b922f25491325de2fc942b449196c1fffd0b9a07
7
- data.tar.gz: fc9814bb7a0615a27c8cc4210c87eca4bc371381efd93af0c4d6379b35d8258eb8177004acfdbbca004a39610506fa37e439e95c72c5bd7481a49fb6f733b1a9
6
+ metadata.gz: c02902798d1f64c288823a7fd9806d754f32e6537ece8c334cbe25bb9424da937bed97baefd6b2632506f995d67679acd07640c982f2f2a77837b2bd4c9c7eb8
7
+ data.tar.gz: db3a3117c4bd7fd5ac940d5287adef22c3a0dccd245169e7f5d7c2ff35415d074f76c831fd909de671716b1f0d55a2651ffa5299a3bd6ac1e42827e799435566
@@ -12,7 +12,8 @@ module ServiceContract
12
12
  assert_data_matches_type(datum, type.subtype, allow_nil)
13
13
  end
14
14
  elsif type.complex?
15
-
15
+ # Skip out of the complex object is nil and allowed to be nil
16
+ return true if data.nil? && allow_nil
16
17
  # type should have fields
17
18
  type.fields.each do |field|
18
19
 
@@ -1,3 +1,3 @@
1
1
  module ServiceContract
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_contract
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Ching
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro