activerecord-mysql-enum 2.3.0 → 2.4.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: 5a31298ed5c99c46cc43f7f7505037b01aae924b9ee711327d1f48c23d00439d
4
- data.tar.gz: a2c86f1f9bdb2e0407f7aec6c94cc187020bac9b14e10568a83b0fd1c9103895
3
+ metadata.gz: 0ea73e1ce3cabbf31afa0a8f5547bce76e3817031de8cbf88ccf11ede9ad0061
4
+ data.tar.gz: 86907a0653360d542efaf268e1668ae3fc20df480ba305d4a7b59953048a0917
5
5
  SHA512:
6
- metadata.gz: b9e47756714d2672b42d981893d8e43b1b9c1b85c7d4ede2c932b3741fc13250c47ab387fcc21beee684bd68c7d8a64c69c7afa2ed1e41f92e11e1aac42623c0
7
- data.tar.gz: 6fff0d2528b54ab4e683b1bca7e754667c2b2695098ff9ec4db1e6a737e5103b09d93851229af0a1cfdc757f48d4ecdbe3a6075f6c595991c2aa01d6e9a2b5d3
6
+ metadata.gz: d49706dea625831768adb4556df891b7c9f6812554025a700e89676142234b8c8ff21fe8126688375b7de5d7735d3491d97f4f4b22b21dedc2e46884b8e8e031
7
+ data.tar.gz: 1d4064ffd6ccccef3177b2c5a22a07e75ef766cef39e0fbff3fc0de7c54630cbcd6be57f707f924024086bfececba437681d81cd90b49468246f87878207efbb
@@ -0,0 +1 @@
1
+ * @Invoca/octothorpe
@@ -19,26 +19,13 @@ jobs:
19
19
  strategy:
20
20
  fail-fast: false
21
21
  matrix:
22
- ruby: [2.5.8, 2.6.5, 2.7, '3.0', 3.1]
22
+ ruby: ['3.0', 3.1, 3.2, 3.3]
23
23
  gemfile:
24
24
  - Gemfile
25
- - gemfiles/rails_5.gemfile
26
25
  - gemfiles/rails_6.gemfile
27
26
  - gemfiles/rails_6_1.gemfile
28
27
  - gemfiles/rails_7_0.gemfile
29
- exclude:
30
- - ruby: '3.0'
31
- gemfile: Gemfile
32
- - ruby: 3.1
33
- gemfile: Gemfile
34
- - ruby: '3.0'
35
- gemfile: gemfiles/rails_5.gemfile
36
- - ruby: 3.1
37
- gemfile: gemfiles/rails_5.gemfile
38
- - ruby: 2.5.8
39
- gemfile: gemfiles/rails_7_0.gemfile
40
- - ruby: 2.6.5
41
- gemfile: gemfiles/rails_7_0.gemfile
28
+ - gemfiles/rails_7_1.gemfile
42
29
  env:
43
30
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
44
31
  DATABASE_MYSQL_HOST: 127.0.0.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.5
1
+ 3.2.4
data/Appraisals CHANGED
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-5' do
4
- gem 'rails', '~> 5.2'
5
- gem 'mysql2', '~> 0.4'
6
- end
7
-
8
3
  appraise 'rails-6' do
9
4
  gem 'rails', '~> 6.0.0'
10
5
  gem 'mysql2', '~> 0.5'
@@ -22,3 +17,9 @@ appraise 'rails-7-0' do
22
17
  gem 'mysql2', '~> 0.5'
23
18
  gem "net-smtp", require: false
24
19
  end
20
+
21
+ appraise 'rails-7-1' do
22
+ gem 'rails', '~> 7.0.0'
23
+ gem 'mysql2', '~> 0.5'
24
+ gem "net-smtp", require: false
25
+ end
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
+ ## [2.4.0] - Unreleased
8
+ ### Added
9
+ - Added support for Rails 7.1
10
+
7
11
  ## [2.3.0] - 2022-09-14
8
12
  ### Added
9
13
  - Added the ability for non-rails applications to use the gem by using `initialize!` in the application's bootstrapping code after ActiveRecord has been configured.
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ gem 'appraisal'
9
9
  gem 'coveralls', require: false
10
10
  gem 'pry'
11
11
  gem 'pry-byebug'
