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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8dbe11eaa3463a28e2f3fa682025baf53d86ee48a3397da363a04125d91ba179
4
- data.tar.gz: 3d99056a1fd26addd40890d2a27d47906b355f3e76bf4382d0ffa9d76ef4e5e1
3
+ metadata.gz: a4e43e1767e326b2618405c88cf6d82ea59e54cc64050db2bd946908dd03375c
4
+ data.tar.gz: fd1911647c5ec70de5ab80a90e3ffca57df6f870f505465cc50895df995de248
5
5
  SHA512:
6
- metadata.gz: d1a0d447edc9846015f4966f534ac428abbe0ad4774864df61a4fe6bd189e1046a01fd6c7964a3c038554e5525825ea3f07dedf95d7cdcd31cb4f4675daa53e3
7
- data.tar.gz: 2892c6bf30bd9986b9600c8f5410713c1ec3dc148f2bfc7a2778f1b89a1a03cacb4c99793f390b5dcbc9ea44f415e191ed539e0e7cd846eade843179e5c4a4d8
6
+ metadata.gz: c7549e20b5d963452958f57cbd2f81802d4033a8dc2648cfa843304b8f66cf39ffd8c8237ed80a28bec3faa37ba0c3120618d45f06b267166939dbf967998dd3
7
+ data.tar.gz: ef23c887cb3976d05535be1a648d29cc21acb7949659c8b572fc21452e013a9c99e2db9b1ef904c67e63ee3125aaadefce3365780cd94bf972b6169518c1a722
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- umbrellio-utils (1.5.3)
4
+ umbrellio-utils (1.5.4)
5
5
  memery (~> 1)
6
6
 
7
7
  GEM
@@ -24,7 +24,13 @@ module UmbrellioUtils
24
24
  checked_constraints: [],
25
25
  &block
26
26
  )
27
- return yield if !retry_on_all_constraints && checked_constraints.empty?
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UmbrellioUtils
4
- VERSION = "1.5.3"
4
+ VERSION = "1.5.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umbrellio-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Umbrellio