fibered_mysql2 0.2.0.jeb.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/lib/fibered_mysql2/fibered_mysql2_connection_factory.rb +10 -1
- data/lib/fibered_mysql2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b96c3d593486e68e9bcb79ba3ece18c5bde2a4847cf6007b3711595a72491147
|
4
|
+
data.tar.gz: 57d3a719e17231f2582694a1590e8e6d43567bb75797ddc17b2591fe9e285ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec023e83475110f906ae85d79ffbe369014cfe33d71797ba09c3c3666f9af25353cac11d5f6ec6e7f5484f911b4b2310bcb44ff37d0510fe15c2e8d3d65daa7
|
7
|
+
data.tar.gz: 461cccb73f19c36f9a019a04955c492ef572a63540b6f0a849f02c9c1c640d996ed02cbf43150b195168710333d08b17b0e584d934e8811e6de10c1ba84cd92f
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [0.2.0] -
|
7
|
+
## [0.2.0] - 2023-01-12
|
8
8
|
### Added
|
9
9
|
- Added support for Rails 6+ by adding knowledge of lazy transactions to the adapter.
|
10
10
|
|
data/Gemfile.lock
CHANGED
@@ -48,6 +48,9 @@ module EM::Synchrony
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
# Overriding the ActiveRecord::TransactionManager#materialize_transactions method to use
|
52
|
+
# fiber safe the _current_stack instead of the @stack instance variable. when marterializing
|
53
|
+
# transactions.
|
51
54
|
def materialize_transactions
|
52
55
|
return if @materializing_transactions
|
53
56
|
return unless @has_unmaterialized_transactions
|
@@ -63,6 +66,9 @@ module EM::Synchrony
|
|
63
66
|
end
|
64
67
|
end
|
65
68
|
|
69
|
+
# Overriding the ActiveRecord::TransactionManager#commit_transaction method to use
|
70
|
+
# fiber safe the _current_stack instead of the @stack instance variable. when marterializing
|
71
|
+
# transactions.
|
66
72
|
def commit_transaction
|
67
73
|
@connection.lock.synchronize do
|
68
74
|
transaction = _current_stack.last
|
@@ -78,9 +84,12 @@ module EM::Synchrony
|
|
78
84
|
end
|
79
85
|
end
|
80
86
|
|
87
|
+
# Overriding the ActiveRecord::TransactionManager#rollback_transaction method to use
|
88
|
+
# fiber safe the _current_stack instead of the @stack instance variable. when marterializing
|
89
|
+
# transactions.
|
81
90
|
def rollback_transaction(transaction = nil)
|
82
91
|
@connection.lock.synchronize do
|
83
|
-
transaction ||=
|
92
|
+
transaction ||= _current_stack.pop
|
84
93
|
transaction.rollback
|
85
94
|
transaction.rollback_records
|
86
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fibered_mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca Development
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-synchrony
|
@@ -89,9 +89,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - "
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubygems_version: 3.1.6
|
97
97
|
signing_key:
|