12
- gem 'rake', '~> 13.0'
13
- gem 'rails', '~> 5.2'
14
- gem 'rspec', '~> 3.11'
15
- gem 'rspec-rails', '~> 5.0'
12
+ gem 'rake'
13
+ gem 'rails'
14
+ gem 'rspec'
15
+ gem 'rspec-rails'
data/Gemfile.lock CHANGED
@@ -1,63 +1,98 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-mysql-enum (2.3.0)
5
- activerecord (>= 5.2, < 7.1)
6
- mysql2 (>= 0.4.5, < 0.6)
4
+ activerecord-mysql-enum (2.4.0.pre.1)
5
+ activerecord (>= 5.2)
6
+ mysql2 (>= 0.4.5)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.6)
12
- actionpack (= 5.2.6)
11
+ actioncable (7.1.3.2)
12
+ actionpack (= 7.1.3.2)
13
+ activesupport (= 7.1.3.2)
13
14
  nio4r (~> 2.0)
14
15
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.6)
16
- actionpack (= 5.2.6)
17
- actionview (= 5.2.6)
18
- activejob (= 5.2.6)
16
+ zeitwerk (~> 2.6)
17
+ actionmailbox (7.1.3.2)
18
+ actionpack (= 7.1.3.2)
19
+ activejob (= 7.1.3.2)
20
+ activerecord (= 7.1.3.2)
21
+ activestorage (= 7.1.3.2)
22
+ activesupport (= 7.1.3.2)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.1.3.2)
28
+ actionpack (= 7.1.3.2)
29
+ actionview (= 7.1.3.2)
30
+ activejob (= 7.1.3.2)
31
+ activesupport (= 7.1.3.2)
19
32
  mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.2.6)
22
- actionview (= 5.2.6)
23
- activesupport (= 5.2.6)
24
- rack (~> 2.0, >= 2.0.8)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.2)
37
+ actionpack (7.1.3.2)
38
+ actionview (= 7.1.3.2)
39
+ activesupport (= 7.1.3.2)
40
+ nokogiri (>= 1.8.5)
41
+ racc
42
+ rack (>= 2.2.4)
43
+ rack-session (>= 1.0.1)
25
44
  rack-test (>= 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.6)
29
- activesupport (= 5.2.6)
45
+ rails-dom-testing (~> 2.2)
46
+ rails-html-sanitizer (~> 1.6)
47
+ actiontext (7.1.3.2)
48
+ actionpack (= 7.1.3.2)
49
+ activerecord (= 7.1.3.2)
50
+ activestorage (= 7.1.3.2)
51
+ activesupport (= 7.1.3.2)
52
+ globalid (>= 0.6.0)
53
+ nokogiri (>= 1.8.5)
54
+ actionview (7.1.3.2)
55
+ activesupport (= 7.1.3.2)
30
56
  builder (~> 3.1)
31
- erubi (~> 1.4)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.6)
35
- activesupport (= 5.2.6)
57
+ erubi (~> 1.11)
58
+ rails-dom-testing (~> 2.2)
59
+ rails-html-sanitizer (~> 1.6)
60
+ activejob (7.1.3.2)
61
+ activesupport (= 7.1.3.2)
36
62
  globalid (>= 0.3.6)
37
- activemodel (5.2.6)
38
- activesupport (= 5.2.6)
39
- activerecord (5.2.6)
40
- activemodel (= 5.2.6)
41
- activesupport (= 5.2.6)
42
- arel (>= 9.0)
43
- activestorage (5.2.6)
44
- actionpack (= 5.2.6)
45
- activerecord (= 5.2.6)
46
- marcel (~> 1.0.0)
47
- activesupport (5.2.6)
63
+ activemodel (7.1.3.2)
64
+ activesupport (= 7.1.3.2)
65
+ activerecord (7.1.3.2)
66
+ activemodel (= 7.1.3.2)
67
+ activesupport (= 7.1.3.2)
68
+ timeout (>= 0.4.0)
69
+ activestorage (7.1.3.2)
70
+ actionpack (= 7.1.3.2)
71
+ activejob (= 7.1.3.2)
72
+ activerecord (= 7.1.3.2)
73
+ activesupport (= 7.1.3.2)
74
+ marcel (~> 1.0)
75
+ activesupport (7.1.3.2)
76
+ base64
77
+ bigdecimal
48
78
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
- i18n (>= 0.7, < 2)
50
- minitest (~> 5.1)
51
- tzinfo (~> 1.1)
52
- appraisal (2.4.1)
79
+ connection_pool (>= 2.2.5)
80
+ drb
81
+ i18n (>= 1.6, < 2)
82
+ minitest (>= 5.1)
83
+ mutex_m
84
+ tzinfo (~> 2.0)
85
+ appraisal (2.5.0)
53
86
  bundler
