store_model 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: c15370c45ee576c10a8dacbf1ac740e0fb11e51fad7cb65dd7040e103bff70f0
4
- data.tar.gz: 26aef12aa50c51dca2f9341986910a7bf88827491f41f393b73e1063c1fe0c4d
3
+ metadata.gz: 5678f8d809e7ed7745c5bd21b10bb455ecef32fac89cbc0fe9d5928c99dcf7c8
4
+ data.tar.gz: 13fd4acba36ff7b96d8111043de74e94442f63a02d718571fdda3682521e0dab
5
5
  SHA512:
6
- metadata.gz: 509d1ea5ae2f710e4e04a89c1b7a52676e389edd6953fddc2dccab3a015c6f18d03e6e0c64639e2499fde389a0dc3e311a20c65afebbf4e2d6f01ae9d860b3a1
7
- data.tar.gz: e8aa0b70959e32431d4352124cfa9834fc614c67417c53d90d935daec4ce6eb1f91606610260a46f1338cdbe9244cf5ee08348102d4e552210463f326f002fef
6
+ metadata.gz: e57e9ebc4b7e6547c75c8b0375742194eafa6104d2abfd2b55e9e657c64e2af935e99505bb712e8e1ef3d38123f4852d89603f10bfacfa620ec2cb38751995b6
7
+ data.tar.gz: a2c9e761568bc100697c7240762ed27aac4d8ccde2429f4e037357121351f120a1b9a17909f6670f0215691f909032131979ebbe0001d67bba1d2cadeebaadeb
@@ -92,7 +92,7 @@ module StoreModel
92
92
 
93
93
  def deserialize_by_types(hash)
94
94
  @model_klass.attribute_types.each.with_object(hash.dup) do |(key, type), value|
95
- value[key] = type.deserialize(hash[key])
95
+ value[key] = type.deserialize(hash[key]) if hash.key?(key)
96
96
  end
97
97
  end
98
98
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StoreModel # :nodoc:
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-06 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord