activerecord-mysql-enum 2.4.0 → 2.4.2.pre.tstarck.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +24 -11
- data/.github/workflows/dependabot_automerge.yml +15 -0
- data/.github/workflows/test.yml +11 -5
- data/.github/workflows/update_appraisals.yml +23 -0
- data/Appraisals +2 -22
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +71 -68
- data/catalog-info.yaml +15 -0
- data/gemfiles/{rails_5.gemfile → activerecord_6_0.gemfile} +3 -2
- data/gemfiles/{rails_6.gemfile → activerecord_6_1.gemfile} +3 -3
- data/gemfiles/{rails_6_1.gemfile → activerecord_7_0.gemfile} +3 -3
- data/gemfiles/{rails_7_0.gemfile → activerecord_7_1.gemfile} +3 -3
- data/lib/active_record/mysql/enum/mysql_adapter.rb +1 -1
- data/lib/active_record/mysql/enum/quoting.rb +3 -3
- data/lib/active_record/mysql/enum/version.rb +1 -1
- metadata +12 -10
- data/gemfiles/rails_7_1.gemfile +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af66eedbfc14fa85f79085b36edac22699f4bd47221559c699b8c01a8bddc13
|
4
|
+
data.tar.gz: 60e49e152cf7f3780d46113e2f57e1e2329b55fcdff0891a1639b9bf3d247366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e06c4e4178094ae6386bb8574437bd775e634b9afd5253c96808f2f7c295e1dc1e750b2b88a2cd7ed82b1ff2d5e7ae0e5315c25ac30259437650715291208243
|
7
|
+
data.tar.gz: 25f47d57a1f7cc7a3451662dd1fdf8fcfa984a18509c1e42ca8b8845c722549635b58bed15177b0518bf8f516107367122f8d6ba4102f52a0c7585bb0910be06
|
data/.github/dependabot.yml
CHANGED
@@ -1,13 +1,26 @@
|
|
1
1
|
version: 2
|
2
2
|
updates:
|
3
|
-
- package-ecosystem: bundler
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
registries: "*"
|
6
|
+
schedule:
|
7
|
+
interval: weekly
|
8
|
+
day: monday
|
9
|
+
time: "08:00"
|
10
|
+
timezone: PST8PDT
|
11
|
+
open-pull-requests-limit: 10
|
12
|
+
versioning-strategy: auto
|
13
|
+
commit-message:
|
14
|
+
prefix: non-production
|
15
|
+
include: scope
|
16
|
+
groups:
|
17
|
+
minor-patch-versions: # Group together minor / patch updates.
|
18
|
+
applies-to: "version-updates"
|
19
|
+
update-types:
|
20
|
+
- "minor"
|
21
|
+
- "patch"
|
22
|
+
minor-patch-security:
|
23
|
+
applies-to: "security-updates"
|
24
|
+
update-types:
|
25
|
+
- "minor"
|
26
|
+
- "patch"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: Dependabot auto-merge
|
2
|
+
on: pull_request
|
3
|
+
permissions:
|
4
|
+
contents: write
|
5
|
+
pull-requests: write
|
6
|
+
jobs:
|
7
|
+
dependabot:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
if: github.actor == 'dependabot[bot]'
|
10
|
+
steps:
|
11
|
+
- name: Enable auto-merge for Dependabot PRs
|
12
|
+
run: gh pr merge --auto --merge "$PR_URL"
|
13
|
+
env:
|
14
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
15
|
+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
data/.github/workflows/test.yml
CHANGED
@@ -22,10 +22,10 @@ jobs:
|
|
22
22
|
ruby: ['3.0', 3.1, 3.2, 3.3]
|
23
23
|
gemfile:
|
24
24
|
- Gemfile
|
25
|
-
- gemfiles/
|
26
|
-
- gemfiles/
|
27
|
-
- gemfiles/
|
28
|
-
- gemfiles/
|
25
|
+
- gemfiles/activerecord_6_0.gemfile
|
26
|
+
- gemfiles/activerecord_6_1.gemfile
|
27
|
+
- gemfiles/activerecord_7_0.gemfile
|
28
|
+
- gemfiles/activerecord_7_1.gemfile
|
29
29
|
env:
|
30
30
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
31
31
|
DATABASE_MYSQL_HOST: 127.0.0.1
|
@@ -38,5 +38,11 @@ jobs:
|
|
38
38
|
ruby-version: ${{ matrix.ruby }}
|
39
39
|
bundler: 2.2.29
|
40
40
|
bundler-cache: true
|
41
|
-
- run: RAILS_ENV=test bundle exec rake db:create
|
41
|
+
- run: RAILS_ENV=test bundle exec rake db:create db:migrate
|
42
42
|
- run: bundle exec rspec
|
43
|
+
build_success:
|
44
|
+
name: Build Success
|
45
|
+
runs-on: ubuntu-latest
|
46
|
+
needs: test
|
47
|
+
steps:
|
48
|
+
- run: echo Done!
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
name: Update Appraisals
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '0 13 * * 0' # Every Sunday at 1PM UTC
|
6
|
+
permissions:
|
7
|
+
contents: write
|
8
|
+
jobs:
|
9
|
+
update:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v3
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 3.3
|
16
|
+
- name: Update Appraisal Gemfiles
|
17
|
+
run: bundle install && bundle exec appraisal install
|
18
|
+
- name: Commit & Push changes
|
19
|
+
run: |
|
20
|
+
git config --global user.name 'Invoca Automation'
|
21
|
+
git config --global user.email 'octothorpe@users.noreply.github.com'
|
22
|
+
git commit -am "non-production: Update Appraisal Gemfiles" || exit 0
|
23
|
+
git push
|
data/Appraisals
CHANGED
@@ -1,25 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
gem 'rails', '~> 6.0.0'
|
5
|
-
gem 'mysql2', '~> 0.5'
|
6
|
-
gem "net-smtp", require: false
|
7
|
-
end
|
3
|
+
require 'appraisal/matrix'
|
8
4
|
|
9
|
-
|
10
|
-
gem 'rails', '~> 6.1.0'
|
11
|
-
gem 'mysql2', '~> 0.5'
|
12
|
-
gem "net-smtp", require: false
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise 'rails-7-0' do
|
16
|
-
gem 'rails', '~> 7.0.0'
|
17
|
-
gem 'mysql2', '~> 0.5'
|
18
|
-
gem "net-smtp", require: false
|
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
|
5
|
+
appraisal_matrix(activerecord: '6.0')
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ 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.2] - 2024-07-31
|
8
|
+
### Fixed
|
9
|
+
- Fixed bug in enum quoting to use the same connection.
|
10
|
+
|
11
|
+
## [2.4.1] - 2024-07-03
|
12
|
+
### Fixed
|
13
|
+
- Fixed bug in Rails 7.0.x where migrations failed when changing an enum column.
|
14
|
+
|
7
15
|
## [2.4.0] - 2024-05-14
|
8
16
|
### Added
|
9
17
|
- Added support for Rails 7.1
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,42 +1,42 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activerecord-mysql-enum (2.4.
|
4
|
+
activerecord-mysql-enum (2.4.2.pre.tstarck.1)
|
5
5
|
activerecord (>= 5.2)
|
6
6
|
mysql2 (>= 0.4.5)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (7.1.3.
|
12
|
-
actionpack (= 7.1.3.
|
13
|
-
activesupport (= 7.1.3.
|
11
|
+
actioncable (7.1.3.4)
|
12
|
+
actionpack (= 7.1.3.4)
|
13
|
+
activesupport (= 7.1.3.4)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
16
|
zeitwerk (~> 2.6)
|
17
|
-
actionmailbox (7.1.3.
|
18
|
-
actionpack (= 7.1.3.
|
19
|
-
activejob (= 7.1.3.
|
20
|
-
activerecord (= 7.1.3.
|
21
|
-
activestorage (= 7.1.3.
|
22
|
-
activesupport (= 7.1.3.
|
17
|
+
actionmailbox (7.1.3.4)
|
18
|
+
actionpack (= 7.1.3.4)
|
19
|
+
activejob (= 7.1.3.4)
|
20
|
+
activerecord (= 7.1.3.4)
|
21
|
+
activestorage (= 7.1.3.4)
|
22
|
+
activesupport (= 7.1.3.4)
|
23
23
|
mail (>= 2.7.1)
|
24
24
|
net-imap
|
25
25
|
net-pop
|
26
26
|
net-smtp
|
27
|
-
actionmailer (7.1.3.
|
28
|
-
actionpack (= 7.1.3.
|
29
|
-
actionview (= 7.1.3.
|
30
|
-
activejob (= 7.1.3.
|
31
|
-
activesupport (= 7.1.3.
|
27
|
+
actionmailer (7.1.3.4)
|
28
|
+
actionpack (= 7.1.3.4)
|
29
|
+
actionview (= 7.1.3.4)
|
30
|
+
activejob (= 7.1.3.4)
|
31
|
+
activesupport (= 7.1.3.4)
|
32
32
|
mail (~> 2.5, >= 2.5.4)
|
33
33
|
net-imap
|
34
34
|
net-pop
|
35
35
|
net-smtp
|
36
36
|
rails-dom-testing (~> 2.2)
|
37
|
-
actionpack (7.1.3.
|
38
|
-
actionview (= 7.1.3.
|
39
|
-
activesupport (= 7.1.3.
|
37
|
+
actionpack (7.1.3.4)
|
38
|
+
actionview (= 7.1.3.4)
|
39
|
+
activesupport (= 7.1.3.4)
|
40
40
|
nokogiri (>= 1.8.5)
|
41
41
|
racc
|
42
42
|
rack (>= 2.2.4)
|
@@ -44,35 +44,35 @@ GEM
|
|
44
44
|
rack-test (>= 0.6.3)
|
45
45
|
rails-dom-testing (~> 2.2)
|
46
46
|
rails-html-sanitizer (~> 1.6)
|
47
|
-
actiontext (7.1.3.
|
48
|
-
actionpack (= 7.1.3.
|
49
|
-
activerecord (= 7.1.3.
|
50
|
-
activestorage (= 7.1.3.
|
51
|
-
activesupport (= 7.1.3.
|
47
|
+
actiontext (7.1.3.4)
|
48
|
+
actionpack (= 7.1.3.4)
|
49
|
+
activerecord (= 7.1.3.4)
|
50
|
+
activestorage (= 7.1.3.4)
|
51
|
+
activesupport (= 7.1.3.4)
|
52
52
|
globalid (>= 0.6.0)
|
53
53
|
nokogiri (>= 1.8.5)
|
54
|
-
actionview (7.1.3.
|
55
|
-
activesupport (= 7.1.3.
|
54
|
+
actionview (7.1.3.4)
|
55
|
+
activesupport (= 7.1.3.4)
|
56
56
|
builder (~> 3.1)
|
57
57
|
erubi (~> 1.11)
|
58
58
|
rails-dom-testing (~> 2.2)
|
59
59
|
rails-html-sanitizer (~> 1.6)
|
60
|
-
activejob (7.1.3.
|
61
|
-
activesupport (= 7.1.3.
|
60
|
+
activejob (7.1.3.4)
|
61
|
+
activesupport (= 7.1.3.4)
|
62
62
|
globalid (>= 0.3.6)
|
63
|
-
activemodel (7.1.3.
|
64
|
-
activesupport (= 7.1.3.
|
65
|
-
activerecord (7.1.3.
|
66
|
-
activemodel (= 7.1.3.
|
67
|
-
activesupport (= 7.1.3.
|
63
|
+
activemodel (7.1.3.4)
|
64
|
+
activesupport (= 7.1.3.4)
|
65
|
+
activerecord (7.1.3.4)
|
66
|
+
activemodel (= 7.1.3.4)
|
67
|
+
activesupport (= 7.1.3.4)
|
68
68
|
timeout (>= 0.4.0)
|
69
|
-
activestorage (7.1.3.
|
70
|
-
actionpack (= 7.1.3.
|
71
|
-
activejob (= 7.1.3.
|
72
|
-
activerecord (= 7.1.3.
|
73
|
-
activesupport (= 7.1.3.
|
69
|
+
activestorage (7.1.3.4)
|
70
|
+
actionpack (= 7.1.3.4)
|
71
|
+
activejob (= 7.1.3.4)
|
72
|
+
activerecord (= 7.1.3.4)
|
73
|
+
activesupport (= 7.1.3.4)
|
74
74
|
marcel (~> 1.0)
|
75
|
-
activesupport (7.1.3.
|
75
|
+
activesupport (7.1.3.4)
|
76
76
|
base64
|
77
77
|
bigdecimal
|
78
78
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -86,12 +86,14 @@ GEM
|
|
86
86
|
bundler
|
87
87
|
rake
|
88
88
|
thor (>= 0.14.0)
|
89
|
+
appraisal-matrix (0.1.0)
|
90
|
+
appraisal (~> 2.2)
|
89
91
|
base64 (0.2.0)
|
90
92
|
bigdecimal (3.1.8)
|
91
|
-
builder (3.
|
93
|
+
builder (3.3.0)
|
92
94
|
byebug (11.1.3)
|
93
95
|
coderay (1.1.3)
|
94
|
-
concurrent-ruby (1.
|
96
|
+
concurrent-ruby (1.3.3)
|
95
97
|
connection_pool (2.4.1)
|
96
98
|
coveralls (0.8.23)
|
97
99
|
json (>= 1.8, < 3)
|
@@ -104,13 +106,13 @@ GEM
|
|
104
106
|
diff-lcs (1.5.1)
|
105
107
|
docile (1.4.0)
|
106
108
|
drb (2.2.1)
|
107
|
-
erubi (1.
|
109
|
+
erubi (1.13.0)
|
108
110
|
globalid (1.2.1)
|
109
111
|
activesupport (>= 6.1)
|
110
112
|
i18n (1.14.5)
|
111
113
|
concurrent-ruby (~> 1.0)
|
112
114
|
io-console (0.7.2)
|
113
|
-
irb (1.13.
|
115
|
+
irb (1.13.2)
|
114
116
|
rdoc (>= 4.0.0)
|
115
117
|
reline (>= 0.4.2)
|
116
118
|
json (2.7.2)
|
@@ -125,11 +127,11 @@ GEM
|
|
125
127
|
marcel (1.0.4)
|
126
128
|
method_source (1.1.0)
|
127
129
|
mini_mime (1.1.5)
|
128
|
-
mini_portile2 (2.8.
|
129
|
-
minitest (5.
|
130
|
+
mini_portile2 (2.8.7)
|
131
|
+
minitest (5.24.1)
|
130
132
|
mutex_m (0.2.0)
|
131
133
|
mysql2 (0.5.6)
|
132
|
-
net-imap (0.4.
|
134
|
+
net-imap (0.4.14)
|
133
135
|
date
|
134
136
|
net-protocol
|
135
137
|
net-pop (0.1.2)
|
@@ -139,7 +141,7 @@ GEM
|
|
139
141
|
net-smtp (0.5.0)
|
140
142
|
net-protocol
|
141
143
|
nio4r (2.7.3)
|
142
|
-
nokogiri (1.16.
|
144
|
+
nokogiri (1.16.6)
|
143
145
|
mini_portile2 (~> 2.8.2)
|
144
146
|
racc (~> 1.4)
|
145
147
|
pry (0.14.2)
|
@@ -150,8 +152,8 @@ GEM
|
|
150
152
|
pry (>= 0.13, < 0.15)
|
151
153
|
psych (5.1.2)
|
152
154
|
stringio
|
153
|
-
racc (1.
|
154
|
-
rack (3.
|
155
|
+
racc (1.8.0)
|
156
|
+
rack (3.1.6)
|
155
157
|
rack-session (2.0.0)
|
156
158
|
rack (>= 3.0.0)
|
157
159
|
rack-test (2.1.0)
|
@@ -159,20 +161,20 @@ GEM
|
|
159
161
|
rackup (2.1.0)
|
160
162
|
rack (>= 3)
|
161
163
|
webrick (~> 1.8)
|
162
|
-
rails (7.1.3.
|
163
|
-
actioncable (= 7.1.3.
|
164
|
-
actionmailbox (= 7.1.3.
|
165
|
-
actionmailer (= 7.1.3.
|
166
|
-
actionpack (= 7.1.3.
|
167
|
-
actiontext (= 7.1.3.
|
168
|
-
actionview (= 7.1.3.
|
169
|
-
activejob (= 7.1.3.
|
170
|
-
activemodel (= 7.1.3.
|
171
|
-
activerecord (= 7.1.3.
|
172
|
-
activestorage (= 7.1.3.
|
173
|
-
activesupport (= 7.1.3.
|
164
|
+
rails (7.1.3.4)
|
165
|
+
actioncable (= 7.1.3.4)
|
166
|
+
actionmailbox (= 7.1.3.4)
|
167
|
+
actionmailer (= 7.1.3.4)
|
168
|
+
actionpack (= 7.1.3.4)
|
169
|
+
actiontext (= 7.1.3.4)
|
170
|
+
actionview (= 7.1.3.4)
|
171
|
+
activejob (= 7.1.3.4)
|
172
|
+
activemodel (= 7.1.3.4)
|
173
|
+
activerecord (= 7.1.3.4)
|
174
|
+
activestorage (= 7.1.3.4)
|
175
|
+
activesupport (= 7.1.3.4)
|
174
176
|
bundler (>= 1.15.0)
|
175
|
-
railties (= 7.1.3.
|
177
|
+
railties (= 7.1.3.4)
|
176
178
|
rails-dom-testing (2.2.0)
|
177
179
|
activesupport (>= 5.0.0)
|
178
180
|
minitest
|
@@ -180,18 +182,18 @@ GEM
|
|
180
182
|
rails-html-sanitizer (1.6.0)
|
181
183
|
loofah (~> 2.21)
|
182
184
|
nokogiri (~> 1.14)
|
183
|
-
railties (7.1.3.
|
184
|
-
actionpack (= 7.1.3.
|
185
|
-
activesupport (= 7.1.3.
|
185
|
+
railties (7.1.3.4)
|
186
|
+
actionpack (= 7.1.3.4)
|
187
|
+
activesupport (= 7.1.3.4)
|
186
188
|
irb
|
187
189
|
rackup (>= 1.0.0)
|
188
190
|
rake (>= 12.2)
|
189
191
|
thor (~> 1.0, >= 1.2.2)
|
190
192
|
zeitwerk (~> 2.6)
|
191
193
|
rake (13.2.1)
|
192
|
-
rdoc (6.
|
194
|
+
rdoc (6.7.0)
|
193
195
|
psych (>= 4.0.0)
|
194
|
-
reline (0.5.
|
196
|
+
reline (0.5.9)
|
195
197
|
io-console (~> 0.5)
|
196
198
|
rspec (3.13.0)
|
197
199
|
rspec-core (~> 3.13.0)
|
@@ -219,7 +221,7 @@ GEM
|
|
219
221
|
json (>= 1.8, < 3)
|
220
222
|
simplecov-html (~> 0.10.0)
|
221
223
|
simplecov-html (0.10.2)
|
222
|
-
stringio (3.1.
|
224
|
+
stringio (3.1.1)
|
223
225
|
sync (0.5.0)
|
224
226
|
term-ansicolor (1.8.0)
|
225
227
|
tins (~> 1.0)
|
@@ -234,7 +236,7 @@ GEM
|
|
234
236
|
websocket-driver (0.7.6)
|
235
237
|
websocket-extensions (>= 0.1.0)
|
236
238
|
websocket-extensions (0.1.5)
|
237
|
-
zeitwerk (2.6.
|
239
|
+
zeitwerk (2.6.16)
|
238
240
|
|
239
241
|
PLATFORMS
|
240
242
|
ruby
|
@@ -242,6 +244,7 @@ PLATFORMS
|
|
242
244
|
DEPENDENCIES
|
243
245
|
activerecord-mysql-enum!
|
244
246
|
appraisal
|
247
|
+
appraisal-matrix
|
245
248
|
coveralls
|
246
249
|
pry
|
247
250
|
pry-byebug
|
data/catalog-info.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
apiVersion: backstage.io/v1alpha1
|
2
|
+
kind: Component
|
3
|
+
metadata:
|
4
|
+
name: activerecord-mysql-enum
|
5
|
+
title: ActiveRecord Mysql Enum gem
|
6
|
+
annotations:
|
7
|
+
github.com/project-slug: Invoca/activerecord-mysql-enum
|
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 "pry"
|
8
9
|
gem "pry-byebug"
|
9
10
|
gem "rake"
|
10
|
-
gem "rails"
|
11
|
+
gem "rails"
|
11
12
|
gem "rspec"
|
12
13
|
gem "rspec-rails"
|
13
|
-
gem "
|
14
|
+
gem "activerecord", "~> 6.0.0"
|
14
15
|
|
15
16
|
gemspec path: "../"
|
@@ -3,14 +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 "pry"
|
8
9
|
gem "pry-byebug"
|
9
10
|
gem "rake"
|
10
|
-
gem "rails"
|
11
|
+
gem "rails"
|
11
12
|
gem "rspec"
|
12
13
|
gem "rspec-rails"
|
13
|
-
gem "
|
14
|
-
gem "net-smtp", require: false
|
14
|
+
gem "activerecord", "~> 6.1.0"
|
15
15
|
|
16
16
|
gemspec path: "../"
|
@@ -3,14 +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 "pry"
|
8
9
|
gem "pry-byebug"
|
9
10
|
gem "rake"
|
10
|
-
gem "rails"
|
11
|
+
gem "rails"
|
11
12
|
gem "rspec"
|
12
13
|
gem "rspec-rails"
|
13
|
-
gem "
|
14
|
-
gem "net-smtp", require: false
|
14
|
+
gem "activerecord", "~> 7.0.0"
|
15
15
|
|
16
16
|
gemspec path: "../"
|
@@ -3,14 +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 "pry"
|
8
9
|
gem "pry-byebug"
|
9
10
|
gem "rake"
|
10
|
-
gem "rails"
|
11
|
+
gem "rails"
|
11
12
|
gem "rspec"
|
12
13
|
gem "rspec-rails"
|
13
|
-
gem "
|
14
|
-
gem "net-smtp", require: false
|
14
|
+
gem "activerecord", "~> 7.1.0"
|
15
15
|
|
16
16
|
gemspec path: "../"
|
@@ -12,7 +12,7 @@ module ActiveRecord
|
|
12
12
|
|
13
13
|
def register_enum_with_type_mapping(m)
|
14
14
|
m.register_type(/enum/i) do |sql_type|
|
15
|
-
limit = sql_type.sub(/^enum\('(.+)'\)/i, '\1').split("','").map { |v| v.to_sym }
|
15
|
+
limit = sql_type.to_s.sub(/^enum\('(.+)'\)/i, '\1').split("','").map { |v| v.to_sym }
|
16
16
|
ActiveRecord::Type::Enum.new(limit: limit)
|
17
17
|
end
|
18
18
|
end
|
@@ -8,10 +8,10 @@ module ActiveRecord
|
|
8
8
|
# Quote a symbol as a normal string. This will support quoting of
|
9
9
|
# enumerated values.
|
10
10
|
def quote(value)
|
11
|
-
if
|
12
|
-
__quote_enum(value)
|
11
|
+
if value.is_a? Symbol
|
12
|
+
__quote_enum(value.to_s)
|
13
13
|
else
|
14
|
-
|
14
|
+
__quote_enum(value)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
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.
|
4
|
+
version: 2.4.2.pre.tstarck.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: 2024-
|
12
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -48,8 +48,10 @@ extra_rdoc_files: []
|
|
48
48
|
files:
|
49
49
|
- ".github/CODEOWNERS"
|
50
50
|
- ".github/dependabot.yml"
|
51
|
+
- ".github/workflows/dependabot_automerge.yml"
|
51
52
|
- ".github/workflows/gem_release.yml"
|
52
53
|
- ".github/workflows/test.yml"
|
54
|
+
- ".github/workflows/update_appraisals.yml"
|
53
55
|
- ".gitignore"
|
54
56
|
- ".rspec"
|
55
57
|
- ".ruby-version"
|
@@ -61,13 +63,13 @@ files:
|
|
61
63
|
- README.md
|
62
64
|
- Rakefile
|
63
65
|
- app/assets/config/manifest.js
|
66
|
+
- catalog-info.yaml
|
64
67
|
- enum_column.gemspec
|
65
68
|
- gemfiles/.bundle/config
|
66
|
-
- gemfiles/
|
67
|
-
- gemfiles/
|
68
|
-
- gemfiles/
|
69
|
-
- gemfiles/
|
70
|
-
- gemfiles/rails_7_1.gemfile
|
69
|
+
- gemfiles/activerecord_6_0.gemfile
|
70
|
+
- gemfiles/activerecord_6_1.gemfile
|
71
|
+
- gemfiles/activerecord_7_0.gemfile
|
72
|
+
- gemfiles/activerecord_7_1.gemfile
|
71
73
|
- init.rb
|
72
74
|
- lib/active_record/mysql/enum.rb
|
73
75
|
- lib/active_record/mysql/enum/enum_column_adapter.rb
|
@@ -95,11 +97,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
97
|
version: '3.0'
|
96
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
99
|
requirements:
|
98
|
-
- - "
|
100
|
+
- - ">"
|
99
101
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
102
|
+
version: 1.3.1
|
101
103
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
104
|
+
rubygems_version: 3.4.19
|
103
105
|
signing_key:
|
104
106
|
specification_version: 4
|
105
107
|
summary: Enable enum type for the MySQL Adapter in ActiveRecord
|
data/gemfiles/rails_7_1.gemfile
DELETED
@@ -1,16 +0,0 @@
|
|
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: "../"
|