54
87
  rake
55
88
  thor (>= 0.14.0)
56
- arel (9.0.0)
89
+ base64 (0.2.0)
90
+ bigdecimal (3.1.8)
57
91
  builder (3.2.4)
58
92
  byebug (11.1.3)
59
93
  coderay (1.1.3)
60
- concurrent-ruby (1.1.9)
94
+ concurrent-ruby (1.2.3)
95
+ connection_pool (2.4.1)
61
96
  coveralls (0.8.23)
62
97
  json (>= 1.8, < 3)
63
98
  simplecov (~> 0.16.1)
@@ -65,109 +100,141 @@ GEM
65
100
  thor (>= 0.19.4, < 2.0)
66
101
  tins (~> 1.6)
67
102
  crass (1.0.6)
68
- diff-lcs (1.5.0)
103
+ date (3.3.4)
104
+ diff-lcs (1.5.1)
69
105
  docile (1.4.0)
70
- erubi (1.10.0)
71
- globalid (0.5.2)
72
- activesupport (>= 5.0)
73
- i18n (1.8.10)
106
+ drb (2.2.1)
107
+ erubi (1.12.0)
108
+ globalid (1.2.1)
109
+ activesupport (>= 6.1)
110
+ i18n (1.14.5)
74
111
  concurrent-ruby (~> 1.0)
75
- json (2.5.1)
76
- loofah (2.11.0)
112
+ io-console (0.7.2)
113
+ irb (1.13.1)
114
+ rdoc (>= 4.0.0)
115
+ reline (>= 0.4.2)
116
+ json (2.7.2)
117
+ loofah (2.22.0)
77
118
  crass (~> 1.0.2)
78
- nokogiri (>= 1.5.9)
79
- mail (2.7.1)
119
+ nokogiri (>= 1.12.0)
120
+ mail (2.8.1)
80
121
  mini_mime (>= 0.1.1)
81
- marcel (1.0.1)
82
- method_source (1.0.0)
83
- mini_mime (1.1.0)
84
- mini_portile2 (2.6.1)
85
- minitest (5.14.4)
86
- mysql2 (0.5.4)
87
- nio4r (2.5.8)
88
- nokogiri (1.12.2)
89
- mini_portile2 (~> 2.6.1)
122
+ net-imap
123
+ net-pop
124
+ net-smtp
125
+ marcel (1.0.4)
126
+ method_source (1.1.0)
127
+ mini_mime (1.1.5)
128
+ mini_portile2 (2.8.6)
129
+ minitest (5.22.3)
130
+ mutex_m (0.2.0)
131
+ mysql2 (0.5.6)
132
+ net-imap (0.4.11)
133
+ date
134
+ net-protocol
135
+ net-pop (0.1.2)
136
+ net-protocol
137
+ net-protocol (0.2.2)
138
+ timeout
139
+ net-smtp (0.5.0)
140
+ net-protocol
141
+ nio4r (2.7.3)
142
+ nokogiri (1.16.4)
143
+ mini_portile2 (~> 2.8.2)
90
144
  racc (~> 1.4)
91
- pry (0.14.1)
145
+ pry (0.14.2)
92
146
  coderay (~> 1.1)
93
147
  method_source (~> 1.0)
94
- pry-byebug (3.8.0)
148
+ pry-byebug (3.10.1)
95
149
  byebug (~> 11.0)
