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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a28c9749e98f72553e2ca37963009fcc8ddf841f6930cc7ad6d71ba403650b2c
4
- data.tar.gz: c45c63fdd16cb43c12d6fa6927e2d66436cb94f7b657062e0c97e92d4671c09e
3
+ metadata.gz: 93b7a1f518fdd40ddeeb90c13f994c3cf437fd7f21a4077dafaa432c26085ae1
4
+ data.tar.gz: bd95308a108f553e964d14a929516bb43b7736a5248f22694b08e5da19ac881b
5
5
  SHA512:
6
- metadata.gz: 94b03b1b7a7a003a068da0799ab8de8bf594d4503f9eb763a0f68cfec3c98f8c2a90c43cf836ee42b4b31c90b872f218781ca60068dedfd10b1eb4a520d90c50
7
- data.tar.gz: b825acd8dc75edbfb351d02a5ce622a6d75bad5b2dc1a14a011c255b31cac6afb007ee46769272d24113dacf78cafe1882af6ce0aad94e0d6fad755d1eb434d6
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TrxExt
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  SUPPORTED_AR_VERSIONS = %w(6.0.4.7 6.1.5 7.0.2.3).freeze
6
6
  end
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.3
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.3
147
- changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.3/CHANGELOG.md
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: