umbrellio-utils 1.5.3 → 1.5.5

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: d7c940381c60e25ca5861e86d81d314984cb0312a811bbf4427ddb2ff0553a51
4
+ data.tar.gz: c824e59c5e6e017e395598a02fb1a32309d178dc8306d7b700f27fbd2aac5807
5
5
  SHA512:
6
- metadata.gz: d1a0d447edc9846015f4966f534ac428abbe0ad4774864df61a4fe6bd189e1046a01fd6c7964a3c038554e5525825ea3f07dedf95d7cdcd31cb4f4675daa53e3
7
- data.tar.gz: 2892c6bf30bd9986b9600c8f5410713c1ec3dc148f2bfc7a2778f1b89a1a03cacb4c99793f390b5dcbc9ea44f415e191ed539e0e7cd846eade843179e5c4a4d8
6
+ metadata.gz: 532480cd4b6cf10d9122dee5890444e0b71439a84a66eb707546de3c625caf7afdfb39a9eb31e877f3991b7ee095e5fb9b458faf0e6959bd7cec92f34ba4c2ba
7
+ data.tar.gz: 78225dde8e021c742ee7c6c5d34612e74e57dc6aed1bef7c8cac6c4ba24f97fa3b2eeec4cfde7b161d1cca15c5a67931d3d6586548ed5db247fffe89ee8acddf
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.5)
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)
@@ -97,6 +97,7 @@ module UmbrellioUtils
97
97
  private
98
98
 
99
99
  def row(values)
100
+ return values if values.size == 1
100
101
  Sequel.function(:row, *values)
101
102
  end
102
103
 
@@ -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.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Umbrellio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memery