96
- pry (~> 0.10)
97
- racc (1.5.2)
98
- rack (2.2.3)
99
- rack-test (1.1.0)
100
- rack (>= 1.0, < 3)
101
- rails (5.2.6)
102
- actioncable (= 5.2.6)
103
- actionmailer (= 5.2.6)
104
- actionpack (= 5.2.6)
105
- actionview (= 5.2.6)
106
- activejob (= 5.2.6)
107
- activemodel (= 5.2.6)
108
- activerecord (= 5.2.6)
109
- activestorage (= 5.2.6)
110
- activesupport (= 5.2.6)
111
- bundler (>= 1.3.0)
112
- railties (= 5.2.6)
113
- sprockets-rails (>= 2.0.0)
114
- rails-dom-testing (2.0.3)
115
- activesupport (>= 4.2.0)
150
+ pry (>= 0.13, < 0.15)
151
+ psych (5.1.2)
152
+ stringio
153
+ racc (1.7.3)
154
+ rack (3.0.11)
155
+ rack-session (2.0.0)
156
+ rack (>= 3.0.0)
157
+ rack-test (2.1.0)
158
+ rack (>= 1.3)
159
+ rackup (2.1.0)
160
+ rack (>= 3)
161
+ webrick (~> 1.8)
162
+ rails (7.1.3.2)
163
+ actioncable (= 7.1.3.2)
164
+ actionmailbox (= 7.1.3.2)
165
+ actionmailer (= 7.1.3.2)
166
+ actionpack (= 7.1.3.2)
167
+ actiontext (= 7.1.3.2)
168
+ actionview (= 7.1.3.2)
169
+ activejob (= 7.1.3.2)
170
+ activemodel (= 7.1.3.2)
171
+ activerecord (= 7.1.3.2)
172
+ activestorage (= 7.1.3.2)
173
+ activesupport (= 7.1.3.2)
174
+ bundler (>= 1.15.0)
175
+ railties (= 7.1.3.2)
176
+ rails-dom-testing (2.2.0)
177
+ activesupport (>= 5.0.0)
178
+ minitest
116
179
  nokogiri (>= 1.6)
117
- rails-html-sanitizer (1.3.0)
118
- loofah (~> 2.3)
119
- railties (5.2.6)
120
- actionpack (= 5.2.6)
121
- activesupport (= 5.2.6)
122
- method_source
123
- rake (>= 0.8.7)
124
- thor (>= 0.19.0, < 2.0)
125
- rake (13.0.6)
126
- rspec (3.11.0)
127
- rspec-core (~> 3.11.0)
128
- rspec-expectations (~> 3.11.0)
129
- rspec-mocks (~> 3.11.0)
130
- rspec-core (3.11.0)
131
- rspec-support (~> 3.11.0)
132
- rspec-expectations (3.11.0)
180
+ rails-html-sanitizer (1.6.0)
181
+ loofah (~> 2.21)
182
+ nokogiri (~> 1.14)
183
+ railties (7.1.3.2)
184
+ actionpack (= 7.1.3.2)
185
+ activesupport (= 7.1.3.2)
186
+ irb
187
+ rackup (>= 1.0.0)
188
+ rake (>= 12.2)
189
+ thor (~> 1.0, >= 1.2.2)
190
+ zeitwerk (~> 2.6)
191
+ rake (13.2.1)
192
+ rdoc (6.6.3.1)
193
+ psych (>= 4.0.0)
194
+ reline (0.5.6)
195
+ io-console (~> 0.5)
196
+ rspec (3.13.0)
197
+ rspec-core (~> 3.13.0)
198
+ rspec-expectations (~> 3.13.0)
199
+ rspec-mocks (~> 3.13.0)
200
+ rspec-core (3.13.0)
201
+ rspec-support (~> 3.13.0)
202
+ rspec-expectations (3.13.0)
133
203
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.11.0)
135
- rspec-mocks (3.11.0)
204
+ rspec-support (~> 3.13.0)
205
+ rspec-mocks (3.13.1)
136
206
  diff-lcs (>= 1.2.0, < 2.0)
137
- rspec-support (~> 3.11.0)
138
- rspec-rails (5.1.1)
139
- actionpack (>= 5.2)
140
- activesupport (>= 5.2)
141
- railties (>= 5.2)
142
- rspec-core (~> 3.10)
143
- rspec-expectations (~> 3.10)
144
- rspec-mocks (~> 3.10)
145
- rspec-support (~> 3.10)
146
- rspec-support (3.11.0)
207
+ rspec-support (~> 3.13.0)
208
+ rspec-rails (6.1.2)
209
+ actionpack (>= 6.1)
210
+ activesupport (>= 6.1)
211
+ railties (>= 6.1)
212
+ rspec-core (~> 3.13)
213
+ rspec-expectations (~> 3.13)
214
+ rspec-mocks (~> 3.13)
215
+ rspec-support (~> 3.13)
216
+ rspec-support (3.13.1)
147
217
  simplecov (0.16.1)
148
218
  docile (~> 1.1)
149
219
  json (>= 1.8, < 3)
150
220
  simplecov-html (~> 0.10.0)
151
221
  simplecov-html (0.10.2)
