fibered_mysql2 0.2.0.jeb.1 → 0.2.0.pre.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c336888076880a85f5be10b2784991a2a27784e9a3858bf97f79fe782ac6417f
|
4
|
+
data.tar.gz: 59b46276bb6fbc0f6ee2c609195e438cc440dc160b13b26b2d113d034fac004f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df7a46c2f65f930c08fc5233e73d4fd8b13d4b899feffe04b40d45ea944e4e35c89eae567d77187fdc6fd416a25b6080bb0fd2de7b4a1d8dc10e054c508f692
|
7
|
+
data.tar.gz: 38300d691395f2f0c89cc4304c9e9f44df21f6e7df479ca9369e34829faa6eb3a366a0b0c470e1121a3311e8704f3b536fbcdff22fc7a974ff1ef0944ba00e50
|
data/CHANGELOG.md
CHANGED
@@ -4,10 +4,6 @@ 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] - Unreleased
|
8
|
-
### Added
|
9
|
-
- Added support for Rails 6+ by adding knowledge of lazy transactions to the adapter.
|
10
|
-
|
11
7
|
## [0.1.5] - 2022-03-25
|
12
8
|
### Changed
|
13
9
|
- Upgraded Bundler to 2.2.29 and Ruby to 2.7.5. Removed support for Rails 4.
|
@@ -41,7 +37,6 @@ threaded, not fibered.
|
|
41
37
|
- Added TravisCI unit test pipeline.
|
42
38
|
- Added coverage reports via Coveralls.
|
43
39
|
|
44
|
-
[0.2.0]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.5..v0.2.0
|
45
40
|
[0.1.5]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.4..v0.1.5
|
46
41
|
[0.1.4]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.3..v0.1.4
|
47
42
|
[0.1.3]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.2..v0.1.3
|
data/Gemfile.lock
CHANGED
@@ -75,8 +75,14 @@ module FiberedMysql2
|
|
75
75
|
case ::Rails::VERSION::MAJOR
|
76
76
|
when 4
|
77
77
|
include FiberedMysql2Adapter_4_2
|
78
|
-
when 5
|
78
|
+
when 5
|
79
79
|
include FiberedMysql2Adapter_5_2
|
80
|
+
when 6
|
81
|
+
include FiberedMysql2Adapter_5_2
|
82
|
+
|
83
|
+
def supports_lazy_transactions?
|
84
|
+
false
|
85
|
+
end
|
80
86
|
end
|
81
87
|
|
82
88
|
def initialize(*args)
|
@@ -47,44 +47,6 @@ module EM::Synchrony
|
|
47
47
|
transaction
|
48
48
|
end
|
49
49
|
end
|
50
|
-
|
51
|
-
def materialize_transactions
|
52
|
-
return if @materializing_transactions
|
53
|
-
return unless @has_unmaterialized_transactions
|
54
|
-
|
55
|
-
@connection.lock.synchronize do
|
56
|
-
begin
|
57
|
-
@materializing_transactions = true
|
58
|
-
_current_stack.each { |t| t.materialize! unless t.materialized? }
|
59
|
-
ensure
|
60
|
-
@materializing_transactions = false
|
61
|
-
end
|
62
|
-
@has_unmaterialized_transactions = false
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
def commit_transaction
|
67
|
-
@connection.lock.synchronize do
|
68
|
-
transaction = _current_stack.last
|
69
|
-
|
70
|
-
begin
|
71
|
-
transaction.before_commit_records
|
72
|
-
ensure
|
73
|
-
_current_stack.pop
|
74
|
-
end
|
75
|
-
|
76
|
-
transaction.commit
|
77
|
-
transaction.commit_records
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
def rollback_transaction(transaction = nil)
|
82
|
-
@connection.lock.synchronize do
|
83
|
-
transaction ||= @_current_stack.pop
|
84
|
-
transaction.rollback
|
85
|
-
transaction.rollback_records
|
86
|
-
end
|
87
|
-
end
|
88
50
|
end
|
89
51
|
end
|
90
52
|
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.pre.1
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-synchrony
|