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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e195b1ddbcb294d2baabdd49659735e5e374501
4
- data.tar.gz: 3180a3311178af1a40ec00fec1e3118c4fbeae8d
3
+ metadata.gz: 355c75bbed6d85725de7580a22eb961972e6d106
4
+ data.tar.gz: 85164c4e9bc3939af6aad6a0a6c6876808dfbc80
5
5
  SHA512:
6
- metadata.gz: 801f71525350455e645970929354fa7bbb8238e933400763c23a4e23ca0c4d8bd8cea6956ab4ef571843346668c98d121c2db83ddc61732ff12912da0cadf990
7
- data.tar.gz: d1eee041969b9d18afc631b840a92b5ab9c6729c0fd7180272f5917c07fa73b2e9ebb5eba42a39502806946bb9b145e0855a3691ba9aa7f72af3cdff45bbbd9e
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 ||= []
@@ -1,3 +1,3 @@
1
1
  module NestedStruct
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
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.2
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-06-16 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler