enum_ish 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +16 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -0
- data/enum_ish.gemspec +0 -2
- data/gemfiles/rails50.gemfile +1 -0
- data/gemfiles/rails51.gemfile +1 -0
- data/gemfiles/rails52.gemfile +1 -0
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails72.gemfile +6 -0
- data/lib/enum_ish/active_record_definer.rb +5 -1
- data/lib/enum_ish/version.rb +1 -1
- metadata +4 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd3e90a922b9d3b4d7413ea767cd2573c3c61dbc4f6807eb0c57d04921127506
|
4
|
+
data.tar.gz: 30731eb94edded445817bfeccba91e3e924a4bf8397100dd2bbd673ae4ef8082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c49aafdeaeaa64ff4a17ff4001b4e1deb7c39c77310f5fdbed84e6115558d1986701cc12b958e6fb709333f7956fa9ec679033889f78c7b4bfd5fbd47a7d27
|
7
|
+
data.tar.gz: 0c93d41401ba5afc7d6edeedacaace19ac3b76140bd803420d6e41343301536d37eea83ad85640950e703b6da2b0dcc533500122b9c862ee7a23d6780ee4f8db
|
data/.github/workflows/ci.yml
CHANGED
@@ -9,7 +9,7 @@ jobs:
|
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
11
|
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
|
12
|
-
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
|
12
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71', 'rails72']
|
13
13
|
exclude:
|
14
14
|
- ruby: 2.3
|
15
15
|
gemfile: rails60
|
@@ -19,6 +19,8 @@ jobs:
|
|
19
19
|
gemfile: rails70
|
20
20
|
- ruby: 2.3
|
21
21
|
gemfile: rails71
|
22
|
+
- ruby: 2.3
|
23
|
+
gemfile: rails72
|
22
24
|
- ruby: 2.4
|
23
25
|
gemfile: rails60
|
24
26
|
- ruby: 2.4
|
@@ -27,20 +29,30 @@ jobs:
|
|
27
29
|
gemfile: rails70
|
28
30
|
- ruby: 2.4
|
29
31
|
gemfile: rails71
|
32
|
+
- ruby: 2.4
|
33
|
+
gemfile: rails72
|
30
34
|
- ruby: 2.5
|
31
35
|
gemfile: rails70
|
32
36
|
- ruby: 2.5
|
33
37
|
gemfile: rails71
|
38
|
+
- ruby: 2.5
|
39
|
+
gemfile: rails72
|
34
40
|
- ruby: 2.6
|
35
41
|
gemfile: rails70
|
36
42
|
- ruby: 2.6
|
37
43
|
gemfile: rails71
|
44
|
+
- ruby: 2.6
|
45
|
+
gemfile: rails72
|
46
|
+
- ruby: 2.7
|
47
|
+
gemfile: rails72
|
38
48
|
- ruby: 3.0
|
39
49
|
gemfile: rails50
|
40
50
|
- ruby: 3.0
|
41
51
|
gemfile: rails51
|
42
52
|
- ruby: 3.0
|
43
53
|
gemfile: rails52
|
54
|
+
- ruby: 3.0
|
55
|
+
gemfile: rails72
|
44
56
|
- ruby: 3.1
|
45
57
|
gemfile: rails50
|
46
58
|
- ruby: 3.1
|
@@ -71,6 +83,9 @@ jobs:
|
|
71
83
|
with:
|
72
84
|
ruby-version: ${{ matrix.ruby }}
|
73
85
|
bundler-cache: true
|
86
|
+
- name: Bundle list
|
87
|
+
run: |
|
88
|
+
bundle list
|
74
89
|
- name: Prepare test
|
75
90
|
run: |
|
76
91
|
cd spec/dummy
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/enum_ish.gemspec
CHANGED
@@ -20,8 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_dependency "activesupport", ">= 5.0"
|
21
21
|
spec.add_dependency "i18n"
|
22
22
|
|
23
|
-
spec.add_development_dependency "rails", ">= 5.0"
|
24
|
-
spec.add_development_dependency "sqlite3"
|
25
23
|
spec.add_development_dependency "rspec-rails"
|
26
24
|
spec.add_development_dependency "simplecov"
|
27
25
|
end
|
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
@@ -26,7 +26,11 @@ module EnumIsh
|
|
26
26
|
enum.mapping.fetch(value, value)
|
27
27
|
end
|
28
28
|
|
29
|
-
if ActiveRecord.version
|
29
|
+
if ActiveRecord.version >= Gem::Version.new('7.2.0.a')
|
30
|
+
decorate_attributes([enum.name]) do |_, subtype|
|
31
|
+
EnumIsh::ActiveRecordEnumType.new(enum.name, enum.mapping, subtype)
|
32
|
+
end
|
33
|
+
elsif ActiveRecord.version > Gem::Version.new('7.0.0.a')
|
30
34
|
attribute(enum.name) do |subtype|
|
31
35
|
EnumIsh::ActiveRecordEnumType.new(enum.name, enum.mapping, subtype)
|
32
36
|
end
|
data/lib/enum_ish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enum_ish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rails
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: sqlite3
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: rspec-rails
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +89,7 @@ files:
|
|
117
89
|
- gemfiles/rails61.gemfile
|
118
90
|
- gemfiles/rails70.gemfile
|
119
91
|
- gemfiles/rails71.gemfile
|
92
|
+
- gemfiles/rails72.gemfile
|
120
93
|
- lib/enum_ish.rb
|
121
94
|
- lib/enum_ish/active_record_definer.rb
|
122
95
|
- lib/enum_ish/active_record_enum_type.rb
|
@@ -147,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
120
|
- !ruby/object:Gem::Version
|
148
121
|
version: '0'
|
149
122
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.5.11
|
151
124
|
signing_key:
|
152
125
|
specification_version: 4
|
153
126
|
summary: A ruby and rails extension to generate enum-like methods
|