152
- sprockets (4.0.2)
153
- concurrent-ruby (~> 1.0)
154
- rack (> 1, < 3)
155
- sprockets-rails (3.2.2)
156
- actionpack (>= 4.0)
157
- activesupport (>= 4.0)
158
- sprockets (>= 3.0.0)
222
+ stringio (3.1.0)
159
223
  sync (0.5.0)
160
- term-ansicolor (1.7.1)
224
+ term-ansicolor (1.8.0)
161
225
  tins (~> 1.0)
162
- thor (1.1.0)
163
- thread_safe (0.3.6)
164
- tins (1.29.1)
226
+ thor (1.3.1)
227
+ timeout (0.4.1)
228
+ tins (1.33.0)
229
+ bigdecimal
165
230
  sync
166
- tzinfo (1.2.9)
167
- thread_safe (~> 0.1)
168
- websocket-driver (0.7.5)
231
+ tzinfo (2.0.6)
232
+ concurrent-ruby (~> 1.0)
233
+ webrick (1.8.1)
234
+ websocket-driver (0.7.6)
169
235
  websocket-extensions (>= 0.1.0)
170
236
  websocket-extensions (0.1.5)
237
+ zeitwerk (2.6.13)
171
238
 
172
239
  PLATFORMS
173
240
  ruby
@@ -178,10 +245,10 @@ DEPENDENCIES
178
245
  coveralls
179
246
  pry
180
247
  pry-byebug
181
- rails (~> 5.2)
182
- rake (~> 13.0)
183
- rspec (~> 3.11)
184
- rspec-rails (~> 5.0)
248
+ rails
249
+ rake
250
+ rspec
251
+ rspec-rails
185
252
 
186
253
  BUNDLED WITH
187
254
  2.3.11
data/enum_column.gemspec CHANGED
@@ -28,6 +28,8 @@ Gem::Specification.new do |spec|
28
28
  end
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_dependency 'activerecord', '>= 5.2', '< 7.1'
32
- spec.add_dependency 'mysql2', '>= 0.4.5', '< 0.6'
31
+ spec.required_ruby_version = ">= 3.0"
32
+
33
+ spec.add_dependency 'activerecord', '>= 5.2'
34
+ spec.add_dependency 'mysql2', '>= 0.4.5'
33
35
  end
@@ -6,10 +6,10 @@ gem "appraisal"
6
6
  gem "coveralls", require: false
7
7
  gem "pry"
8
8
  gem "pry-byebug"
9
- gem "rake", "~> 13.0"
9
+ gem "rake"
10
10
  gem "rails", "~> 5.2"
11
- gem "rspec", "~> 3.11"
12
- gem "rspec-rails", "~> 5.0"
11
+ gem "rspec"
12
+ gem "rspec-rails"
13
13
  gem "mysql2", "~> 0.4"
14
14
 
15
15
  gemspec path: "../"
@@ -6,10 +6,10 @@ gem "appraisal"
6
6
  gem "coveralls", require: false
7
7
  gem "pry"
8
8
  gem "pry-byebug"
9
- gem "rake", "~> 13.0"
9
+ gem "rake"
10
10
  gem "rails", "~> 6.0.0"
11
- gem "rspec", "~> 3.11"
12
- gem "rspec-rails", "~> 5.0"
11
+ gem "rspec"
12
+ gem "rspec-rails"
13
13
  gem "mysql2", "~> 0.5"
14
14
  gem "net-smtp", require: false
15
15
 
@@ -6,10 +6,10 @@ gem "appraisal"
6
6
  gem "coveralls", require: false
7
7
  gem "pry"
8
8
  gem "pry-byebug"
9
- gem "rake", "~> 13.0"
9
+ gem "rake"
10
10
  gem "rails", "~> 6.1.0"
11
- gem "rspec", "~> 3.11"
12
- gem "rspec-rails", "~> 5.0"
11
+ gem "rspec"
12
+ gem "rspec-rails"
13
13
  gem "mysql2", "~> 0.5"
14
14
  gem "net-smtp", require: false
15
15
 
@@ -6,10 +6,10 @@ gem "appraisal"
6
6
  gem "coveralls", require: false
7
7
  gem "pry"
8
8
  gem "pry-byebug"
9
- gem "rake", "~> 13.0"
9
+ gem "rake"
10
10
  gem "rails", "~> 7.0.0"
11
- gem "rspec", "~> 3.11"
12
- gem "rspec-rails", "~> 5.0"
11
+ gem "rspec"
12
+ gem "rspec-rails"
13
13
  gem "mysql2", "~> 0.5"
