fibered_mysql2 1.0.0.colin.3 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +3 -2
- data/Appraisals +3 -3
- data/CHANGELOG.md +9 -8
- data/Gemfile +6 -6
- data/Gemfile.lock +142 -129
- data/catalog-info.yaml +15 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/{rails_6.gemfile → rails_6_0.gemfile} +6 -5
- data/gemfiles/rails_6_1.gemfile +16 -0
- data/lib/fibered_mysql2/fibered_database_connection_pool.rb +6 -2
- data/lib/fibered_mysql2/hash_config_override.rb +14 -0
- data/lib/fibered_mysql2/version.rb +1 -1
- data/lib/fibered_mysql2.rb +1 -0
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e557a5d00028db8da31e8223fd964d677e127d3bee250f99f9dcc63050da11
|
4
|
+
data.tar.gz: 0c5cd0a295a99df37b18d2b1320c62df3f83277613140a1048d18decb093e411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1b23498c12622a05eee7926f48369a4f2f680507a71db167521d393d6a09ac8bd6c167beb4884d19fa6a4613f68208cbf38453ebc880dfb6750036e91d1583
|
7
|
+
data.tar.gz: 4b4a665ca475b5b28745d6085d8e3729fc3aad2a1f61e1cbbe13b79b7f1cdfd87fa24436cf1b9f62e2f6c6e42719f31082880050deeb0cb0b28114ab196d7d6c
|
data/.github/workflows/build.yml
CHANGED
@@ -8,10 +8,11 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby: [3.1, 3.2]
|
11
|
+
ruby: [3.1, 3.2, 3.3]
|
12
12
|
gemfile:
|
13
13
|
- Gemfile
|
14
|
-
- gemfiles/
|
14
|
+
- gemfiles/rails_6_0.gemfile
|
15
|
+
- gemfiles/rails_6_1.gemfile
|
15
16
|
env:
|
16
17
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
17
18
|
steps:
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,15 @@ 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
|
+
## [1.0.1] - 2024-08-19
|
8
|
+
### Fixed
|
9
|
+
- Fixed issues in Rails 6.1+
|
10
|
+
|
11
|
+
## [1.0.0] - 2023-05-31
|
12
|
+
### Changed
|
13
|
+
- Changed to Ruby 3.2.1 with Async rather than EventMachine+Synchrony. Only support Rails 6.0 as Rails 7
|
14
|
+
already has a similar feature: `isolation_level: :fiber`.
|
15
|
+
|
7
16
|
## [0.2.0] - 2023-01-12
|
8
17
|
### Added
|
9
18
|
- Added support for Rails 6+ by adding knowledge of lazy transactions to the adapter.
|
@@ -40,11 +49,3 @@ threaded, not fibered.
|
|
40
49
|
- Added appraisals for Rails 4, 5, and 6.
|
41
50
|
- Added TravisCI unit test pipeline.
|
42
51
|
- Added coverage reports via Coveralls.
|
43
|
-
|
44
|
-
[0.2.0]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.5..v0.2.0
|
45
|
-
[0.1.5]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.4..v0.1.5
|
46
|
-
[0.1.4]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.3..v0.1.4
|
47
|
-
[0.1.3]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.2..v0.1.3
|
48
|
-
[0.1.2]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.1..v0.1.2
|
49
|
-
[0.1.1]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.0..v0.1.1
|
50
|
-
[0.1.0]: https://github.com/Invoca/fibered_mysql2/tree/v0.1.0
|
data/Gemfile
CHANGED
@@ -6,11 +6,11 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
gem 'appraisal'
|
9
|
+
gem 'appraisal-matrix'
|
9
10
|
gem 'coveralls', require: false
|
10
11
|
gem 'mysql2', '~> 0.5'
|
11
|
-
gem 'nokogiri'
|
12
|
-
gem 'pry'
|
13
|
-
gem 'pry-byebug'
|
14
|
-
gem '
|
15
|
-
gem '
|
16
|
-
gem 'rspec', '~> 3.0'
|
12
|
+
gem 'nokogiri'
|
13
|
+
gem 'pry'
|
14
|
+
gem 'pry-byebug'
|
15
|
+
gem 'rake'
|
16
|
+
gem 'rspec'
|
data/Gemfile.lock
CHANGED
@@ -1,82 +1,91 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fibered_mysql2 (1.0.
|
4
|
+
fibered_mysql2 (1.0.1)
|
5
5
|
async
|
6
6
|
rails (>= 6, < 7)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (6.
|
12
|
-
actionpack (= 6.
|
11
|
+
actioncable (6.1.7.8)
|
12
|
+
actionpack (= 6.1.7.8)
|
13
|
+
activesupport (= 6.1.7.8)
|
13
14
|
nio4r (~> 2.0)
|
14
15
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.
|
16
|
-
actionpack (= 6.
|
17
|
-
activejob (= 6.
|
18
|
-
activerecord (= 6.
|
19
|
-
activestorage (= 6.
|
20
|
-
activesupport (= 6.
|
16
|
+
actionmailbox (6.1.7.8)
|
17
|
+
actionpack (= 6.1.7.8)
|
18
|
+
activejob (= 6.1.7.8)
|
19
|
+
activerecord (= 6.1.7.8)
|
20
|
+
activestorage (= 6.1.7.8)
|
21
|
+
activesupport (= 6.1.7.8)
|
21
22
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.
|
23
|
-
actionpack (= 6.
|
24
|
-
actionview (= 6.
|
25
|
-
activejob (= 6.
|
23
|
+
actionmailer (6.1.7.8)
|
24
|
+
actionpack (= 6.1.7.8)
|
25
|
+
actionview (= 6.1.7.8)
|
26
|
+
activejob (= 6.1.7.8)
|
27
|
+
activesupport (= 6.1.7.8)
|
26
28
|
mail (~> 2.5, >= 2.5.4)
|
27
29
|
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.
|
29
|
-
actionview (= 6.
|
30
|
-
activesupport (= 6.
|
31
|
-
rack (~> 2.0, >= 2.0.
|
30
|
+
actionpack (6.1.7.8)
|
31
|
+
actionview (= 6.1.7.8)
|
32
|
+
activesupport (= 6.1.7.8)
|
33
|
+
rack (~> 2.0, >= 2.0.9)
|
32
34
|
rack-test (>= 0.6.3)
|
33
35
|
rails-dom-testing (~> 2.0)
|
34
36
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.
|
36
|
-
actionpack (= 6.
|
37
|
-
activerecord (= 6.
|
38
|
-
activestorage (= 6.
|
39
|
-
activesupport (= 6.
|
37
|
+
actiontext (6.1.7.8)
|
38
|
+
actionpack (= 6.1.7.8)
|
39
|
+
activerecord (= 6.1.7.8)
|
40
|
+
activestorage (= 6.1.7.8)
|
41
|
+
activesupport (= 6.1.7.8)
|
40
42
|
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.
|
42
|
-
activesupport (= 6.
|
43
|
+
actionview (6.1.7.8)
|
44
|
+
activesupport (= 6.1.7.8)
|
43
45
|
builder (~> 3.1)
|
44
46
|
erubi (~> 1.4)
|
45
47
|
rails-dom-testing (~> 2.0)
|
46
48
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.
|
48
|
-
activesupport (= 6.
|
49
|
+
activejob (6.1.7.8)
|
50
|
+
activesupport (= 6.1.7.8)
|
49
51
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.
|
51
|
-
activesupport (= 6.
|
52
|
-
activerecord (6.
|
53
|
-
activemodel (= 6.
|
54
|
-
activesupport (= 6.
|
55
|
-
activestorage (6.
|
56
|
-
actionpack (= 6.
|
57
|
-
activejob (= 6.
|
58
|
-
activerecord (= 6.
|
52
|
+
activemodel (6.1.7.8)
|
53
|
+
activesupport (= 6.1.7.8)
|
54
|
+
activerecord (6.1.7.8)
|
55
|
+
activemodel (= 6.1.7.8)
|
56
|
+
activesupport (= 6.1.7.8)
|
57
|
+
activestorage (6.1.7.8)
|
58
|
+
actionpack (= 6.1.7.8)
|
59
|
+
activejob (= 6.1.7.8)
|
60
|
+
activerecord (= 6.1.7.8)
|
61
|
+
activesupport (= 6.1.7.8)
|
59
62
|
marcel (~> 1.0)
|
60
|
-
|
63
|
+
mini_mime (>= 1.1.0)
|
64
|
+
activesupport (6.1.7.8)
|
61
65
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
|
-
i18n (>=
|
63
|
-
minitest (
|
64
|
-
tzinfo (~>
|
65
|
-
zeitwerk (~> 2.
|
66
|
-
appraisal (2.
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
zeitwerk (~> 2.3)
|
70
|
+
appraisal (2.5.0)
|
67
71
|
bundler
|
68
72
|
rake
|
69
73
|
thor (>= 0.14.0)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
74
|
+
appraisal-matrix (0.3.0)
|
75
|
+
appraisal (~> 2.2)
|
76
|
+
async (2.15.3)
|
77
|
+
console (~> 1.26)
|
78
|
+
fiber-annotation
|
79
|
+
io-event (~> 1.6, >= 1.6.5)
|
80
|
+
bigdecimal (3.1.8)
|
81
|
+
builder (3.3.0)
|
75
82
|
byebug (11.1.3)
|
76
83
|
coderay (1.1.3)
|
77
|
-
concurrent-ruby (1.
|
78
|
-
console (1.
|
79
|
-
fiber-
|
84
|
+
concurrent-ruby (1.3.4)
|
85
|
+
console (1.27.0)
|
86
|
+
fiber-annotation
|
87
|
+
fiber-local (~> 1.1)
|
88
|
+
json
|
80
89
|
coveralls (0.8.23)
|
81
90
|
json (>= 1.8, < 3)
|
82
91
|
simplecov (~> 0.16.1)
|
@@ -84,18 +93,21 @@ GEM
|
|
84
93
|
thor (>= 0.19.4, < 2.0)
|
85
94
|
tins (~> 1.6)
|
86
95
|
crass (1.0.6)
|
87
|
-
date (3.3.
|
88
|
-
diff-lcs (1.5.
|
89
|
-
docile (1.4.
|
90
|
-
erubi (1.
|
91
|
-
fiber-
|
92
|
-
|
93
|
-
|
94
|
-
|
96
|
+
date (3.3.4)
|
97
|
+
diff-lcs (1.5.1)
|
98
|
+
docile (1.4.1)
|
99
|
+
erubi (1.13.0)
|
100
|
+
fiber-annotation (0.2.0)
|
101
|
+
fiber-local (1.1.0)
|
102
|
+
fiber-storage
|
103
|
+
fiber-storage (1.0.0)
|
104
|
+
globalid (1.2.1)
|
105
|
+
activesupport (>= 6.1)
|
106
|
+
i18n (1.14.5)
|
95
107
|
concurrent-ruby (~> 1.0)
|
96
|
-
io-event (1.
|
97
|
-
json (2.
|
98
|
-
loofah (2.
|
108
|
+
io-event (1.6.5)
|
109
|
+
json (2.7.2)
|
110
|
+
loofah (2.22.0)
|
99
111
|
crass (~> 1.0.2)
|
100
112
|
nokogiri (>= 1.12.0)
|
101
113
|
mail (2.8.1)
|
@@ -103,24 +115,24 @@ GEM
|
|
103
115
|
net-imap
|
104
116
|
net-pop
|
105
117
|
net-smtp
|
106
|
-
marcel (1.0.
|
107
|
-
method_source (1.
|
108
|
-
mini_mime (1.1.
|
109
|
-
mini_portile2 (2.
|
110
|
-
minitest (5.
|
111
|
-
mysql2 (0.5.
|
112
|
-
net-imap (0.
|
118
|
+
marcel (1.0.4)
|
119
|
+
method_source (1.1.0)
|
120
|
+
mini_mime (1.1.5)
|
121
|
+
mini_portile2 (2.8.7)
|
122
|
+
minitest (5.25.1)
|
123
|
+
mysql2 (0.5.6)
|
124
|
+
net-imap (0.4.14)
|
113
125
|
date
|
114
126
|
net-protocol
|
115
127
|
net-pop (0.1.2)
|
116
128
|
net-protocol
|
117
|
-
net-protocol (0.2.
|
129
|
+
net-protocol (0.2.2)
|
118
130
|
timeout
|
119
|
-
net-smtp (0.
|
131
|
+
net-smtp (0.5.0)
|
120
132
|
net-protocol
|
121
|
-
nio4r (2.
|
122
|
-
nokogiri (1.
|
123
|
-
mini_portile2 (~> 2.
|
133
|
+
nio4r (2.7.3)
|
134
|
+
nokogiri (1.16.7)
|
135
|
+
mini_portile2 (~> 2.8.2)
|
124
136
|
racc (~> 1.4)
|
125
137
|
pry (0.14.2)
|
126
138
|
coderay (~> 1.1)
|
@@ -128,92 +140,93 @@ GEM
|
|
128
140
|
pry-byebug (3.10.1)
|
129
141
|
byebug (~> 11.0)
|
130
142
|
pry (>= 0.13, < 0.15)
|
131
|
-
racc (1.
|
132
|
-
rack (2.2.
|
143
|
+
racc (1.8.1)
|
144
|
+
rack (2.2.9)
|
133
145
|
rack-test (2.1.0)
|
134
146
|
rack (>= 1.3)
|
135
|
-
rails (6.
|
136
|
-
actioncable (= 6.
|
137
|
-
actionmailbox (= 6.
|
138
|
-
actionmailer (= 6.
|
139
|
-
actionpack (= 6.
|
140
|
-
actiontext (= 6.
|
141
|
-
actionview (= 6.
|
142
|
-
activejob (= 6.
|
143
|
-
activemodel (= 6.
|
144
|
-
activerecord (= 6.
|
145
|
-
activestorage (= 6.
|
146
|
-
activesupport (= 6.
|
147
|
-
bundler (>= 1.
|
148
|
-
railties (= 6.
|
147
|
+
rails (6.1.7.8)
|
148
|
+
actioncable (= 6.1.7.8)
|
149
|
+
actionmailbox (= 6.1.7.8)
|
150
|
+
actionmailer (= 6.1.7.8)
|
151
|
+
actionpack (= 6.1.7.8)
|
152
|
+
actiontext (= 6.1.7.8)
|
153
|
+
actionview (= 6.1.7.8)
|
154
|
+
activejob (= 6.1.7.8)
|
155
|
+
activemodel (= 6.1.7.8)
|
156
|
+
activerecord (= 6.1.7.8)
|
157
|
+
activestorage (= 6.1.7.8)
|
158
|
+
activesupport (= 6.1.7.8)
|
159
|
+
bundler (>= 1.15.0)
|
160
|
+
railties (= 6.1.7.8)
|
149
161
|
sprockets-rails (>= 2.0.0)
|
150
|
-
rails-dom-testing (2.0
|
151
|
-
activesupport (>=
|
162
|
+
rails-dom-testing (2.2.0)
|
163
|
+
activesupport (>= 5.0.0)
|
164
|
+
minitest
|
152
165
|
nokogiri (>= 1.6)
|
153
|
-
rails-html-sanitizer (1.
|
154
|
-
loofah (~> 2.
|
155
|
-
|
156
|
-
|
157
|
-
|
166
|
+
rails-html-sanitizer (1.6.0)
|
167
|
+
loofah (~> 2.21)
|
168
|
+
nokogiri (~> 1.14)
|
169
|
+
railties (6.1.7.8)
|
170
|
+
actionpack (= 6.1.7.8)
|
171
|
+
activesupport (= 6.1.7.8)
|
158
172
|
method_source
|
159
|
-
rake (>=
|
160
|
-
thor (
|
161
|
-
rake (13.
|
162
|
-
rspec (3.
|
163
|
-
rspec-core (~> 3.
|
164
|
-
rspec-expectations (~> 3.
|
165
|
-
rspec-mocks (~> 3.
|
166
|
-
rspec-core (3.
|
167
|
-
rspec-support (~> 3.
|
168
|
-
rspec-expectations (3.
|
173
|
+
rake (>= 12.2)
|
174
|
+
thor (~> 1.0)
|
175
|
+
rake (13.2.1)
|
176
|
+
rspec (3.13.0)
|
177
|
+
rspec-core (~> 3.13.0)
|
178
|
+
rspec-expectations (~> 3.13.0)
|
179
|
+
rspec-mocks (~> 3.13.0)
|
180
|
+
rspec-core (3.13.0)
|
181
|
+
rspec-support (~> 3.13.0)
|
182
|
+
rspec-expectations (3.13.1)
|
169
183
|
diff-lcs (>= 1.2.0, < 2.0)
|
170
|
-
rspec-support (~> 3.
|
171
|
-
rspec-mocks (3.
|
184
|
+
rspec-support (~> 3.13.0)
|
185
|
+
rspec-mocks (3.13.1)
|
172
186
|
diff-lcs (>= 1.2.0, < 2.0)
|
173
|
-
rspec-support (~> 3.
|
174
|
-
rspec-support (3.
|
187
|
+
rspec-support (~> 3.13.0)
|
188
|
+
rspec-support (3.13.1)
|
175
189
|
simplecov (0.16.1)
|
176
190
|
docile (~> 1.1)
|
177
191
|
json (>= 1.8, < 3)
|
178
192
|
simplecov-html (~> 0.10.0)
|
179
193
|
simplecov-html (0.10.2)
|
180
|
-
sprockets (4.2.
|
194
|
+
sprockets (4.2.1)
|
181
195
|
concurrent-ruby (~> 1.0)
|
182
196
|
rack (>= 2.2.4, < 4)
|
183
|
-
sprockets-rails (3.
|
184
|
-
actionpack (>=
|
185
|
-
activesupport (>=
|
197
|
+
sprockets-rails (3.5.2)
|
198
|
+
actionpack (>= 6.1)
|
199
|
+
activesupport (>= 6.1)
|
186
200
|
sprockets (>= 3.0.0)
|
187
201
|
sync (0.5.0)
|
188
|
-
term-ansicolor (1.
|
202
|
+
term-ansicolor (1.11.2)
|
189
203
|
tins (~> 1.0)
|
190
|
-
thor (1.
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
tins (1.32.1)
|
204
|
+
thor (1.3.1)
|
205
|
+
timeout (0.4.1)
|
206
|
+
tins (1.33.0)
|
207
|
+
bigdecimal
|
195
208
|
sync
|
196
|
-
tzinfo (
|
197
|
-
|
198
|
-
websocket-driver (0.7.
|
209
|
+
tzinfo (2.0.6)
|
210
|
+
concurrent-ruby (~> 1.0)
|
211
|
+
websocket-driver (0.7.6)
|
199
212
|
websocket-extensions (>= 0.1.0)
|
200
213
|
websocket-extensions (0.1.5)
|
201
|
-
zeitwerk (2.6.
|
214
|
+
zeitwerk (2.6.17)
|
202
215
|
|
203
216
|
PLATFORMS
|
204
217
|
ruby
|
205
218
|
|
206
219
|
DEPENDENCIES
|
207
220
|
appraisal
|
221
|
+
appraisal-matrix
|
208
222
|
coveralls
|
209
223
|
fibered_mysql2!
|
210
224
|
mysql2 (~> 0.5)
|
211
|
-
nokogiri
|
212
|
-
pry
|
213
|
-
pry-byebug
|
214
|
-
|
215
|
-
|
216
|
-
rspec (~> 3.0)
|
225
|
+
nokogiri
|
226
|
+
pry
|
227
|
+
pry-byebug
|
228
|
+
rake
|
229
|
+
rspec
|
217
230
|
|
218
231
|
BUNDLED WITH
|
219
232
|
2.2.29
|
data/catalog-info.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
apiVersion: backstage.io/v1alpha1
|
2
|
+
kind: Component
|
3
|
+
metadata:
|
4
|
+
name: fibered_mysql2
|
5
|
+
title: FiberedMysql2 gem
|
6
|
+
annotations:
|
7
|
+
github.com/project-slug: Invoca/fibered_mysql2
|
8
|
+
endoflife.date/products: ruby@3.1
|
9
|
+
tags:
|
10
|
+
- ruby
|
11
|
+
- open-source
|
12
|
+
spec:
|
13
|
+
type: library
|
14
|
+
lifecycle: production
|
15
|
+
owner: octothorpe
|
@@ -3,13 +3,14 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal"
|
6
|
+
gem "appraisal-matrix"
|
6
7
|
gem "coveralls", require: false
|
7
8
|
gem "mysql2", "~> 0.5"
|
8
|
-
gem "nokogiri"
|
9
|
-
gem "pry"
|
10
|
-
gem "pry-byebug"
|
9
|
+
gem "nokogiri"
|
10
|
+
gem "pry"
|
11
|
+
gem "pry-byebug"
|
12
|
+
gem "rake"
|
13
|
+
gem "rspec"
|
11
14
|
gem "rails", "~> 6.0.0"
|
12
|
-
gem "rake", "~> 13.0"
|
13
|
-
gem "rspec", "~> 3.0"
|
14
15
|
|
15
16
|
gemspec path: "../"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "appraisal-matrix"
|
7
|
+
gem "coveralls", require: false
|
8
|
+
gem "mysql2", "~> 0.5"
|
9
|
+
gem "nokogiri"
|
10
|
+
gem "pry"
|
11
|
+
gem "pry-byebug"
|
12
|
+
gem "rake"
|
13
|
+
gem "rspec"
|
14
|
+
gem "rails", "~> 6.1.0"
|
15
|
+
|
16
|
+
gemspec path: "../"
|
@@ -30,8 +30,12 @@ module FiberedMysql2
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def initialize(connection_spec, *args, **keyword_args)
|
33
|
-
|
34
|
-
|
33
|
+
if ActiveRecord.gem_version < "6.1"
|
34
|
+
connection_spec.config[:reaping_frequency] and raise "reaping_frequency is not supported (the ActiveRecord Reaper is thread-based)"
|
35
|
+
connection_spec.config[:reaping_frequency] = nil # starting in Rails 5, this defaults to 60 if not explicitly set
|
36
|
+
elsif connection_spec.db_config.reaping_frequency
|
37
|
+
connection_spec.db_config.reaping_frequency > 0 and raise "reaping_frequency is not supported (the ActiveRecord Reaper is thread-based)"
|
38
|
+
end
|
35
39
|
|
36
40
|
super(connection_spec, *args, **keyword_args)
|
37
41
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FiberedMysql2
|
4
|
+
module HashConfigOverride
|
5
|
+
# Override the reaping_frequency method to return nil so that the connection pool does not reap connections when in fibered mode.
|
6
|
+
def reaping_frequency
|
7
|
+
nil
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
if ActiveRecord.gem_version >= "6.1"
|
13
|
+
ActiveRecord::DatabaseConfigurations::HashConfig.prepend(FiberedMysql2::HashConfigOverride)
|
14
|
+
end
|
data/lib/fibered_mysql2.rb
CHANGED
@@ -5,4 +5,5 @@ require 'async'
|
|
5
5
|
require_relative 'active_record/connection_adapters/fibered_mysql2_adapter'
|
6
6
|
require_relative 'fibered_mysql2/fibered_database_connection_pool'
|
7
7
|
require_relative 'fibered_mysql2/fibered_mysql2_connection_factory'
|
8
|
+
require_relative 'fibered_mysql2/hash_config_override'
|
8
9
|
require_relative 'fibered_mysql2/version'
|
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: 1.0.
|
4
|
+
version: 1.0.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:
|
11
|
+
date: 2024-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -65,12 +65,16 @@ files:
|
|
65
65
|
- Rakefile
|
66
66
|
- bin/console
|
67
67
|
- bin/setup
|
68
|
+
- catalog-info.yaml
|
68
69
|
- fibered_mysql2.gemspec
|
69
|
-
- gemfiles/
|
70
|
+
- gemfiles/.bundle/config
|
71
|
+
- gemfiles/rails_6_0.gemfile
|
72
|
+
- gemfiles/rails_6_1.gemfile
|
70
73
|
- lib/active_record/connection_adapters/fibered_mysql2_adapter.rb
|
71
74
|
- lib/fibered_mysql2.rb
|
72
75
|
- lib/fibered_mysql2/fibered_database_connection_pool.rb
|
73
76
|
- lib/fibered_mysql2/fibered_mysql2_connection_factory.rb
|
77
|
+
- lib/fibered_mysql2/hash_config_override.rb
|
74
78
|
- lib/fibered_mysql2/version.rb
|
75
79
|
homepage: https://github.com/Invoca/fibered_mysql2
|
76
80
|
licenses: []
|
@@ -88,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
92
|
version: '0'
|
89
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
94
|
requirements:
|
91
|
-
- - "
|
95
|
+
- - ">="
|
92
96
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
97
|
+
version: '0'
|
94
98
|
requirements: []
|
95
99
|
rubygems_version: 3.4.6
|
96
100
|
signing_key:
|