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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9ba2d3bf75254c8f3254a3724f7445e88624da78b10fc2bef8a8bfcc1824677
4
- data.tar.gz: 757fb848eb78f79a97b419a789622d467d14f8aece08f38e042c64823ac782de
3
+ metadata.gz: bd3e90a922b9d3b4d7413ea767cd2573c3c61dbc4f6807eb0c57d04921127506
4
+ data.tar.gz: 30731eb94edded445817bfeccba91e3e924a4bf8397100dd2bbd673ae4ef8082
5
5
  SHA512:
6
- metadata.gz: c9245c499e7a19f8d25941573e04f76828815fd3cb8842faf9e8a6428ee09092d1bea871f1d080fb2e1b2a47b89ce178816e76244f763f4ad9b72176eca4a6fc
7
- data.tar.gz: 1c953c8ab828e06929b3cb118ac72000a0355eb00e7600cc4aa2abc14183734a715dc90963ce961f61d56fe341f7891b5d4ba4b73d8468bd471c35f48e96ea4d
6
+ metadata.gz: f2c49aafdeaeaa64ff4a17ff4001b4e1deb7c39c77310f5fdbed84e6115558d1986701cc12b958e6fb709333f7956fa9ec679033889f78c7b4bfd5fbd47a7d27
7
+ data.tar.gz: 0c93d41401ba5afc7d6edeedacaace19ac3b76140bd803420d6e41343301536d37eea83ad85640950e703b6da2b0dcc533500122b9c862ee7a23d6780ee4f8db
@@ -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
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.6.3
4
+
5
+ * Support activerecord 7.2.
6
+
3
7
  ## 1.6.2
4
8
 
5
9
  * Add `frozen_string_literal: true`.
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem "rails", ">= 5.0"
6
+ gem "sqlite3"
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
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+
5
6
  gem "loofah", "~> 2.19.1"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+
5
6
  gem "loofah", "~> 2.19.1"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+
5
6
  gem "loofah", "~> 2.19.1"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
4
  gem "sqlite3", "~> 1.4.0"
5
+
5
6
  gem "psych", "~> 3.3.0"
6
7
 
7
8
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.2.0"
4
+ gem "sqlite3"
5
+
6
+ gemspec path: "../"
@@ -26,7 +26,11 @@ module EnumIsh
26
26
  enum.mapping.fetch(value, value)
27
27
  end
28
28
 
29
- if ActiveRecord.version > Gem::Version.new('7.0.0.a')
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EnumIsh
4
- VERSION = '1.6.2'
4
+ VERSION = '1.6.3'
5
5
  end
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.2
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-06-23 00:00:00.000000000 Z
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.3.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