active_attr 0.15.4 → 0.17.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/test.yaml +147 -95
- data/CHANGELOG.md +12 -1
- data/Gemfile +3 -3
- data/active_attr.gemspec +4 -4
- data/gemfiles/rails_5_0.gemfile +1 -0
- data/gemfiles/rails_5_1.gemfile +1 -0
- data/gemfiles/rails_5_2.gemfile +1 -0
- data/gemfiles/rails_6_0.gemfile +1 -0
- data/gemfiles/rails_7_0.gemfile +10 -0
- data/gemfiles/rails_7_1.gemfile +10 -0
- data/gemfiles/rails_head.gemfile +4 -4
- data/lib/active_attr/attributes.rb +10 -2
- data/lib/active_attr/version.rb +1 -1
- data/spec/unit/active_attr/attributes_spec.rb +1 -1
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fac3d7c3dc2b6e3351f3f144a9fd379b09381bfe5220fdec0043311a74b3f43
|
4
|
+
data.tar.gz: 6d3e3bb9ce3ba41e095af393a114d32d1619b77f8b43aea065536eaec9dbbbb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b92733237a7fa72447e2d8862e70a4d68f5b22379399caae3a74cd621ef169aa95c83316355ba3933a0900cdf335522e646153f8bede75328832437d7980bb66
|
7
|
+
data.tar.gz: 36227fd319ec4e30015c64b69af7ec574b051bae40d7a079512277abe08cfb1927cb31a131209079328d444c466b1fef87af8ca85fdb7f16688bca89e45dda92
|
data/.github/workflows/test.yaml
CHANGED
@@ -9,20 +9,23 @@ on:
|
|
9
9
|
jobs:
|
10
10
|
test:
|
11
11
|
name: Ruby ${{ matrix.ruby }} with ${{ matrix.gemfile }}
|
12
|
-
runs-on: ubuntu-
|
12
|
+
runs-on: ubuntu-20.04
|
13
13
|
continue-on-error: ${{ contains(matrix.ruby, 'head') || contains(matrix.gemfile, 'head') }}
|
14
14
|
strategy:
|
15
15
|
fail-fast: false
|
16
16
|
matrix:
|
17
17
|
ruby:
|
18
|
-
- 2.1
|
19
|
-
- 2.2
|
20
|
-
- 2.3
|
21
|
-
- 2.4
|
22
|
-
- 2.5
|
23
|
-
- 2.6
|
24
|
-
- 2.7
|
25
|
-
- 3.0
|
18
|
+
- "2.1"
|
19
|
+
- "2.2"
|
20
|
+
- "2.3"
|
21
|
+
- "2.4"
|
22
|
+
- "2.5"
|
23
|
+
- "2.6"
|
24
|
+
- "2.7"
|
25
|
+
- "3.0"
|
26
|
+
- "3.1"
|
27
|
+
- "3.2"
|
28
|
+
- "3.3"
|
26
29
|
- truffleruby-head
|
27
30
|
gemfile:
|
28
31
|
- gemfiles/rails_3_0.gemfile
|
@@ -36,140 +39,182 @@ jobs:
|
|
36
39
|
- gemfiles/rails_5_2.gemfile
|
37
40
|
- gemfiles/rails_6_0.gemfile
|
38
41
|
- gemfiles/rails_6_1.gemfile
|
42
|
+
- gemfiles/rails_7_0.gemfile
|
43
|
+
- gemfiles/rails_7_1.gemfile
|
39
44
|
- Gemfile
|
40
45
|
- gemfiles/rails_head.gemfile
|
41
46
|
exclude:
|
42
|
-
- ruby: 1
|
43
|
-
gemfile: gemfiles/rails_4_0.gemfile
|
44
|
-
- ruby: 1.9.2
|
45
|
-
gemfile: gemfiles/rails_4_1.gemfile
|
46
|
-
- ruby: 1.9.2
|
47
|
-
gemfile: gemfiles/rails_4_2.gemfile
|
48
|
-
- ruby: 1.9.2
|
47
|
+
- ruby: "2.1"
|
49
48
|
gemfile: gemfiles/rails_5_0.gemfile
|
50
|
-
- ruby: 1
|
49
|
+
- ruby: "2.1"
|
51
50
|
gemfile: gemfiles/rails_5_1.gemfile
|
52
|
-
- ruby: 1
|
51
|
+
- ruby: "2.1"
|
53
52
|
gemfile: gemfiles/rails_5_2.gemfile
|
54
|
-
- ruby: 1
|
53
|
+
- ruby: "2.1"
|
55
54
|
gemfile: gemfiles/rails_6_0.gemfile
|
56
|
-
- ruby: 1
|
55
|
+
- ruby: "2.1"
|
57
56
|
gemfile: gemfiles/rails_6_1.gemfile
|
58
|
-
- ruby: 1
|
57
|
+
- ruby: "2.1"
|
58
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
59
|
+
- ruby: "2.1"
|
60
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
61
|
+
- ruby: "2.1"
|
59
62
|
gemfile: Gemfile
|
60
|
-
- ruby: 1
|
63
|
+
- ruby: "2.1"
|
61
64
|
gemfile: gemfiles/rails_head.gemfile
|
62
|
-
- ruby:
|
63
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
64
|
-
- ruby: 1.9.3
|
65
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
66
|
-
- ruby: 1.9.3
|
67
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
68
|
-
- ruby: 1.9.3
|
65
|
+
- ruby: "2.2"
|
69
66
|
gemfile: gemfiles/rails_6_0.gemfile
|
70
|
-
- ruby:
|
67
|
+
- ruby: "2.2"
|
71
68
|
gemfile: gemfiles/rails_6_1.gemfile
|
72
|
-
- ruby:
|
69
|
+
- ruby: "2.2"
|
70
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
71
|
+
- ruby: "2.2"
|
72
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
73
|
+
- ruby: "2.2"
|
73
74
|
gemfile: Gemfile
|
74
|
-
- ruby:
|
75
|
+
- ruby: "2.2"
|
75
76
|
gemfile: gemfiles/rails_head.gemfile
|
76
|
-
- ruby: 2.
|
77
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
78
|
-
- ruby: 2.0.0
|
79
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
80
|
-
- ruby: 2.0.0
|
81
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
82
|
-
- ruby: 2.0.0
|
77
|
+
- ruby: "2.3"
|
83
78
|
gemfile: gemfiles/rails_6_0.gemfile
|
84
|
-
- ruby: 2.
|
79
|
+
- ruby: "2.3"
|
85
80
|
gemfile: gemfiles/rails_6_1.gemfile
|
86
|
-
- ruby: 2.
|
81
|
+
- ruby: "2.3"
|
82
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
83
|
+
- ruby: "2.3"
|
84
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
85
|
+
- ruby: "2.3"
|
87
86
|
gemfile: Gemfile
|
88
|
-
- ruby: 2.
|
87
|
+
- ruby: "2.3"
|
89
88
|
gemfile: gemfiles/rails_head.gemfile
|
90
|
-
- ruby: 2.
|
91
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
92
|
-
- ruby: 2.1.9
|
93
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
94
|
-
- ruby: 2.1.9
|
95
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
96
|
-
- ruby: 2.1.9
|
89
|
+
- ruby: "2.4"
|
97
90
|
gemfile: gemfiles/rails_6_0.gemfile
|
98
|
-
- ruby: 2.
|
91
|
+
- ruby: "2.4"
|
99
92
|
gemfile: gemfiles/rails_6_1.gemfile
|
100
|
-
- ruby: 2.
|
93
|
+
- ruby: "2.4"
|
94
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
95
|
+
- ruby: "2.4"
|
96
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
97
|
+
- ruby: "2.4"
|
101
98
|
gemfile: Gemfile
|
102
|
-
- ruby: 2.
|
99
|
+
- ruby: "2.4"
|
103
100
|
gemfile: gemfiles/rails_head.gemfile
|
104
|
-
- ruby: 2.
|
105
|
-
gemfile: gemfiles/
|
106
|
-
- ruby: 2.
|
101
|
+
- ruby: "2.5"
|
102
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
103
|
+
- ruby: "2.5"
|
107
104
|
gemfile: gemfiles/rails_6_1.gemfile
|
108
|
-
- ruby: 2.
|
105
|
+
- ruby: "2.5"
|
106
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
107
|
+
- ruby: "2.5"
|
108
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
109
|
+
- ruby: "2.5"
|
109
110
|
gemfile: Gemfile
|
110
|
-
- ruby: 2.
|
111
|
+
- ruby: "2.5"
|
111
112
|
gemfile: gemfiles/rails_head.gemfile
|
112
|
-
- ruby: 2.
|
113
|
-
gemfile: gemfiles/
|
114
|
-
- ruby: 2.
|
113
|
+
- ruby: "2.6"
|
114
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
115
|
+
- ruby: "2.6"
|
115
116
|
gemfile: gemfiles/rails_6_1.gemfile
|
116
|
-
- ruby: 2.
|
117
|
+
- ruby: "2.6"
|
118
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
119
|
+
- ruby: "2.6"
|
120
|
+
gemfile: gemfiles/rails_7_1.gemfile
|
121
|
+
- ruby: "2.6"
|
117
122
|
gemfile: Gemfile
|
118
|
-
- ruby: 2.
|
123
|
+
- ruby: "2.6"
|
119
124
|
gemfile: gemfiles/rails_head.gemfile
|
120
|
-
- ruby: 2.
|
121
|
-
gemfile: gemfiles/
|
122
|
-
- ruby: 2.
|
123
|
-
gemfile: gemfiles/
|
124
|
-
- ruby: 2.
|
125
|
+
- ruby: "2.7"
|
126
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
127
|
+
- ruby: "2.7"
|
128
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
129
|
+
- ruby: "2.7"
|
130
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
131
|
+
- ruby: "2.7"
|
132
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
133
|
+
- ruby: "2.7"
|
134
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
135
|
+
- ruby: "2.7"
|
136
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
137
|
+
- ruby: "2.7"
|
125
138
|
gemfile: Gemfile
|
126
|
-
- ruby: 2.
|
139
|
+
- ruby: "2.7"
|
127
140
|
gemfile: gemfiles/rails_head.gemfile
|
128
|
-
- ruby:
|
141
|
+
- ruby: "3.0"
|
129
142
|
gemfile: gemfiles/rails_3_0.gemfile
|
130
|
-
- ruby:
|
131
|
-
gemfile: gemfiles/
|
132
|
-
- ruby:
|
143
|
+
- ruby: "3.0"
|
144
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
145
|
+
- ruby: "3.0"
|
146
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
147
|
+
- ruby: "3.0"
|
148
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
149
|
+
- ruby: "3.0"
|
150
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
151
|
+
- ruby: "3.0"
|
152
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
153
|
+
- ruby: "3.0"
|
154
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
155
|
+
- ruby: "3.0"
|
156
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
157
|
+
- ruby: "3.0"
|
158
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
159
|
+
- ruby: "3.0"
|
133
160
|
gemfile: Gemfile
|
134
|
-
- ruby:
|
161
|
+
- ruby: "3.0"
|
135
162
|
gemfile: gemfiles/rails_head.gemfile
|
136
|
-
- ruby:
|
163
|
+
- ruby: "3.1"
|
137
164
|
gemfile: gemfiles/rails_3_0.gemfile
|
138
|
-
- ruby:
|
139
|
-
gemfile: gemfiles/
|
140
|
-
- ruby:
|
141
|
-
gemfile:
|
142
|
-
- ruby:
|
165
|
+
- ruby: "3.1"
|
166
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
167
|
+
- ruby: "3.1"
|
168
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
169
|
+
- ruby: "3.1"
|
170
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
171
|
+
- ruby: "3.1"
|
172
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
173
|
+
- ruby: "3.1"
|
174
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
175
|
+
- ruby: "3.1"
|
176
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
177
|
+
- ruby: "3.1"
|
178
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
179
|
+
- ruby: "3.1"
|
180
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
181
|
+
- ruby: "3.1"
|
143
182
|
gemfile: gemfiles/rails_head.gemfile
|
144
|
-
- ruby: 2
|
183
|
+
- ruby: "3.2"
|
145
184
|
gemfile: gemfiles/rails_3_0.gemfile
|
146
|
-
- ruby: 2
|
185
|
+
- ruby: "3.2"
|
147
186
|
gemfile: gemfiles/rails_3_1.gemfile
|
148
|
-
- ruby: 2
|
187
|
+
- ruby: "3.2"
|
149
188
|
gemfile: gemfiles/rails_3_2.gemfile
|
150
|
-
- ruby: 2
|
189
|
+
- ruby: "3.2"
|
151
190
|
gemfile: gemfiles/rails_4_0.gemfile
|
152
|
-
- ruby: 2
|
191
|
+
- ruby: "3.2"
|
153
192
|
gemfile: gemfiles/rails_4_1.gemfile
|
154
|
-
- ruby: 2
|
193
|
+
- ruby: "3.2"
|
155
194
|
gemfile: gemfiles/rails_4_2.gemfile
|
156
|
-
- ruby: 3.
|
195
|
+
- ruby: "3.2"
|
196
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
197
|
+
- ruby: "3.2"
|
198
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
199
|
+
- ruby: "3.2"
|
200
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
201
|
+
- ruby: "3.3"
|
157
202
|
gemfile: gemfiles/rails_3_0.gemfile
|
158
|
-
- ruby: 3.
|
203
|
+
- ruby: "3.3"
|
159
204
|
gemfile: gemfiles/rails_3_1.gemfile
|
160
|
-
- ruby: 3.
|
205
|
+
- ruby: "3.3"
|
161
206
|
gemfile: gemfiles/rails_3_2.gemfile
|
162
|
-
- ruby: 3.
|
207
|
+
- ruby: "3.3"
|
163
208
|
gemfile: gemfiles/rails_4_0.gemfile
|
164
|
-
- ruby: 3.
|
209
|
+
- ruby: "3.3"
|
165
210
|
gemfile: gemfiles/rails_4_1.gemfile
|
166
|
-
- ruby: 3.
|
211
|
+
- ruby: "3.3"
|
167
212
|
gemfile: gemfiles/rails_4_2.gemfile
|
168
|
-
- ruby: 3.
|
213
|
+
- ruby: "3.3"
|
169
214
|
gemfile: gemfiles/rails_5_0.gemfile
|
170
|
-
- ruby: 3.
|
215
|
+
- ruby: "3.3"
|
171
216
|
gemfile: gemfiles/rails_5_1.gemfile
|
172
|
-
- ruby: 3.
|
217
|
+
- ruby: "3.3"
|
173
218
|
gemfile: gemfiles/rails_5_2.gemfile
|
174
219
|
- ruby: truffleruby-head
|
175
220
|
gemfile: gemfiles/rails_3_0.gemfile
|
@@ -183,13 +228,20 @@ jobs:
|
|
183
228
|
gemfile: gemfiles/rails_4_1.gemfile
|
184
229
|
- ruby: truffleruby-head
|
185
230
|
gemfile: gemfiles/rails_4_2.gemfile
|
231
|
+
- ruby: truffleruby-head
|
232
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
233
|
+
- ruby: truffleruby-head
|
234
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
235
|
+
- ruby: truffleruby-head
|
236
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
186
237
|
env:
|
187
238
|
Rails: ${{ matrix.rails }}
|
188
239
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
240
|
+
BUNDLE_WITHOUT: development
|
189
241
|
|
190
242
|
steps:
|
191
243
|
- name: Checkout code
|
192
|
-
uses: actions/checkout@
|
244
|
+
uses: actions/checkout@v4
|
193
245
|
- name: Nokogiri support for TruffleRuby
|
194
246
|
run: sudo apt-get -yqq install libxml2-dev libxslt-dev
|
195
247
|
if: ${{ matrix.ruby == 'truffleruby-head' }}
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
# ActiveAttr 0.
|
1
|
+
# ActiveAttr 0.17.0 (September 26, 2024)
|
2
|
+
|
3
|
+
* ActiveAttr now supports Ruby 3.3
|
4
|
+
* ActiveAttr now supports Rails 7.2 (thanks @eclecticCodingND)
|
5
|
+
|
6
|
+
# ActiveAttr 0.16.0 (October 30, 2023)
|
7
|
+
|
8
|
+
* ActiveAttr now supports Ruby 3.1
|
9
|
+
* ActiveAttr now supports Ruby 3.2
|
10
|
+
* ActiveAttr now supports Rails 7.1 (thanks @mathieujobin)
|
11
|
+
|
12
|
+
# ActiveAttr 0.15.4 (December 16, 2021)
|
2
13
|
|
3
14
|
* ActiveAttr now supports Rails 7.0 (Steve Hoeksema)
|
4
15
|
|
data/Gemfile
CHANGED
@@ -2,9 +2,9 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec :development_group => :test
|
4
4
|
|
5
|
-
gem "activemodel", "~> 7.
|
6
|
-
gem "activesupport", "~> 7.
|
7
|
-
gem "actionpack", "~> 7.
|
5
|
+
gem "activemodel", "~> 7.2.0"
|
6
|
+
gem "activesupport", "~> 7.2.0"
|
7
|
+
gem "actionpack", "~> 7.2.0"
|
8
8
|
gem "activemodel-serializers-xml", :group => :test
|
9
9
|
gem "rexml", :group => :test
|
10
10
|
gem "protected_attributes_continued", :group => :test
|
data/active_attr.gemspec
CHANGED
@@ -22,12 +22,12 @@ Gem::Specification.new do |gem|
|
|
22
22
|
|
23
23
|
gem.required_ruby_version = ">= 2.1.0"
|
24
24
|
|
25
|
-
gem.add_runtime_dependency "actionpack", ">= 3.0.2", "<
|
26
|
-
gem.add_runtime_dependency "activemodel", ">= 3.0.2", "<
|
27
|
-
gem.add_runtime_dependency "activesupport", ">= 3.0.2", "<
|
25
|
+
gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 8.0"
|
26
|
+
gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 8.0"
|
27
|
+
gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 8.0"
|
28
28
|
|
29
29
|
gem.add_development_dependency "bundler"
|
30
|
-
gem.add_development_dependency "factory_bot", "<
|
30
|
+
gem.add_development_dependency "factory_bot", "< 7.0"
|
31
31
|
gem.add_development_dependency "minitest"
|
32
32
|
gem.add_development_dependency "rake", ">= 0.9.0", "< 13.1"
|
33
33
|
gem.add_development_dependency "rspec", "~> 3.0"
|
data/gemfiles/rails_5_0.gemfile
CHANGED
data/gemfiles/rails_5_1.gemfile
CHANGED
data/gemfiles/rails_5_2.gemfile
CHANGED
data/gemfiles/rails_6_0.gemfile
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec :development_group => :test, :path => ".."
|
4
|
+
|
5
|
+
gem "activemodel", "~> 7.0.0"
|
6
|
+
gem "activesupport", "~> 7.0.0"
|
7
|
+
gem "actionpack", "~> 7.0.0"
|
8
|
+
gem "activemodel-serializers-xml", :group => :test
|
9
|
+
gem "rexml", :group => :test
|
10
|
+
gem "protected_attributes_continued", :group => :test
|
@@ -0,0 +1,10 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec :development_group => :test, :path => ".."
|
4
|
+
|
5
|
+
gem "activemodel", "~> 7.1.0"
|
6
|
+
gem "activesupport", "~> 7.1.0"
|
7
|
+
gem "actionpack", "~> 7.1.0"
|
8
|
+
gem "activemodel-serializers-xml", :group => :test
|
9
|
+
gem "rexml", :group => :test
|
10
|
+
gem "protected_attributes_continued", :group => :test
|
data/gemfiles/rails_head.gemfile
CHANGED
@@ -2,13 +2,13 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec :development_group => :test, :path => ".."
|
4
4
|
|
5
|
-
git "
|
5
|
+
git "https://github.com/rails/rails.git", :branch => "main" do
|
6
6
|
gem "activemodel"
|
7
7
|
gem "activesupport"
|
8
8
|
gem "actionpack"
|
9
9
|
end
|
10
10
|
|
11
|
-
gem "activemodel-serializers-xml", :group => :test, :git => "
|
11
|
+
gem "activemodel-serializers-xml", :group => :test, :git => "https://github.com/rails/activemodel-serializers-xml.git"
|
12
12
|
gem "rexml", :group => :test
|
13
|
-
gem "protected_attributes_continued", :group => :test
|
14
|
-
gem "rack", :group => :test, :git => "
|
13
|
+
gem "protected_attributes_continued", :group => :test
|
14
|
+
gem "rack", :group => :test, :git => "https://github.com/rack/rack.git", :branch => "main"
|
@@ -66,7 +66,7 @@ module ActiveAttr
|
|
66
66
|
class_attribute :filter_attributes, :instance_writer => false
|
67
67
|
self.filter_attributes = Attributes.filter_attributes
|
68
68
|
|
69
|
-
attribute_method_suffix "" if
|
69
|
+
attribute_method_suffix "" if attribute_method_patterns.none? { |matcher| matcher.prefix == "" && matcher.suffix == "" }
|
70
70
|
attribute_method_suffix "="
|
71
71
|
end
|
72
72
|
|
@@ -323,6 +323,14 @@ module ActiveAttr
|
|
323
323
|
"#{name}#{attributes_list}"
|
324
324
|
end
|
325
325
|
|
326
|
+
# Renamed in ActiveModel 7.1
|
327
|
+
#
|
328
|
+
# @private
|
329
|
+
# @since 0.16.0
|
330
|
+
def attribute_method_patterns
|
331
|
+
attribute_method_matchers
|
332
|
+
end unless method_defined?(:attribute_method_patterns)
|
333
|
+
|
326
334
|
protected
|
327
335
|
|
328
336
|
# Assign a set of attribute definitions, used when subclassing models
|
@@ -346,7 +354,7 @@ module ActiveAttr
|
|
346
354
|
#
|
347
355
|
# @since 0.6.0
|
348
356
|
def attribute_methods(name)
|
349
|
-
|
357
|
+
attribute_method_patterns.map { |matcher| matcher.method_name name }
|
350
358
|
end
|
351
359
|
|
352
360
|
# Ruby inherited hook to assign superclass attributes to subclasses
|
data/lib/active_attr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_attr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Griego
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: 3.0.2
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '8.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: 3.0.2
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '8.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activemodel
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: 3.0.2
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '8.0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
version: 3.0.2
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '8.0'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: activesupport
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
version: 3.0.2
|
61
61
|
- - "<"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '8.0'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,7 +70,7 @@ dependencies:
|
|
70
70
|
version: 3.0.2
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
73
|
+
version: '8.0'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: bundler
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,14 +91,14 @@ dependencies:
|
|
91
91
|
requirements:
|
92
92
|
- - "<"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
94
|
+
version: '7.0'
|
95
95
|
type: :development
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - "<"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
101
|
+
version: '7.0'
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: minitest
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,6 +191,8 @@ files:
|
|
191
191
|
- gemfiles/rails_5_2.gemfile
|
192
192
|
- gemfiles/rails_6_0.gemfile
|
193
193
|
- gemfiles/rails_6_1.gemfile
|
194
|
+
- gemfiles/rails_7_0.gemfile
|
195
|
+
- gemfiles/rails_7_1.gemfile
|
194
196
|
- gemfiles/rails_head.gemfile
|
195
197
|
- lib/active_attr.rb
|
196
198
|
- lib/active_attr/attribute_defaults.rb
|
@@ -284,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
286
|
- !ruby/object:Gem::Version
|
285
287
|
version: '0'
|
286
288
|
requirements: []
|
287
|
-
rubygems_version: 3.
|
289
|
+
rubygems_version: 3.5.9
|
288
290
|
signing_key:
|
289
291
|
specification_version: 4
|
290
292
|
summary: What ActiveModel left out
|