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 +4 -4
- data/lib/service_contract/assertions.rb +2 -1
- data/lib/service_contract/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2500dee2d99d62c1cbda9f39db4fa93486341c6d
|
|
4
|
+
data.tar.gz: 9a68b256129b0395383cae942a640a3d38d0b8c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: avro
|