sql_enum 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +11 -5
- data/Appraisals +5 -8
- data/Dockerfile +1 -1
- data/Gemfile.lock +37 -37
- data/README.md +1 -1
- data/gemfiles/rails_7.0.gemfile +7 -0
- data/lib/active_record/connection_adapters/abstract_mysql.rb +3 -0
- data/lib/active_record/connection_adapters/mysql/column_methods.rb +1 -1
- data/lib/sql_enum/version.rb +1 -1
- data/sql_enum.gemspec +9 -4
- metadata +37 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f885963c1a9b5c4d6612807ea7627f34fc455a730a45ed93fe380bc2a4d0ff
|
4
|
+
data.tar.gz: 8489d2a5a017117bb1d5a0d5bb88ccab8f11e4be19a915374ee3d12222d45f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f4ed451ed9dd0d9f6b0e0d5475efadea5bc1de0d3f19e54bfd2066dfb2685cdb7e9f601bd1ca5b977af17b0df19c89860b5ee2bc5791fbdaf19f2644bbd32de
|
7
|
+
data.tar.gz: c27592b8fc57952f8237d8dd19c21e50335b7f9a5de2081074a331b5972f7fa4eacbd61745e3da3424086f5f35e64a2df909d866973d96c3268fa758bdd2f36c
|
data/.github/workflows/tests.yml
CHANGED
@@ -2,25 +2,31 @@ name: Tests
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [
|
5
|
+
branches: [ main ]
|
6
6
|
pull_request:
|
7
7
|
|
8
8
|
jobs:
|
9
9
|
rspec:
|
10
10
|
strategy:
|
11
11
|
matrix:
|
12
|
+
ruby:
|
13
|
+
- '2.7'
|
14
|
+
- '3.0'
|
15
|
+
- '3.1'
|
16
|
+
- '3.2'
|
12
17
|
rails:
|
13
|
-
- '5.1'
|
14
|
-
- '5.2'
|
15
18
|
- '6.0'
|
16
19
|
- '6.1'
|
17
20
|
|
18
21
|
runs-on: ubuntu-latest
|
19
22
|
|
20
|
-
name: RSpec (Rails ${{ matrix.rails }})
|
23
|
+
name: RSpec (Rails ${{ matrix.rails }}) (Ruby ${{ matrix.ruby }})
|
21
24
|
|
22
25
|
steps:
|
23
26
|
- uses: actions/checkout@v2
|
24
|
-
|
27
|
+
- uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: ${{ matrix.ruby }}
|
30
|
+
bundler-cache: true
|
25
31
|
- name: Test
|
26
32
|
run: docker-compose run --rm rspec bundle exec appraisal rails-${{ matrix.rails }} rspec
|
data/Appraisals
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
appraise "rails-5.1" do
|
2
|
-
gem "rails", "~> 5.1.0"
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "rails-5.2" do
|
6
|
-
gem "rails", "~> 5.2.0"
|
7
|
-
end
|
8
|
-
|
9
1
|
appraise "rails-6.0" do
|
10
2
|
gem "rails", "~> 6.0.0"
|
11
3
|
end
|
@@ -13,3 +5,8 @@ end
|
|
13
5
|
appraise "rails-6.1" do
|
14
6
|
gem "rails", "~> 6.1.0"
|
15
7
|
end
|
8
|
+
|
9
|
+
# Rails 7.0 doesn't work yet
|
10
|
+
# appraise "rails-7.0" do
|
11
|
+
# gem "rails", "~> 7.0"
|
12
|
+
# end
|
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,61 +1,61 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sql_enum (0.
|
5
|
-
activerecord (>=
|
6
|
-
activesupport (>=
|
4
|
+
sql_enum (0.4.0)
|
5
|
+
activerecord (>= 6.0, < 7.0)
|
6
|
+
activesupport (>= 6.0, < 7.0)
|
7
7
|
mysql2
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://gem-proxy.chime.com/
|
11
11
|
specs:
|
12
|
-
activemodel (6.1.
|
13
|
-
activesupport (= 6.1.
|
14
|
-
activerecord (6.1.
|
15
|
-
activemodel (= 6.1.
|
16
|
-
activesupport (= 6.1.
|
17
|
-
activesupport (6.1.
|
12
|
+
activemodel (6.1.7.6)
|
13
|
+
activesupport (= 6.1.7.6)
|
14
|
+
activerecord (6.1.7.6)
|
15
|
+
activemodel (= 6.1.7.6)
|
16
|
+
activesupport (= 6.1.7.6)
|
17
|
+
activesupport (6.1.7.6)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
19
|
i18n (>= 1.6, < 2)
|
20
20
|
minitest (>= 5.1)
|
21
21
|
tzinfo (~> 2.0)
|
22
22
|
zeitwerk (~> 2.3)
|
23
|
-
appraisal (2.
|
23
|
+
appraisal (2.5.0)
|
24
24
|
bundler
|
25
25
|
rake
|
26
26
|
thor (>= 0.14.0)
|
27
|
-
concurrent-ruby (1.
|
28
|
-
debug (1.
|
29
|
-
irb (>= 1.
|
30
|
-
reline (>= 0.
|
31
|
-
diff-lcs (1.
|
32
|
-
i18n (1.
|
27
|
+
concurrent-ruby (1.2.2)
|
28
|
+
debug (1.8.0)
|
29
|
+
irb (>= 1.5.0)
|
30
|
+
reline (>= 0.3.1)
|
31
|
+
diff-lcs (1.5.0)
|
32
|
+
i18n (1.14.1)
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
|
-
io-console (0.
|
35
|
-
irb (1.
|
36
|
-
reline (>= 0.
|
37
|
-
minitest (5.
|
38
|
-
mysql2 (0.5.
|
39
|
-
rake (13.0.
|
40
|
-
reline (0.
|
34
|
+
io-console (0.6.0)
|
35
|
+
irb (1.7.4)
|
36
|
+
reline (>= 0.3.6)
|
37
|
+
minitest (5.19.0)
|
38
|
+
mysql2 (0.5.5)
|
39
|
+
rake (13.0.6)
|
40
|
+
reline (0.3.8)
|
41
41
|
io-console (~> 0.5)
|
42
|
-
rspec (3.
|
43
|
-
rspec-core (~> 3.
|
44
|
-
rspec-expectations (~> 3.
|
45
|
-
rspec-mocks (~> 3.
|
46
|
-
rspec-core (3.
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-expectations (3.
|
42
|
+
rspec (3.12.0)
|
43
|
+
rspec-core (~> 3.12.0)
|
44
|
+
rspec-expectations (~> 3.12.0)
|
45
|
+
rspec-mocks (~> 3.12.0)
|
46
|
+
rspec-core (3.12.2)
|
47
|
+
rspec-support (~> 3.12.0)
|
48
|
+
rspec-expectations (3.12.3)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-mocks (3.
|
50
|
+
rspec-support (~> 3.12.0)
|
51
|
+
rspec-mocks (3.12.6)
|
52
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-support (3.
|
55
|
-
thor (1.
|
56
|
-
tzinfo (2.0.
|
53
|
+
rspec-support (~> 3.12.0)
|
54
|
+
rspec-support (3.12.1)
|
55
|
+
thor (1.2.2)
|
56
|
+
tzinfo (2.0.6)
|
57
57
|
concurrent-ruby (~> 1.0)
|
58
|
-
zeitwerk (2.
|
58
|
+
zeitwerk (2.6.11)
|
59
59
|
|
60
60
|
PLATFORMS
|
61
61
|
ruby
|
data/README.md
CHANGED
@@ -66,4 +66,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
66
66
|
|
67
67
|
## Code of Conduct
|
68
68
|
|
69
|
-
Everyone interacting in the SqlEnum project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/1debit/sql_enum/blob/
|
69
|
+
Everyone interacting in the SqlEnum project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/1debit/sql_enum/blob/main/CODE_OF_CONDUCT.md).
|
data/lib/sql_enum/version.rb
CHANGED
data/sql_enum.gemspec
CHANGED
@@ -13,6 +13,11 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/1debit/sql_enum"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
+
spec.metadata = {
|
17
|
+
'homepage_uri' => spec.homepage,
|
18
|
+
'source_code_uri' => spec.homepage,
|
19
|
+
}
|
20
|
+
|
16
21
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
22
|
f.match(%r{^(test|spec|features)/})
|
18
23
|
end
|
@@ -20,13 +25,13 @@ Gem::Specification.new do |spec|
|
|
20
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
26
|
spec.require_paths = ["lib"]
|
22
27
|
|
23
|
-
spec.add_dependency "activesupport", ">=
|
24
|
-
spec.add_dependency "activerecord", ">=
|
28
|
+
spec.add_dependency "activesupport", ">= 6.0", "< 7.0"
|
29
|
+
spec.add_dependency "activerecord", ">= 6.0", "< 7.0"
|
25
30
|
spec.add_dependency "mysql2"
|
26
31
|
|
32
|
+
spec.add_development_dependency "appraisal"
|
27
33
|
spec.add_development_dependency "bundler"
|
28
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
29
34
|
spec.add_development_dependency "debug"
|
35
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
30
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "appraisal"
|
32
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Fowler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '6.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: activerecord
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '6.0'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '7.0'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
49
|
+
version: '6.0'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '7.0'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: mysql2
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +65,7 @@ dependencies:
|
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: '0'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
68
|
+
name: appraisal
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - ">="
|
@@ -67,19 +79,19 @@ dependencies:
|
|
67
79
|
- !ruby/object:Gem::Version
|
68
80
|
version: '0'
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
82
|
+
name: bundler
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
72
84
|
requirements:
|
73
|
-
- - "
|
85
|
+
- - ">="
|
74
86
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
87
|
+
version: '0'
|
76
88
|
type: :development
|
77
89
|
prerelease: false
|
78
90
|
version_requirements: !ruby/object:Gem::Requirement
|
79
91
|
requirements:
|
80
|
-
- - "
|
92
|
+
- - ">="
|
81
93
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
94
|
+
version: '0'
|
83
95
|
- !ruby/object:Gem::Dependency
|
84
96
|
name: debug
|
85
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,33 +107,33 @@ dependencies:
|
|
95
107
|
- !ruby/object:Gem::Version
|
96
108
|
version: '0'
|
97
109
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
110
|
+
name: rake
|
99
111
|
requirement: !ruby/object:Gem::Requirement
|
100
112
|
requirements:
|
101
113
|
- - "~>"
|
102
114
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
115
|
+
version: '13.0'
|
104
116
|
type: :development
|
105
117
|
prerelease: false
|
106
118
|
version_requirements: !ruby/object:Gem::Requirement
|
107
119
|
requirements:
|
108
120
|
- - "~>"
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
122
|
+
version: '13.0'
|
111
123
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
124
|
+
name: rspec
|
113
125
|
requirement: !ruby/object:Gem::Requirement
|
114
126
|
requirements:
|
115
|
-
- - "
|
127
|
+
- - "~>"
|
116
128
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
129
|
+
version: '3.0'
|
118
130
|
type: :development
|
119
131
|
prerelease: false
|
120
132
|
version_requirements: !ruby/object:Gem::Requirement
|
121
133
|
requirements:
|
122
|
-
- - "
|
134
|
+
- - "~>"
|
123
135
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
136
|
+
version: '3.0'
|
125
137
|
description:
|
126
138
|
email:
|
127
139
|
- fletch@fzf.me
|
@@ -149,6 +161,7 @@ files:
|
|
149
161
|
- gemfiles/rails_5.2.gemfile
|
150
162
|
- gemfiles/rails_6.0.gemfile
|
151
163
|
- gemfiles/rails_6.1.gemfile
|
164
|
+
- gemfiles/rails_7.0.gemfile
|
152
165
|
- lib/active_record/connection_adapters/abstract_mysql.rb
|
153
166
|
- lib/active_record/connection_adapters/mysql/column_methods.rb
|
154
167
|
- lib/active_record/connection_adapters/mysql2.rb
|
@@ -164,7 +177,9 @@ files:
|
|
164
177
|
homepage: https://github.com/1debit/sql_enum
|
165
178
|
licenses:
|
166
179
|
- MIT
|
167
|
-
metadata:
|
180
|
+
metadata:
|
181
|
+
homepage_uri: https://github.com/1debit/sql_enum
|
182
|
+
source_code_uri: https://github.com/1debit/sql_enum
|
168
183
|
post_install_message:
|
169
184
|
rdoc_options: []
|
170
185
|
require_paths:
|
@@ -180,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
195
|
- !ruby/object:Gem::Version
|
181
196
|
version: '0'
|
182
197
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
198
|
+
rubygems_version: 3.1.6
|
184
199
|
signing_key:
|
185
200
|
specification_version: 4
|
186
201
|
summary: Enable using native sql enums
|