fibered_mysql2 1.0.1 → 1.1.0

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: 06e557a5d00028db8da31e8223fd964d677e127d3bee250f99f9dcc63050da11
4
- data.tar.gz: 0c5cd0a295a99df37b18d2b1320c62df3f83277613140a1048d18decb093e411
3
+ metadata.gz: 679fc8c0aeb37b8b8c5a44ba327cfef4cb5a5a5af5fcfaf12f850cddfa13e40c
4
+ data.tar.gz: b28cdeb0531f19367f69a26a5ef542cbdfe70d3a13876f8d4a0da0adb5757be0
5
5
  SHA512:
6
- metadata.gz: ff1b23498c12622a05eee7926f48369a4f2f680507a71db167521d393d6a09ac8bd6c167beb4884d19fa6a4613f68208cbf38453ebc880dfb6750036e91d1583
7
- data.tar.gz: 4b4a665ca475b5b28745d6085d8e3729fc3aad2a1f61e1cbbe13b79b7f1cdfd87fa24436cf1b9f62e2f6c6e42719f31082880050deeb0cb0b28114ab196d7d6c
6
+ metadata.gz: bc63bd7415ff22aa3e971744693229a3057040d0fc87f4dfd7b31cbb5b003e7303eee16e408141bf57ce208b1cf520d34c4d7f1ad993feb5e7d84865897f1199
7
+ data.tar.gz: f437accad4bb71683257fe97d117c4c8353eac674a48cc02af8fc2b86348e369d6a36062f971c119365999e1c07dd8f5789f6389e37bcc86ed4747c71e8a567e
@@ -13,6 +13,7 @@ jobs:
13
13
  - Gemfile
14
14
  - gemfiles/rails_6_0.gemfile
15
15
  - gemfiles/rails_6_1.gemfile
16
+ - gemfiles/rails_7_0.gemfile
16
17
  env:
17
18
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
18
19
  steps:
data/Appraisals CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "appraisal/matrix"
4
4
 
5
- appraisal_matrix(rails: "~> 6.0")
5
+ appraisal_matrix(rails: [">= 6.0", "< 7.1"])
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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.1.0] - 2024-10-23
8
+ ### Added
9
+ - Support for Rails 7.0
10
+
7
11
  ## [1.0.1] - 2024-08-19
8
12
  ### Fixed
9
13
  - Fixed issues in Rails 6.1+
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fibered_mysql2 (1.0.1)
4
+ fibered_mysql2 (1.1.0)
5
5
  async
6
- rails (>= 6, < 7)
6
+ rails (>= 6, < 7.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -73,7 +73,7 @@ GEM
73
73
  thor (>= 0.14.0)
74
74
  appraisal-matrix (0.3.0)
75
75
  appraisal (~> 2.2)
76
- async (2.15.3)
76
+ async (2.17.0)
77
77
  console (~> 1.26)
78
78
  fiber-annotation
79
79
  io-event (~> 1.6, >= 1.6.5)
@@ -103,9 +103,9 @@ GEM
103
103
  fiber-storage (1.0.0)
104
104
  globalid (1.2.1)
105
105
  activesupport (>= 6.1)
106
- i18n (1.14.5)
106
+ i18n (1.14.6)
107
107
  concurrent-ruby (~> 1.0)
108
- io-event (1.6.5)
108
+ io-event (1.7.3)
109
109
  json (2.7.2)
110
110
  loofah (2.22.0)
111
111
  crass (~> 1.0.2)
@@ -121,7 +121,7 @@ GEM
121
121
  mini_portile2 (2.8.7)
122
122
  minitest (5.25.1)
123
123
  mysql2 (0.5.6)
124
- net-imap (0.4.14)
124
+ net-imap (0.5.0)
125
125
  date
126
126
  net-protocol
127
127
  net-pop (0.1.2)
@@ -141,7 +141,7 @@ GEM
141
141
  byebug (~> 11.0)
142
142
  pry (>= 0.13, < 0.15)
143
143
  racc (1.8.1)
144
- rack (2.2.9)
144
+ rack (2.2.10)
145
145
  rack-test (2.1.0)
146
146
  rack (>= 1.3)
147
147
  rails (6.1.7.8)
@@ -211,7 +211,7 @@ GEM
211
211
  websocket-driver (0.7.6)
212
212
  websocket-extensions (>= 0.1.0)
213
213
  websocket-extensions (0.1.5)
214
- zeitwerk (2.6.17)
214
+ zeitwerk (2.6.18)
215
215
 
216
216
  PLATFORMS
217
217
  ruby
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  # FiberedMysql2
4
4
 
5
- FiberedMysql2 adds Fiber support to `ActiveRecord::ConnectionAdapters::Mysql2Adapter` for Rails 6.
6
- This is a stop-gap until Rails 7, which adds `isolation_level: :fiber` to `ActiveRecord`.
5
+ FiberedMysql2 adds Fiber support to `ActiveRecord::ConnectionAdapters::Mysql2Adapter` for Rails versions < `7.1`.
6
+ This is a stop-gap until Rails 7.1, which adds `isolation_level: :fiber` to `ActiveRecord` connection pooling.
7
7
 
8
8
  ## Installation
9
9
 
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_dependency 'async'
33
- spec.add_dependency 'rails', '>= 6', '< 7'
33
+ spec.add_dependency 'rails', '>= 6', '< 7.1'
34
34
  end
@@ -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", "~> 7.0.0"
15
+
16
+ gemspec path: "../"
@@ -61,8 +61,6 @@ module FiberedMysql2
61
61
  end
62
62
 
63
63
  class FiberedMysql2Adapter < ::ActiveRecord::ConnectionAdapters::Mysql2Adapter
64
- ActiveRecord::VERSION::MAJOR == 6 or raise ArgumentError, "unexpected Rails version #{ActiveRecord::VERSION::MAJOR}"
65
-
66
64
  include FiberedMysql2Adapter_6
67
65
 
68
66
  def initialize(*args)
@@ -4,8 +4,6 @@
4
4
 
5
5
  module FiberedMysql2
6
6
  module FiberedDatabaseConnectionPool
7
- ActiveRecord::VERSION::MAJOR == 6 or raise ArgumentError, "unexpected Rails version #{ActiveRecord::VERSION::MAJOR}"
8
-
9
7
  def cached_connections
10
8
  @thread_cached_conns
11
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FiberedMysql2
4
- VERSION = "1.0.1"
4
+ VERSION = "1.1.0"
5
5
  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: 1.0.1
4
+ version: 1.1.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: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '6'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '7'
36
+ version: '7.1'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '6'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '7'
46
+ version: '7.1'
47
47
  description:
48
48
  email:
49
49
  - development@invoca.com
@@ -70,6 +70,7 @@ files:
70
70
  - gemfiles/.bundle/config
71
71
  - gemfiles/rails_6_0.gemfile
72
72
  - gemfiles/rails_6_1.gemfile
73
+ - gemfiles/rails_7_0.gemfile
73
74
  - lib/active_record/connection_adapters/fibered_mysql2_adapter.rb
74
75
  - lib/fibered_mysql2.rb
75
76
  - lib/fibered_mysql2/fibered_database_connection_pool.rb