nested_struct 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nested_struct/interface.rb +2 -2
- data/lib/nested_struct/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: 355c75bbed6d85725de7580a22eb961972e6d106
|
4
|
+
data.tar.gz: 85164c4e9bc3939af6aad6a0a6c6876808dfbc80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc9a832d069dd157a9058c3f59f583e382dc5b3974f6d8896659921f6182fe795707c2282de0e1c2b10f529a7f4fd1628b2abbc0e852d03b00977a85741ccefc
|
7
|
+
data.tar.gz: ef4f6e90c0ee2b21a303bc8029e5fcd25b81bb42b8582d26784d4f64efc59594990f73e38c0f1bdb012e232005cf15754aefafcb1b4f217428aa5b3c2cb3a992
|
@@ -9,8 +9,8 @@ module NestedStruct
|
|
9
9
|
|
10
10
|
def field(name, coercer_expression = nil)
|
11
11
|
if superclass.ancestors.include?(NestedStruct::Interface)
|
12
|
-
@field_names ||= superclass.field_names.dup
|
13
|
-
@fields ||= superclass.fields.dup
|
12
|
+
@field_names ||= superclass.field_names.dup || []
|
13
|
+
@fields ||= superclass.fields.dup || []
|
14
14
|
else
|
15
15
|
@field_names ||= []
|
16
16
|
@fields ||= []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nested_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Buszewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|