umbrellio-utils 1.5.2 → 1.5.3
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 +6 -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: 8dbe11eaa3463a28e2f3fa682025baf53d86ee48a3397da363a04125d91ba179
|
4
|
+
data.tar.gz: 3d99056a1fd26addd40890d2a27d47906b355f3e76bf4382d0ffa9d76ef4e5e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a0d447edc9846015f4966f534ac428abbe0ad4774864df61a4fe6bd189e1046a01fd6c7964a3c038554e5525825ea3f07dedf95d7cdcd31cb4f4675daa53e3
|
7
|
+
data.tar.gz: 2892c6bf30bd9986b9600c8f5410713c1ec3dc148f2bfc7a2778f1b89a1a03cacb4c99793f390b5dcbc9ea44f415e191ed539e0e7cd846eade843179e5c4a4d8
|
data/Gemfile.lock
CHANGED
@@ -19,8 +19,13 @@ module UmbrellioUtils
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def retry_on_unique_violation(
|
22
|
-
times: Float::INFINITY,
|
22
|
+
times: Float::INFINITY,
|
23
|
+
retry_on_all_constraints: false,
|
24
|
+
checked_constraints: [],
|
25
|
+
&block
|
23
26
|
)
|
27
|
+
return yield if !retry_on_all_constraints && checked_constraints.empty?
|
28
|
+
|
24
29
|
retry_on(Sequel::UniqueConstraintViolation, times:) do
|
25
30
|
DB.transaction(savepoint: true, &block)
|
26
31
|
rescue Sequel::UniqueConstraintViolation => e
|