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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/workflows/test.yml +2 -15
- data/.ruby-version +1 -1
- data/Appraisals +6 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -4
- data/Gemfile.lock +193 -126
- data/enum_column.gemspec +4 -2
- data/gemfiles/rails_5.gemfile +3 -3
- data/gemfiles/rails_6.gemfile +3 -3
- data/gemfiles/rails_6_1.gemfile +3 -3
- data/gemfiles/rails_7_0.gemfile +3 -3
- data/gemfiles/rails_7_1.gemfile +16 -0
- data/lib/active_record/mysql/enum/mysql_adapter.rb +4 -6
- data/lib/active_record/mysql/enum/version.rb +1 -1
- metadata +6 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ea73e1ce3cabbf31afa0a8f5547bce76e3817031de8cbf88ccf11ede9ad0061
|
4
|
+
data.tar.gz: 86907a0653360d542efaf268e1668ae3fc20df480ba305d4a7b59953048a0917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d49706dea625831768adb4556df891b7c9f6812554025a700e89676142234b8c8ff21fe8126688375b7de5d7735d3491d97f4f4b22b21dedc2e46884b8e8e031
|
7
|
+
data.tar.gz: 1d4064ffd6ccccef3177b2c5a22a07e75ef766cef39e0fbff3fc0de7c54630cbcd6be57f707f924024086bfececba437681d81cd90b49468246f87878207efbb
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @Invoca/octothorpe
|
data/.github/workflows/test.yml
CHANGED
@@ -19,26 +19,13 @@ jobs:
|
|
19
19
|
strategy:
|
20
20
|
fail-fast: false
|
21
21
|
matrix:
|
22
|
-
ruby: [
|
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
|
-
|
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.
|
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
data/Gemfile.lock
CHANGED
@@ -1,63 +1,98 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activerecord-mysql-enum (2.
|
5
|
-
activerecord (>= 5.2
|
6
|
-
mysql2 (>= 0.4.5
|
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 (
|
12
|
-
actionpack (=
|
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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
activejob (=
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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.
|
27
|
-
rails-html-sanitizer (~> 1.
|
28
|
-
|
29
|
-
|
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.
|
32
|
-
rails-dom-testing (~> 2.
|
33
|
-
rails-html-sanitizer (~> 1.
|
34
|
-
activejob (
|
35
|
-
activesupport (=
|
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 (
|
38
|
-
activesupport (=
|
39
|
-
activerecord (
|
40
|
-
activemodel (=
|
41
|
-
activesupport (=
|
42
|
-
|
43
|
-
activestorage (
|
44
|
-
actionpack (=
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
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.
|
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
|
-
|
103
|
+
date (3.3.4)
|
104
|
+
diff-lcs (1.5.1)
|
69
105
|
docile (1.4.0)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
-
|
76
|
-
|
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.
|
79
|
-
mail (2.
|
119
|
+
nokogiri (>= 1.12.0)
|
120
|
+
mail (2.8.1)
|
80
121
|
mini_mime (>= 0.1.1)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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.
|
145
|
+
pry (0.14.2)
|
92
146
|
coderay (~> 1.1)
|
93
147
|
method_source (~> 1.0)
|
94
|
-
pry-byebug (3.
|
148
|
+
pry-byebug (3.10.1)
|
95
149
|
byebug (~> 11.0)
|
96
|
-
pry (
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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.
|
118
|
-
loofah (~> 2.
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
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.
|
135
|
-
rspec-mocks (3.
|
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.
|
138
|
-
rspec-rails (
|
139
|
-
actionpack (>=
|
140
|
-
activesupport (>=
|
141
|
-
railties (>=
|
142
|
-
rspec-core (~> 3.
|
143
|
-
rspec-expectations (~> 3.
|
144
|
-
rspec-mocks (~> 3.
|
145
|
-
rspec-support (~> 3.
|
146
|
-
rspec-support (3.
|
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
|
-
|
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.
|
224
|
+
term-ansicolor (1.8.0)
|
161
225
|
tins (~> 1.0)
|
162
|
-
thor (1.1
|
163
|
-
|
164
|
-
tins (1.
|
226
|
+
thor (1.3.1)
|
227
|
+
timeout (0.4.1)
|
228
|
+
tins (1.33.0)
|
229
|
+
bigdecimal
|
165
230
|
sync
|
166
|
-
tzinfo (
|
167
|
-
|
168
|
-
|
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
|
182
|
-
rake
|
183
|
-
rspec
|
184
|
-
rspec-rails
|
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.
|
32
|
-
|
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
|
data/gemfiles/rails_5.gemfile
CHANGED
@@ -6,10 +6,10 @@ gem "appraisal"
|
|
6
6
|
gem "coveralls", require: false
|
7
7
|
gem "pry"
|
8
8
|
gem "pry-byebug"
|
9
|
-
gem "rake"
|
9
|
+
gem "rake"
|
10
10
|
gem "rails", "~> 5.2"
|
11
|
-
gem "rspec"
|
12
|
-
gem "rspec-rails"
|
11
|
+
gem "rspec"
|
12
|
+
gem "rspec-rails"
|
13
13
|
gem "mysql2", "~> 0.4"
|
14
14
|
|
15
15
|
gemspec path: "../"
|
data/gemfiles/rails_6.gemfile
CHANGED
@@ -6,10 +6,10 @@ gem "appraisal"
|
|
6
6
|
gem "coveralls", require: false
|
7
7
|
gem "pry"
|
8
8
|
gem "pry-byebug"
|
9
|
-
gem "rake"
|
9
|
+
gem "rake"
|
10
10
|
gem "rails", "~> 6.0.0"
|
11
|
-
gem "rspec"
|
12
|
-
gem "rspec-rails"
|
11
|
+
gem "rspec"
|
12
|
+
gem "rspec-rails"
|
13
13
|
gem "mysql2", "~> 0.5"
|
14
14
|
gem "net-smtp", require: false
|
15
15
|
|
data/gemfiles/rails_6_1.gemfile
CHANGED
@@ -6,10 +6,10 @@ gem "appraisal"
|
|
6
6
|
gem "coveralls", require: false
|
7
7
|
gem "pry"
|
8
8
|
gem "pry-byebug"
|
9
|
-
gem "rake"
|
9
|
+
gem "rake"
|
10
10
|
gem "rails", "~> 6.1.0"
|
11
|
-
gem "rspec"
|
12
|
-
gem "rspec-rails"
|
11
|
+
gem "rspec"
|
12
|
+
gem "rspec-rails"
|
13
13
|
gem "mysql2", "~> 0.5"
|
14
14
|
gem "net-smtp", require: false
|
15
15
|
|
data/gemfiles/rails_7_0.gemfile
CHANGED
@@ -6,10 +6,10 @@ gem "appraisal"
|
|
6
6
|
gem "coveralls", require: false
|
7
7
|
gem "pry"
|
8
8
|
gem "pry-byebug"
|
9
|
-
gem "rake"
|
9
|
+
gem "rake"
|
10
10
|
gem "rails", "~> 7.0.0"
|
11
|
-
gem "rspec"
|
12
|
-
gem "rspec-rails"
|
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
|
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
|
-
|
69
|
-
|
70
|
-
|
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
|
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.
|
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:
|
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.
|
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
|