ree_lib 1.0.19 → 1.0.20

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: 1d8cd14e79d5afde9de80c29a5965a4ee4b6d4ca38c125b13395ffb3a5df478a
4
- data.tar.gz: 41644392ed50e289e66d53e81d6b319d584baf9de2b16b81fb89b5678a4977f6
3
+ metadata.gz: 6972cd73aa8f6a7837528ca839deab2958095a3d23ad8fdb07a0db7963354669
4
+ data.tar.gz: 9439598c7328cca53fa6bfb7fe580725d55630793634d2674ad10e1a3dc96578
5
5
  SHA512:
6
- metadata.gz: 726b87bca18fbe71a47d1795da1cff4ca146a414d960aee747676710ad6003ae02b3fdc968fd37ef17e9ebba0d5af749620011d2664d06a0162b524d7f03e524
7
- data.tar.gz: d46cf728e250cfd710bd9f651e4817e0dbf8f3a7a44fe5d797026d924c93b9808a6ef8ccd2887109015a2e656ffda86427ba335f8754385caf3b023d2cb95995
6
+ metadata.gz: 720520759e9483422ca206093e0f22e8cc7a490442a7cea13eae70b77be60e31895fc2180faf916a250ddd58a1a0a3e43d7ae1bdb417c88079b6f7cddcc51355
7
+ data.tar.gz: ebbea5de6b75a32c2f6c2ab7d6889258aa323121a578d575fbe77db3bf4004566b46ce747fb69a58067a5bda91246ca30df0cc00af1f19c3c74bde9fceb7fe0e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree_lib (1.0.19)
4
+ ree_lib (1.0.20)
5
5
  binding_of_caller (~> 1.0.0)
6
6
  i18n (~> 1.12.0)
7
7
  loofah (~> 2.18.0)
@@ -54,23 +54,23 @@ module ReeDao
54
54
  entity
55
55
  end
56
56
 
57
- def put_with_conflict(entity, opts = {})
57
+ def put_with_conflict(entity, conflict_opts = {})
58
58
  raw = opts[:schema_mapper].db_dump(entity)
59
59
  remove_null_primary_key(raw)
60
60
 
61
- if opts.key?(:update) && opts[:update].empty?
62
- opts.delete(:update)
63
- elsif opts[:update].is_a?(Array)
61
+ if conflict_opts.key?(:update) && conflict_opts[:update].empty?
62
+ conflict_opts.delete(:update)
63
+ elsif conflict_opts[:update].is_a?(Array)
64
64
  update = {}
65
65
 
66
- opts[:update].each do |column|
66
+ conflict_opts[:update].each do |column|
67
67
  update[column] = raw[column]
68
68
  end
69
69
 
70
- opts[:update] = update
70
+ conflict_opts[:update] = update
71
71
  end
72
72
 
73
- key = insert_conflict(opts).insert(raw)
73
+ key = insert_conflict(conflict_opts).insert(raw)
74
74
 
75
75
  set_entity_primary_key(entity, raw, key)
76
76
  set_persistence_state(entity, raw)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.19"
4
+ VERSION = "1.0.20"
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.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ree