trx_ext 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trx_ext/retry.rb +3 -3
- data/lib/trx_ext/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b7a1f518fdd40ddeeb90c13f994c3cf437fd7f21a4077dafaa432c26085ae1
|
4
|
+
data.tar.gz: bd95308a108f553e964d14a929516bb43b7736a5248f22694b08e5da19ac881b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036114f10ef556602a66b0b0c407bc0f4acac45e353b650758eb29f23d567addfa53b0db734c3bce53660589e866ca57fc3f70b0fbfc88014669091305548d3c
|
7
|
+
data.tar.gz: b0abbce63d353477366626597c13cb2de29dfc61376d2dfe8b5dd0787ac248088029348bb207af3d468bb70c7517177ecbf18a9c11ce5e3a95c6f9d2db522ceb
|
data/lib/trx_ext/retry.rb
CHANGED
@@ -28,10 +28,10 @@ module TrxExt
|
|
28
28
|
yield
|
29
29
|
rescue => error
|
30
30
|
error_classification = error_classification(error)
|
31
|
-
if error_classification == :record_not_unique
|
32
|
-
retries_count += 1
|
33
|
-
end
|
34
31
|
if retry_query?(error, retries_count)
|
32
|
+
if error_classification == :record_not_unique
|
33
|
+
retries_count += 1
|
34
|
+
end
|
35
35
|
TrxExt.log("Detected transaction rollback condition. Reason - #{error_classification}. Retrying...")
|
36
36
|
retry
|
37
37
|
else
|
data/lib/trx_ext/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trx_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Dzyzenko
|
@@ -143,8 +143,8 @@ licenses:
|
|
143
143
|
metadata:
|
144
144
|
allowed_push_host: https://rubygems.org
|
145
145
|
homepage_uri: https://github.com/intale/trx_ext
|
146
|
-
source_code_uri: https://github.com/intale/trx_ext/tree/v1.0.
|
147
|
-
changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.
|
146
|
+
source_code_uri: https://github.com/intale/trx_ext/tree/v1.0.4
|
147
|
+
changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.4/CHANGELOG.md
|
148
148
|
post_install_message:
|
149
149
|
rdoc_options: []
|
150
150
|
require_paths:
|