act_with_flags 3.1.3 → 3.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +20 -14
- data/.gitignore +7 -0
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Appraisals +15 -7
- data/Gemfile +2 -1
- data/Gemfile.lock +223 -133
- data/MIT-LICENSE +1 -3
- data/README.md +7 -5
- data/act_with_flags.gemspec +4 -5
- data/gemfiles/rails_7.1.gemfile +16 -0
- data/gemfiles/rails_7.2.gemfile +16 -0
- data/lib/act_with_flags/version.rb +3 -1
- data/lib/act_with_flags.rb +2 -2
- data/test/coding_one_test.rb +2 -2
- data/test/internal/app/models/application_record.rb +1 -1
- data/test/test_helper.rb +0 -1
- metadata +9 -22
- data/.github/workflows/lint.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 815b31d08e375476419a13814ec45a942bca06ada69001ead4d93b4fb798a6b4
|
4
|
+
data.tar.gz: 1392ca866e08c8798be77bb00e9e8972ccc62f61d720c1b33c1df7d17e0d096a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a9aa9dde47c3d564e41b66f0a18389821f9fba534a633ecea46adb980632bda5c5ce7ecc59e54df6474c4283706f8a59c0b45a71423f1607f5d3088aa256609
|
7
|
+
data.tar.gz: 26ac3ba8d0b88160967bcb1f1b2787d4d10c3b1fa575b9e57a0bd9d9a0082519a3aa574806ab30bfd715f544f1eca8dd222c6e60bd135e41e64852e4419a932d
|
data/.github/workflows/rake.yml
CHANGED
@@ -8,19 +8,25 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
ruby_version: ["3.2", "3.3"]
|
12
|
+
gemfile:
|
13
|
+
- Gemfile
|
14
|
+
- gemfiles/Gemfile.rails-7.2
|
15
|
+
- gemfiles/Gemfile.rails-7.1
|
16
|
+
runs-on: ubuntu-latest
|
15
17
|
|
16
18
|
steps:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
- uses: actions/checkout@v4
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby_version }}
|
24
|
+
bundler-cache: true
|
25
|
+
- name: Bundle install
|
26
|
+
run: |
|
27
|
+
bundle config set frozen false
|
28
|
+
bundle config path /home/runner/bundle
|
29
|
+
bundle install
|
30
|
+
bundle update
|
31
|
+
- name: Build and test with Rake
|
32
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-7.
|
1
|
+
rails-7.2
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.5
|
data/Appraisals
CHANGED
@@ -1,15 +1,23 @@
|
|
1
|
-
appraise "rails-7.
|
2
|
-
gem "rails", "~> 7.
|
1
|
+
appraise "rails-7.2" do
|
2
|
+
gem "rails", "~> 7.2"
|
3
3
|
end
|
4
4
|
|
5
|
+
appraise "rails-7.1" do
|
6
|
+
gem "rails", "~> 7.1"
|
7
|
+
end
|
8
|
+
|
9
|
+
# appraise "rails-7.0" do
|
10
|
+
# gem "rails", "~> 7.0"
|
11
|
+
# end
|
12
|
+
#
|
5
13
|
# appraise "rails-6.1" do
|
6
14
|
# gem "rails", "~> 6.0"
|
7
15
|
# end
|
8
|
-
|
9
|
-
appraise "rails-6.0" do
|
10
|
-
|
11
|
-
end
|
12
|
-
|
16
|
+
#
|
17
|
+
# appraise "rails-6.0" do
|
18
|
+
# gem "rails", "~> 6.0.0"
|
19
|
+
# end
|
20
|
+
#
|
13
21
|
# appraise 'rails-5.2' do
|
14
22
|
# gem 'rails', '~> 5.2.0'
|
15
23
|
# end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,208 +1,298 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
act_with_flags (3.1.
|
4
|
+
act_with_flags (3.1.5)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (7.
|
10
|
-
actionpack (= 7.
|
11
|
-
activesupport (= 7.
|
9
|
+
actioncable (7.2.1.1)
|
10
|
+
actionpack (= 7.2.1.1)
|
11
|
+
activesupport (= 7.2.1.1)
|
12
12
|
nio4r (~> 2.0)
|
13
13
|
websocket-driver (>= 0.6.1)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
activesupport (= 7.0.4.3)
|
37
|
-
rack (~> 2.0, >= 2.2.0)
|
14
|
+
zeitwerk (~> 2.6)
|
15
|
+
actionmailbox (7.2.1.1)
|
16
|
+
actionpack (= 7.2.1.1)
|
17
|
+
activejob (= 7.2.1.1)
|
18
|
+
activerecord (= 7.2.1.1)
|
19
|
+
activestorage (= 7.2.1.1)
|
20
|
+
activesupport (= 7.2.1.1)
|
21
|
+
mail (>= 2.8.0)
|
22
|
+
actionmailer (7.2.1.1)
|
23
|
+
actionpack (= 7.2.1.1)
|
24
|
+
actionview (= 7.2.1.1)
|
25
|
+
activejob (= 7.2.1.1)
|
26
|
+
activesupport (= 7.2.1.1)
|
27
|
+
mail (>= 2.8.0)
|
28
|
+
rails-dom-testing (~> 2.2)
|
29
|
+
actionpack (7.2.1.1)
|
30
|
+
actionview (= 7.2.1.1)
|
31
|
+
activesupport (= 7.2.1.1)
|
32
|
+
nokogiri (>= 1.8.5)
|
33
|
+
racc
|
34
|
+
rack (>= 2.2.4, < 3.2)
|
35
|
+
rack-session (>= 1.0.1)
|
38
36
|
rack-test (>= 0.6.3)
|
39
|
-
rails-dom-testing (~> 2.
|
40
|
-
rails-html-sanitizer (~> 1.
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
37
|
+
rails-dom-testing (~> 2.2)
|
38
|
+
rails-html-sanitizer (~> 1.6)
|
39
|
+
useragent (~> 0.16)
|
40
|
+
actiontext (7.2.1.1)
|
41
|
+
actionpack (= 7.2.1.1)
|
42
|
+
activerecord (= 7.2.1.1)
|
43
|
+
activestorage (= 7.2.1.1)
|
44
|
+
activesupport (= 7.2.1.1)
|
46
45
|
globalid (>= 0.6.0)
|
47
46
|
nokogiri (>= 1.8.5)
|
48
|
-
actionview (7.
|
49
|
-
activesupport (= 7.
|
47
|
+
actionview (7.2.1.1)
|
48
|
+
activesupport (= 7.2.1.1)
|
50
49
|
builder (~> 3.1)
|
51
|
-
erubi (~> 1.
|
52
|
-
rails-dom-testing (~> 2.
|
53
|
-
rails-html-sanitizer (~> 1.
|
54
|
-
activejob (7.
|
55
|
-
activesupport (= 7.
|
50
|
+
erubi (~> 1.11)
|
51
|
+
rails-dom-testing (~> 2.2)
|
52
|
+
rails-html-sanitizer (~> 1.6)
|
53
|
+
activejob (7.2.1.1)
|
54
|
+
activesupport (= 7.2.1.1)
|
56
55
|
globalid (>= 0.3.6)
|
57
|
-
activemodel (7.
|
58
|
-
activesupport (= 7.
|
59
|
-
activerecord (7.
|
60
|
-
activemodel (= 7.
|
61
|
-
activesupport (= 7.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
56
|
+
activemodel (7.2.1.1)
|
57
|
+
activesupport (= 7.2.1.1)
|
58
|
+
activerecord (7.2.1.1)
|
59
|
+
activemodel (= 7.2.1.1)
|
60
|
+
activesupport (= 7.2.1.1)
|
61
|
+
timeout (>= 0.4.0)
|
62
|
+
activestorage (7.2.1.1)
|
63
|
+
actionpack (= 7.2.1.1)
|
64
|
+
activejob (= 7.2.1.1)
|
65
|
+
activerecord (= 7.2.1.1)
|
66
|
+
activesupport (= 7.2.1.1)
|
67
67
|
marcel (~> 1.0)
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
activesupport (7.2.1.1)
|
69
|
+
base64
|
70
|
+
bigdecimal
|
71
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
72
|
+
connection_pool (>= 2.2.5)
|
73
|
+
drb
|
71
74
|
i18n (>= 1.6, < 2)
|
75
|
+
logger (>= 1.4.2)
|
72
76
|
minitest (>= 5.1)
|
73
|
-
|
74
|
-
|
77
|
+
securerandom (>= 0.3)
|
78
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
79
|
+
appraisal (2.5.0)
|
75
80
|
bundler
|
76
81
|
rake
|
77
82
|
thor (>= 0.14.0)
|
78
83
|
ast (2.4.2)
|
79
|
-
|
80
|
-
|
81
|
-
|
84
|
+
base64 (0.2.0)
|
85
|
+
benchmark-ips (2.14.0)
|
86
|
+
bigdecimal (3.1.8)
|
87
|
+
builder (3.3.0)
|
88
|
+
combustion (1.5.0)
|
82
89
|
activesupport (>= 3.0.0)
|
83
90
|
railties (>= 3.0.0)
|
84
91
|
thor (>= 0.14.6)
|
85
|
-
concurrent-ruby (1.
|
92
|
+
concurrent-ruby (1.3.4)
|
93
|
+
connection_pool (2.4.1)
|
86
94
|
crass (1.0.6)
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
95
|
+
cuco (0.1.2)
|
96
|
+
listen
|
97
|
+
micro-optparse
|
98
|
+
date (3.3.4)
|
99
|
+
docile (1.4.1)
|
100
|
+
drb (2.2.1)
|
101
|
+
erubi (1.13.0)
|
102
|
+
ffi (1.17.0-aarch64-linux-gnu)
|
103
|
+
ffi (1.17.0-aarch64-linux-musl)
|
104
|
+
ffi (1.17.0-arm-linux-gnu)
|
105
|
+
ffi (1.17.0-arm-linux-musl)
|
106
|
+
ffi (1.17.0-arm64-darwin)
|
107
|
+
ffi (1.17.0-x86-linux-gnu)
|
108
|
+
ffi (1.17.0-x86-linux-musl)
|
109
|
+
ffi (1.17.0-x86_64-darwin)
|
110
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
111
|
+
ffi (1.17.0-x86_64-linux-musl)
|
112
|
+
globalid (1.2.1)
|
113
|
+
activesupport (>= 6.1)
|
114
|
+
i18n (1.14.6)
|
93
115
|
concurrent-ruby (~> 1.0)
|
94
|
-
|
116
|
+
io-console (0.7.2)
|
117
|
+
irb (1.14.1)
|
118
|
+
rdoc (>= 4.0.0)
|
119
|
+
reline (>= 0.4.2)
|
120
|
+
json (2.7.2)
|
95
121
|
language_server-protocol (3.17.0.3)
|
96
|
-
|
122
|
+
lint_roller (1.1.0)
|
123
|
+
listen (3.9.0)
|
124
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
125
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
126
|
+
logger (1.6.1)
|
127
|
+
loofah (2.22.0)
|
97
128
|
crass (~> 1.0.2)
|
98
|
-
nokogiri (>= 1.
|
129
|
+
nokogiri (>= 1.12.0)
|
99
130
|
mail (2.8.1)
|
100
131
|
mini_mime (>= 0.1.1)
|
101
132
|
net-imap
|
102
133
|
net-pop
|
103
134
|
net-smtp
|
104
|
-
marcel (1.0.
|
105
|
-
|
106
|
-
mini_mime (1.1.
|
107
|
-
minitest (5.
|
108
|
-
net-imap (0.
|
135
|
+
marcel (1.0.4)
|
136
|
+
micro-optparse (1.2.1)
|
137
|
+
mini_mime (1.1.5)
|
138
|
+
minitest (5.25.1)
|
139
|
+
net-imap (0.5.0)
|
109
140
|
date
|
110
141
|
net-protocol
|
111
142
|
net-pop (0.1.2)
|
112
143
|
net-protocol
|
113
|
-
net-protocol (0.2.
|
144
|
+
net-protocol (0.2.2)
|
114
145
|
timeout
|
115
|
-
net-smtp (0.
|
146
|
+
net-smtp (0.5.0)
|
116
147
|
net-protocol
|
117
|
-
nio4r (2.
|
118
|
-
nokogiri (1.
|
148
|
+
nio4r (2.7.3)
|
149
|
+
nokogiri (1.16.7-aarch64-linux)
|
150
|
+
racc (~> 1.4)
|
151
|
+
nokogiri (1.16.7-arm-linux)
|
152
|
+
racc (~> 1.4)
|
153
|
+
nokogiri (1.16.7-arm64-darwin)
|
154
|
+
racc (~> 1.4)
|
155
|
+
nokogiri (1.16.7-x86-linux)
|
156
|
+
racc (~> 1.4)
|
157
|
+
nokogiri (1.16.7-x86_64-darwin)
|
158
|
+
racc (~> 1.4)
|
159
|
+
nokogiri (1.16.7-x86_64-linux)
|
119
160
|
racc (~> 1.4)
|
120
|
-
|
121
|
-
|
122
|
-
parser (3.2.2.0)
|
161
|
+
parallel (1.26.3)
|
162
|
+
parser (3.3.5.0)
|
123
163
|
ast (~> 2.4.1)
|
124
|
-
|
125
|
-
|
164
|
+
racc
|
165
|
+
psych (5.1.2)
|
166
|
+
stringio
|
167
|
+
racc (1.8.1)
|
168
|
+
rack (3.1.8)
|
169
|
+
rack-session (2.0.0)
|
170
|
+
rack (>= 3.0.0)
|
126
171
|
rack-test (2.1.0)
|
127
172
|
rack (>= 1.3)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
173
|
+
rackup (2.1.0)
|
174
|
+
rack (>= 3)
|
175
|
+
webrick (~> 1.8)
|
176
|
+
rails (7.2.1.1)
|
177
|
+
actioncable (= 7.2.1.1)
|
178
|
+
actionmailbox (= 7.2.1.1)
|
179
|
+
actionmailer (= 7.2.1.1)
|
180
|
+
actionpack (= 7.2.1.1)
|
181
|
+
actiontext (= 7.2.1.1)
|
182
|
+
actionview (= 7.2.1.1)
|
183
|
+
activejob (= 7.2.1.1)
|
184
|
+
activemodel (= 7.2.1.1)
|
185
|
+
activerecord (= 7.2.1.1)
|
186
|
+
activestorage (= 7.2.1.1)
|
187
|
+
activesupport (= 7.2.1.1)
|
140
188
|
bundler (>= 1.15.0)
|
141
|
-
railties (= 7.
|
142
|
-
rails-dom-testing (2.0
|
143
|
-
activesupport (>=
|
189
|
+
railties (= 7.2.1.1)
|
190
|
+
rails-dom-testing (2.2.0)
|
191
|
+
activesupport (>= 5.0.0)
|
192
|
+
minitest
|
144
193
|
nokogiri (>= 1.6)
|
145
|
-
rails-html-sanitizer (1.
|
146
|
-
loofah (~> 2.
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
194
|
+
rails-html-sanitizer (1.6.0)
|
195
|
+
loofah (~> 2.21)
|
196
|
+
nokogiri (~> 1.14)
|
197
|
+
railties (7.2.1.1)
|
198
|
+
actionpack (= 7.2.1.1)
|
199
|
+
activesupport (= 7.2.1.1)
|
200
|
+
irb (~> 1.13)
|
201
|
+
rackup (>= 1.0.0)
|
151
202
|
rake (>= 12.2)
|
152
|
-
thor (~> 1.0)
|
153
|
-
zeitwerk (~> 2.
|
203
|
+
thor (~> 1.0, >= 1.2.2)
|
204
|
+
zeitwerk (~> 2.6)
|
154
205
|
rainbow (3.1.1)
|
155
|
-
rake (13.
|
156
|
-
|
157
|
-
|
206
|
+
rake (13.2.1)
|
207
|
+
rb-fsevent (0.11.2)
|
208
|
+
rb-inotify (0.11.1)
|
209
|
+
ffi (~> 1.0)
|
210
|
+
rdoc (6.7.0)
|
211
|
+
psych (>= 4.0.0)
|
212
|
+
regexp_parser (2.9.2)
|
213
|
+
reline (0.5.10)
|
214
|
+
io-console (~> 0.5)
|
158
215
|
ricecream (0.2.1)
|
159
|
-
rubocop (1.
|
216
|
+
rubocop (1.66.1)
|
160
217
|
json (~> 2.3)
|
218
|
+
language_server-protocol (>= 3.17.0)
|
161
219
|
parallel (~> 1.10)
|
162
|
-
parser (>= 3.
|
220
|
+
parser (>= 3.3.0.2)
|
163
221
|
rainbow (>= 2.2.2, < 4.0)
|
164
|
-
regexp_parser (>=
|
165
|
-
|
166
|
-
rubocop-ast (>= 1.26.0, < 2.0)
|
222
|
+
regexp_parser (>= 2.4, < 3.0)
|
223
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
167
224
|
ruby-progressbar (~> 1.7)
|
168
225
|
unicode-display_width (>= 2.4.0, < 3.0)
|
169
|
-
rubocop-ast (1.
|
170
|
-
parser (>= 3.
|
171
|
-
rubocop-performance (1.
|
172
|
-
rubocop (>= 1.
|
173
|
-
rubocop-ast (>=
|
226
|
+
rubocop-ast (1.32.3)
|
227
|
+
parser (>= 3.3.1.0)
|
228
|
+
rubocop-performance (1.22.1)
|
229
|
+
rubocop (>= 1.48.1, < 2.0)
|
230
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
174
231
|
ruby-progressbar (1.13.0)
|
232
|
+
securerandom (0.3.1)
|
175
233
|
simplecov (0.22.0)
|
176
234
|
docile (~> 1.1)
|
177
235
|
simplecov-html (~> 0.11)
|
178
236
|
simplecov_json_formatter (~> 0.1)
|
179
|
-
simplecov-html (0.
|
237
|
+
simplecov-html (0.13.1)
|
180
238
|
simplecov_json_formatter (0.1.4)
|
181
|
-
sqlite3 (1.
|
182
|
-
|
239
|
+
sqlite3 (2.1.0-aarch64-linux-gnu)
|
240
|
+
sqlite3 (2.1.0-aarch64-linux-musl)
|
241
|
+
sqlite3 (2.1.0-arm-linux-gnu)
|
242
|
+
sqlite3 (2.1.0-arm-linux-musl)
|
243
|
+
sqlite3 (2.1.0-arm64-darwin)
|
244
|
+
sqlite3 (2.1.0-x86-linux-gnu)
|
245
|
+
sqlite3 (2.1.0-x86-linux-musl)
|
246
|
+
sqlite3 (2.1.0-x86_64-darwin)
|
247
|
+
sqlite3 (2.1.0-x86_64-linux-gnu)
|
248
|
+
sqlite3 (2.1.0-x86_64-linux-musl)
|
249
|
+
standard (1.41.1)
|
183
250
|
language_server-protocol (~> 3.17.0.2)
|
184
|
-
|
185
|
-
rubocop
|
186
|
-
|
187
|
-
|
251
|
+
lint_roller (~> 1.0)
|
252
|
+
rubocop (~> 1.66.0)
|
253
|
+
standard-custom (~> 1.0.0)
|
254
|
+
standard-performance (~> 1.5)
|
255
|
+
standard-custom (1.0.2)
|
256
|
+
lint_roller (~> 1.0)
|
257
|
+
rubocop (~> 1.50)
|
258
|
+
standard-performance (1.5.0)
|
259
|
+
lint_roller (~> 1.1)
|
260
|
+
rubocop-performance (~> 1.22.0)
|
261
|
+
stringio (3.1.1)
|
262
|
+
thor (1.3.2)
|
263
|
+
timeout (0.4.1)
|
188
264
|
tzinfo (2.0.6)
|
189
265
|
concurrent-ruby (~> 1.0)
|
190
|
-
unicode-display_width (2.
|
191
|
-
|
266
|
+
unicode-display_width (2.6.0)
|
267
|
+
useragent (0.16.10)
|
268
|
+
webrick (1.8.2)
|
269
|
+
websocket-driver (0.7.6)
|
192
270
|
websocket-extensions (>= 0.1.0)
|
193
271
|
websocket-extensions (0.1.5)
|
194
|
-
zeitwerk (2.
|
272
|
+
zeitwerk (2.7.1)
|
195
273
|
|
196
274
|
PLATFORMS
|
197
|
-
|
275
|
+
aarch64-linux
|
276
|
+
aarch64-linux-gnu
|
277
|
+
aarch64-linux-musl
|
278
|
+
arm-linux
|
279
|
+
arm-linux-gnu
|
280
|
+
arm-linux-musl
|
281
|
+
arm64-darwin
|
282
|
+
x86-linux
|
283
|
+
x86-linux-gnu
|
284
|
+
x86-linux-musl
|
285
|
+
x86_64-darwin
|
286
|
+
x86_64-linux-gnu
|
287
|
+
x86_64-linux-musl
|
198
288
|
|
199
289
|
DEPENDENCIES
|
200
290
|
act_with_flags!
|
201
291
|
appraisal
|
202
292
|
benchmark-ips
|
203
293
|
combustion
|
294
|
+
cuco
|
204
295
|
minitest
|
205
|
-
observr
|
206
296
|
rails
|
207
297
|
ricecream
|
208
298
|
simplecov
|
@@ -210,4 +300,4 @@ DEPENDENCIES
|
|
210
300
|
standard
|
211
301
|
|
212
302
|
BUNDLED WITH
|
213
|
-
2.
|
303
|
+
2.5.22
|
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Copyright (c) 2019-2023 Dittmar Krall (www.matiq.com)
|
1
|
+
Copyright (c) 2019-2024 Dittmar Krall (www.matiq.com)
|
4
2
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# ActWithFlags
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/act_with_flags.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/act_with_flags.svg)](http://badge.fury.io/rb/act_with_flags)
|
4
|
+
[![GEM Downloads](https://img.shields.io/gem/dt/act_with_flags?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/act_with_flags)
|
5
|
+
[![rake](https://github.com/matique/act_with_flags/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/act_with_flags/actions/workflows/rake.yml)
|
6
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
|
7
|
+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
|
4
8
|
|
5
9
|
A Rails gem required by key.matiq.
|
6
10
|
|
@@ -123,7 +127,5 @@ Further reading:
|
|
123
127
|
|
124
128
|
## Miscellaneous
|
125
129
|
|
126
|
-
Copyright (c) 2019-
|
127
|
-
released under the MIT license
|
128
|
-
|
129
|
-
* https://opensource.org/licenses/MIT
|
130
|
+
Copyright (c) 2019-2024 Dittmar Krall (www.matiq.com),
|
131
|
+
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/act_with_flags.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = %(Handles flags/booleans in a Rails model instance)
|
10
10
|
s.authors = ["Dittmar Krall"]
|
11
11
|
s.email = ["dittmar.krall@matiq.com"]
|
12
|
-
s.homepage = "
|
12
|
+
s.homepage = "https://github.com/matique/act_with_flags"
|
13
13
|
|
14
14
|
s.license = "MIT"
|
15
15
|
s.platform = Gem::Platform::RUBY
|
@@ -18,8 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = `git ls-files -z`.split("\x0")
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_development_dependency "appraisal"
|
22
|
-
s.add_development_dependency "combustion"
|
23
|
-
s.add_development_dependency "minitest"
|
24
|
-
s.add_development_dependency "sqlite3"
|
21
|
+
s.add_development_dependency "appraisal", ">= 0"
|
22
|
+
s.add_development_dependency "combustion", ">= 0"
|
23
|
+
s.add_development_dependency "minitest", ">= 0"
|
25
24
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rails", "~> 7.1"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "benchmark-ips"
|
9
|
+
gem "cuco"
|
10
|
+
gem "ricecream"
|
11
|
+
gem "sqlite3"
|
12
|
+
gem "simplecov", require: false
|
13
|
+
gem "standard", require: false
|
14
|
+
end
|
15
|
+
|
16
|
+
gemspec path: "../"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rails", "~> 7.2"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "benchmark-ips"
|
9
|
+
gem "cuco"
|
10
|
+
gem "ricecream"
|
11
|
+
gem "sqlite3"
|
12
|
+
gem "simplecov", require: false
|
13
|
+
gem "standard", require: false
|
14
|
+
end
|
15
|
+
|
16
|
+
gemspec path: "../"
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module ActWithFlags
|
4
|
-
VERSION = "3.1.
|
4
|
+
VERSION = "3.1.6" # 2024-10-20
|
5
|
+
# VERSION = "3.1.5" # 2023-12-11
|
6
|
+
# VERSION = "3.1.3" # 2023-04-18
|
5
7
|
# VERSION = "3.1.2" # 2022-12-12
|
6
8
|
# VERSION = "3.1.1" # 2022-09-01
|
7
9
|
# VERSION = "3.1.0" # 2022-08-29
|
data/lib/act_with_flags.rb
CHANGED
data/test/coding_one_test.rb
CHANGED
@@ -20,7 +20,7 @@ describe "Internal One Flag" do
|
|
20
20
|
it "checks definition of methods" do
|
21
21
|
msg = "method '#{flag}' not defined"
|
22
22
|
assert order.respond_to?(flag.to_s), msg
|
23
|
-
assert order.respond_to?("#{flag}?"), msg
|
24
|
-
assert order.respond_to?("#{flag}="), msg
|
23
|
+
assert order.respond_to?(:"#{flag}?"), msg
|
24
|
+
assert order.respond_to?(:"#{flag}="), msg
|
25
25
|
end
|
26
26
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: act_with_flags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '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
55
|
description: Handles flags/booleans in a Rails model instance
|
70
56
|
email:
|
71
57
|
- dittmar.krall@matiq.com
|
@@ -73,7 +59,6 @@ executables: []
|
|
73
59
|
extensions: []
|
74
60
|
extra_rdoc_files: []
|
75
61
|
files:
|
76
|
-
- ".github/workflows/lint.yml"
|
77
62
|
- ".github/workflows/rake.yml"
|
78
63
|
- ".gitignore"
|
79
64
|
- ".ruby-gemset"
|
@@ -85,6 +70,8 @@ files:
|
|
85
70
|
- README.md
|
86
71
|
- Rakefile
|
87
72
|
- act_with_flags.gemspec
|
73
|
+
- gemfiles/rails_7.1.gemfile
|
74
|
+
- gemfiles/rails_7.2.gemfile
|
88
75
|
- lib/act_with_flags.rb
|
89
76
|
- lib/act_with_flags/admin.rb
|
90
77
|
- lib/act_with_flags/clear.rb
|
@@ -126,12 +113,12 @@ files:
|
|
126
113
|
- test/remove_from_test.rb
|
127
114
|
- test/string_test.rb
|
128
115
|
- test/test_helper.rb
|
129
|
-
homepage:
|
116
|
+
homepage: https://github.com/matique/act_with_flags
|
130
117
|
licenses:
|
131
118
|
- MIT
|
132
119
|
metadata:
|
133
120
|
source_code_uri: https://github.com/matique/act_with_flags
|
134
|
-
post_install_message:
|
121
|
+
post_install_message:
|
135
122
|
rdoc_options: []
|
136
123
|
require_paths:
|
137
124
|
- lib
|
@@ -146,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
133
|
- !ruby/object:Gem::Version
|
147
134
|
version: '0'
|
148
135
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
136
|
+
rubygems_version: 3.5.20
|
137
|
+
signing_key:
|
151
138
|
specification_version: 4
|
152
139
|
summary: act_with_flags gem
|
153
140
|
test_files: []
|
data/.github/workflows/lint.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
name: Lint
|
2
|
-
on: push
|
3
|
-
jobs:
|
4
|
-
lint:
|
5
|
-
runs-on: ubuntu-latest
|
6
|
-
steps:
|
7
|
-
- name: Checkout code
|
8
|
-
uses: actions/checkout@v3
|
9
|
-
- name: Set up Ruby
|
10
|
-
uses: ruby/setup-ruby@v1
|
11
|
-
with:
|
12
|
-
bundler-cache: true
|
13
|
-
- name: Run Standard
|
14
|
-
run: bundle exec standardrb
|