trx_ext 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d86c6295c4d141b3bcf938c95e8856cf390d5bd1a0454f81dfde3a135c35b9ff
4
- data.tar.gz: d47c2e2425bf29d242824da94551acd8f44cb4489c811935ef5bd16169892544
3
+ metadata.gz: b300fb55d7310a3e3f4d3a8860044f48deec84791caf6303d7a6b01a2e2728b7
4
+ data.tar.gz: 2e6d704c74c209b515dfc3a04d06ca549322a0e33d1037a414d779df1c063afd
5
5
  SHA512:
6
- metadata.gz: 1dd474ef6d21fe8443b14b7d3d12a3af00c030d14ff45924cf5130495cd12e5e37b8890d6af9303100e7acf269564fce405b9f00848661079c4e2627735ccfe7
7
- data.tar.gz: 98ea0710b3c50b96741511c50ce627b06e8d8a7e8701c53935db1696c7aec2e61db9474bfa4239f11aa15e2243a7754a7de1590d3e2a157a885d8e6f9b4d1d93
6
+ metadata.gz: 45c7190466168fe05b18ad69f084152b638235f9fab14edaa0eb6962449a2012b71e6e2b991fb319f73080cd7e3aba2f6700203a362cd86483d91f8ca606b66c
7
+ data.tar.gz: ce496ee423f04d12b9f92af4373e460edc31048d90908333f8449d98d70eb61053fd675c94f2345e767c5a43ae5535fa6b0e964f179dce604513aa782a8466e4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.0.1] - 2024-09-20
4
+ - Restrict rails version to `< 7.2`. Rails v7.2 has suddenly released its own transaction callbacks which interferes with `trx_ext` transaction callbacks. Example of rails v7.2 transaction callbacks:
5
+
6
+ ```ruby
7
+ Article.transaction do |transaction|
8
+ article.update(published: true)
9
+ transaction.after_commit do
10
+ PublishNotificationMailer.with(article: article).deliver_later
11
+ end
12
+ end
13
+ ```
14
+
15
+ Next major version of `trx_ext` will drop its own transaction callbacks implementation and will start relying on rails' transaction callbacks.
16
+
3
17
  ## [2.0.0] - 2024-04-14
4
18
 
5
19
  - `trx_ext` now supports any adapter(except `mysql`; `mysql2` is supported though), supported by rails
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TrxExt
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
data/trx_ext.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_dependency 'activerecord', '>= 7.1'
34
+ spec.add_dependency 'activerecord', '>= 7.1', '< 7.2'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trx_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-14 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '7.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '7.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.2'
27
33
  description: Allow you to retry deadlocks, serialization errors, non-unique errors.
28
34
  email:
29
35
  - ivan.dzyzenko@gmail.com
@@ -103,8 +109,8 @@ licenses:
103
109
  metadata:
104
110
  allowed_push_host: https://rubygems.org
105
111
  homepage_uri: https://github.com/intale/trx_ext
106
- source_code_uri: https://github.com/intale/trx_ext/tree/v2.0.0
107
- changelog_uri: https://github.com/intale/trx_ext/blob/v2.0.0/CHANGELOG.md
112
+ source_code_uri: https://github.com/intale/trx_ext/tree/v2.0.1
113
+ changelog_uri: https://github.com/intale/trx_ext/blob/v2.0.1/CHANGELOG.md
108
114
  post_install_message:
109
115
  rdoc_options: []
110
116
  require_paths: