jet_set 0.5.2 → 0.5.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
  SHA256:
3
- metadata.gz: da1c90306dba7d5f1dc8cd967490ec219b81533ad02d5657b1b1b9d48eb4387d
4
- data.tar.gz: 80547d2f02aed05d2c95cd58795a757f9dd86314d75fea14397be8b66dd84fc3
3
+ metadata.gz: bb3d54a41c9a91c8761053dd1ba08314f3f5416f9b9762cace0758bdb32e2c5f
4
+ data.tar.gz: 94c834a0a75d2cf2bae2a25d8e57b24ac68b7870e6e61ed6fc1fafb62c9e5a8c
5
5
  SHA512:
6
- metadata.gz: 8964a2af623d57ab71ade866633a3b9f1272916db2a62c787eb29bf7e64174ab319f0f11e6933d76591313cd82a86b96b40528635e9cc806dc5fb2237f3316fa
7
- data.tar.gz: c3e98e356be1e97520595c776defcc89860bcf2bff5c280d52e146481f191ac30bb04077979348fcac45fbc4b30a228706c9372bf26f9434629cdbc59f70d7f7
6
+ metadata.gz: 4e08aeb9e15d4918b310dcf33b03e9df48fa555ade341901518b21fa51b67eb4c22b98d184922ef7291baeb3edf08171e2737e90580b61e563e61f9452159645
7
+ data.tar.gz: 024b1e91903efb225aac4142932ce67abed52eb16681214ccf2a6803d72c929c77e183fb1352e58124bec1a70b2786320eabf426bd212a99ae0fcdf6a1d6cc3d
@@ -90,7 +90,13 @@ module JetSet
90
90
 
91
91
  @mutex.synchronize do
92
92
  to_attach.each do |object|
93
- obj = object.kind_of?(Entity) ? object : @entity_builder.create(object)
93
+ if object.kind_of?(Entity)
94
+ obj = object
95
+ else
96
+ obj = @entity_builder.create(object)
97
+ obj.validate! if obj.respond_to? :validate!
98
+ end
99
+
94
100
  @objects << obj
95
101
  end
96
102
  end
@@ -1,3 +1,3 @@
1
1
  module JetSet
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jet_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kalinkin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2021-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -152,7 +152,7 @@ licenses:
152
152
  - MIT
153
153
  metadata:
154
154
  allowed_push_host: https://rubygems.org
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.1.2
171
- signing_key:
170
+ rubygems_version: 3.2.15
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: JetSet is a microscopic ORM for DDD projects.
174
174
  test_files: []