ree_lib 1.0.75 → 1.0.76

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: ce1a7a42b2936e86f44691bec23557e4e04f72e154202ab2a414257fd1fe304a
4
- data.tar.gz: aea223cb572a0057a0c2e456c2940a050d6fa344f37297e205215cc2e38f1220
3
+ metadata.gz: fb85650b5a10f4ec01e8323cd6caef7585821acc583a8c1727eec0a3fb4e7f5c
4
+ data.tar.gz: 2839d01f406e6c997fea3a19c3aa7d641fe4df8f1bf3ef1ccd3f5044f5f5f094
5
5
  SHA512:
6
- metadata.gz: b8d8f51cd4fbe458d815568a8d10bb85577f4a62cf13663282fedfc45741917a4855eb0611b011e078c1b9c38256a5a10c9b28641ed65b4e1eedf0b442a47af1
7
- data.tar.gz: 41195673e8f6c05f6b367af2ed170f71b06626dcbc88e9742f29b2161902cd5b7395b81deee946900b3e339381e2202c70d6e9c592a680e7b4f829f195cb7e5c
6
+ metadata.gz: 10cf83f3f3e3429a085c15179fe25e0ac278e73d8e2c595522dc99764a787aabee1e8b14e9bd6b3522fc2969fb8f0aec173aef09d5d8dd97250e0cdf8f02e51e
7
+ data.tar.gz: a3c2644c4972910c1cbb7d8ef26bbac66f7e575f281f087026f17d9efe3ac24e3cf842473dd9d4ad32319d9761820b90fba28910d97290471ddc219cbbf44300
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree_lib (1.0.75)
4
+ ree_lib (1.0.76)
5
5
  binding_of_caller (~> 1.0.0)
6
6
  i18n (~> 1.12.0)
7
7
  loofah (~> 2.18.0)
@@ -37,10 +37,10 @@ GEM
37
37
  loofah (2.18.0)
38
38
  crass (~> 1.0.2)
39
39
  nokogiri (>= 1.5.9)
40
- mini_portile2 (2.8.1)
41
40
  msgpack (1.6.0)
42
- nokogiri (1.13.10)
43
- mini_portile2 (~> 2.8.0)
41
+ nokogiri (1.15.4-x86_64-darwin)
42
+ racc (~> 1.4)
43
+ nokogiri (1.15.4-x86_64-linux)
44
44
  racc (~> 1.4)
45
45
  oj (3.13.23)
46
46
  pg (1.4.6)
@@ -229,7 +229,13 @@ module ReeDao
229
229
 
230
230
  def set_entity_primary_key(entity, raw, key)
231
231
  if key && !primary_key.is_a?(Array)
232
- entity.instance_variable_set("@#{primary_key}", key)
232
+ if entity.respond_to?("#{primary_key}=")
233
+ entity.send("#{primary_key}=", key)
234
+ elsif entity.respond_to?("set_#{primary_key}")
235
+ entity.send("set_#{primary_key}", key)
236
+ else
237
+ entity.instance_variable_set("@#{primary_key}", key)
238
+ end
233
239
  raw[primary_key] = key
234
240
  end
235
241
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.75"
4
+ VERSION = "1.0.76"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.75
4
+ version: 1.0.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ree
@@ -1391,7 +1391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1391
1391
  - !ruby/object:Gem::Version
1392
1392
  version: '0'
1393
1393
  requirements: []
1394
- rubygems_version: 3.3.24
1394
+ rubygems_version: 3.3.7
1395
1395
  signing_key:
1396
1396
  specification_version: 4
1397
1397
  summary: Ruby Standard Library Extensions