umbrellio-utils 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/umbrellio_utils/control.rb +7 -1
- data/lib/umbrellio_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e43e1767e326b2618405c88cf6d82ea59e54cc64050db2bd946908dd03375c
|
4
|
+
data.tar.gz: fd1911647c5ec70de5ab80a90e3ffca57df6f870f505465cc50895df995de248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7549e20b5d963452958f57cbd2f81802d4033a8dc2648cfa843304b8f66cf39ffd8c8237ed80a28bec3faa37ba0c3120618d45f06b267166939dbf967998dd3
|
7
|
+
data.tar.gz: ef23c887cb3976d05535be1a648d29cc21acb7949659c8b572fc21452e013a9c99e2db9b1ef904c67e63ee3125aaadefce3365780cd94bf972b6169518c1a722
|
data/Gemfile.lock
CHANGED
@@ -24,7 +24,13 @@ module UmbrellioUtils
|
|
24
24
|
checked_constraints: [],
|
25
25
|
&block
|
26
26
|
)
|
27
|
-
|
27
|
+
if !retry_on_all_constraints && checked_constraints.empty?
|
28
|
+
begin
|
29
|
+
return yield
|
30
|
+
rescue Sequel::UniqueConstraintViolation => e
|
31
|
+
raise UniqueConstraintViolation, e.message
|
32
|
+
end
|
33
|
+
end
|
28
34
|
|
29
35
|
retry_on(Sequel::UniqueConstraintViolation, times:) do
|
30
36
|
DB.transaction(savepoint: true, &block)
|