14
14
  gem "net-smtp", require: false
15
15
 
@@ -0,0 +1,16 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "coveralls", require: false
7
+ gem "pry"
8
+ gem "pry-byebug"
9
+ gem "rake"
10
+ gem "rails", "~> 7.0.0"
11
+ gem "rspec"
12
+ gem "rspec-rails"
13
+ gem "mysql2", "~> 0.5"
14
+ gem "net-smtp", require: false
15
+
16
+ gemspec path: "../"
@@ -3,7 +3,6 @@
3
3
  module ActiveRecord
4
4
  module Mysql
5
5
  module Enum
6
-
7
6
  class << self
8
7
  def mysql_adapter
9
8
  defined? ActiveRecord::ConnectionAdapters::Mysql2Adapter or raise "Could not find MySQL connection adapter"
@@ -52,7 +51,7 @@ module ActiveRecord
52
51
  end
53
52
  end
54
53
 
55
- if Gem::Version.new(ActiveRecord.version) < Gem::Version.new('7.0')
54
+ if ActiveRecord.version < Gem::Version.new('7.0')
56
55
  private
57
56
 
58
57
  def initialize_type_map(m = type_map)
@@ -65,10 +64,9 @@ module ActiveRecord
65
64
 
66
65
  ActiveRecordMysqlAdapter.prepend ActiveRecord::Mysql::Enum::MysqlAdapter
67
66
 
68
- unless Gem::Version.new(ActiveRecord.version) < Gem::Version.new('7.0')
69
- [ActiveRecordMysqlAdapter::TYPE_MAP, ActiveRecordMysqlAdapter::TYPE_MAP_WITH_BOOLEAN].each do |m|
70
- Enum.register_enum_with_type_mapping(m)
71
- end
67
+ if ActiveRecord.version >= Gem::Version.new('7.0')
68
+ Enum.register_enum_with_type_mapping(ActiveRecordMysqlAdapter::TYPE_MAP)
69
+ Enum.register_enum_with_type_mapping(ActiveRecordMysqlAdapter::TYPE_MAP_WITH_BOOLEAN) if ActiveRecord.version < Gem::Version.new('7.1')
72
70
  end
73
71
  end
74
72
  end
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module Mysql
5
5
  module Enum
6
- VERSION = "2.3.0"
6
+ VERSION = "2.4.0.pre.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pohodnya
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-14 00:00:00.000000000 Z
12
+ date: 2024-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -18,9 +18,6 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5.2'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '7.1'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +25,6 @@ dependencies:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '5.2'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '7.1'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: mysql2
36
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,9 +32,6 @@ dependencies:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: 0.4.5
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: '0.6'
44
35
  type: :runtime
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,9 +39,6 @@ dependencies:
48
39
  - - ">="
49
40
  - !ruby/object:Gem::Version
50
41
  version: 0.4.5
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '0.6'
54
42
  description: Enable enum type for the MySQL Adapter in ActiveRecord
55
43
  email:
56
44
  - development@invoca.com
@@ -58,6 +46,7 @@ executables: []
58
46
  extensions: []
59
47
  extra_rdoc_files: []
60
48
  files:
49
+ - ".github/CODEOWNERS"
61
50
  - ".github/dependabot.yml"
62
51
  - ".github/workflows/gem_release.yml"
63
52
  - ".github/workflows/test.yml"
@@ -78,6 +67,7 @@ files:
78
67
  - gemfiles/rails_6.gemfile
79
68
  - gemfiles/rails_6_1.gemfile
80
69
  - gemfiles/rails_7_0.gemfile
70
+ - gemfiles/rails_7_1.gemfile
81
71
  - init.rb
82
72
  - lib/active_record/mysql/enum.rb
83
73
  - lib/active_record/mysql/enum/enum_column_adapter.rb
@@ -102,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
92
  requirements:
103
93
  - - ">="
104
94
  - !ruby/object:Gem::Version
105
- version: '0'
95
+ version: '3.0'
106
96
  required_rubygems_version: !ruby/object:Gem::Requirement
107
97
  requirements:
108
98
  - - ">="
109
99
  - !ruby/object:Gem::Version
110
100
  version: '0'
111
101
  requirements: []
112
- rubygems_version: 3.1.6
102
+ rubygems_version: 3.5.9
113
103
  signing_key:
114
104
  specification_version: 4
115
105
  summary: Enable enum type for the MySQL Adapter in ActiveRecord