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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6972cd73aa8f6a7837528ca839deab2958095a3d23ad8fdb07a0db7963354669
|
4
|
+
data.tar.gz: 9439598c7328cca53fa6bfb7fe580725d55630793634d2674ad10e1a3dc96578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 720520759e9483422ca206093e0f22e8cc7a490442a7cea13eae70b77be60e31895fc2180faf916a250ddd58a1a0a3e43d7ae1bdb417c88079b6f7cddcc51355
|
7
|
+
data.tar.gz: ebbea5de6b75a32c2f6c2ab7d6889258aa323121a578d575fbe77db3bf4004566b46ce747fb69a58067a5bda91246ca30df0cc00af1f19c3c74bde9fceb7fe0e
|
data/Gemfile.lock
CHANGED
@@ -54,23 +54,23 @@ module ReeDao
|
|
54
54
|
entity
|
55
55
|
end
|
56
56
|
|
57
|
-
def put_with_conflict(entity,
|
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
|
62
|
-
|
63
|
-
elsif
|
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
|
-
|
66
|
+
conflict_opts[:update].each do |column|
|
67
67
|
update[column] = raw[column]
|
68
68
|
end
|
69
69
|
|
70
|
-
|
70
|
+
conflict_opts[:update] = update
|
71
71
|
end
|
72
72
|
|
73
|
-
key = insert_conflict(
|
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)
|
data/lib/ree_lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ree
|