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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85f31137d2c12e55c9831fb363e297c245af79cd196a9f1990a8cd1047ba9503
4
- data.tar.gz: 9a6e2f01fea005bf6e8677ea15cde979cdd0c10d9c067f47eff4a586015c4b50
3
+ metadata.gz: 815b31d08e375476419a13814ec45a942bca06ada69001ead4d93b4fb798a6b4
4
+ data.tar.gz: 1392ca866e08c8798be77bb00e9e8972ccc62f61d720c1b33c1df7d17e0d096a
5
5
  SHA512:
6
- metadata.gz: 400c97f67d917b0e9416846853122a5008240fe38b8837380af9b9284f09c7c68fade3e754acdd7ce988929c01aad49325502f90b0df3cb9fc05e4cc81774afd
7
- data.tar.gz: 3a9a277ca14297b86ec41da731e9b76141fcf69c1950b0d72e34054decedd357b3daa86e9ebfd6ab5b6a67db7af83e2a95350c3c5b8f61bb4b67f4f1fc0ad4da
6
+ metadata.gz: 2a9aa9dde47c3d564e41b66f0a18389821f9fba534a633ecea46adb980632bda5c5ce7ecc59e54df6474c4283706f8a59c0b45a71423f1607f5d3088aa256609
7
+ data.tar.gz: 26ac3ba8d0b88160967bcb1f1b2787d4d10c3b1fa575b9e57a0bd9d9a0082519a3aa574806ab30bfd715f544f1eca8dd222c6e60bd135e41e64852e4419a932d
@@ -8,19 +8,25 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- os: [ubuntu-latest]
12
- ruby: ["2.7", "3.0", "3.2", head]
13
- test_command: ["bundle exec rake test"]
14
- runs-on: ${{ matrix.os }}
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
- - uses: actions/checkout@v3
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
21
- - name: Bundle install
22
- run: |
23
- bundle config path /home/runner/bundle
24
- bundle install
25
- bundle update
26
- - run: ${{ matrix.test_command }}
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
@@ -1,7 +1,14 @@
1
1
  .bundle/
2
2
  coverage/
3
+ .watchr
3
4
 
4
5
  *.gem
5
6
  *.log
6
7
  *.lock
7
8
  *.sqlite3
9
+ **/*.gem
10
+ **/*.log
11
+ **/*.lock
12
+ **/test.sqlite3*
13
+
14
+ test/internal/tmp/
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.0
1
+ rails-7.2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.5
data/Appraisals CHANGED
@@ -1,15 +1,23 @@
1
- appraise "rails-7.0" do
2
- gem "rails", "~> 7.0"
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
- gem "rails", "~> 6.0.0"
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
@@ -5,8 +5,9 @@ gem "rails"
5
5
 
6
6
  group :test do
7
7
  gem "benchmark-ips"
8
- gem "observr"
8
+ gem "cuco"
9
9
  gem "ricecream"
10
+ gem "sqlite3"
10
11
  gem "simplecov", require: false
11
12
  gem "standard", require: false
12
13
  end
data/Gemfile.lock CHANGED
@@ -1,208 +1,298 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- act_with_flags (3.1.3)
4
+ act_with_flags (3.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (7.0.4.3)
10
- actionpack (= 7.0.4.3)
11
- activesupport (= 7.0.4.3)
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
- actionmailbox (7.0.4.3)
15
- actionpack (= 7.0.4.3)
16
- activejob (= 7.0.4.3)
17
- activerecord (= 7.0.4.3)
18
- activestorage (= 7.0.4.3)
19
- activesupport (= 7.0.4.3)
20
- mail (>= 2.7.1)
21
- net-imap
22
- net-pop
23
- net-smtp
24
- actionmailer (7.0.4.3)
25
- actionpack (= 7.0.4.3)
26
- actionview (= 7.0.4.3)
27
- activejob (= 7.0.4.3)
28
- activesupport (= 7.0.4.3)
29
- mail (~> 2.5, >= 2.5.4)
30
- net-imap
31
- net-pop
32
- net-smtp
33
- rails-dom-testing (~> 2.0)
34
- actionpack (7.0.4.3)
35
- actionview (= 7.0.4.3)
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.0)
40
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
41
- actiontext (7.0.4.3)
42
- actionpack (= 7.0.4.3)
43
- activerecord (= 7.0.4.3)
44
- activestorage (= 7.0.4.3)
45
- activesupport (= 7.0.4.3)
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.0.4.3)
49
- activesupport (= 7.0.4.3)
47
+ actionview (7.2.1.1)
48
+ activesupport (= 7.2.1.1)
50
49
  builder (~> 3.1)
51
- erubi (~> 1.4)
52
- rails-dom-testing (~> 2.0)
53
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
54
- activejob (7.0.4.3)
55
- activesupport (= 7.0.4.3)
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.0.4.3)
58
- activesupport (= 7.0.4.3)
59
- activerecord (7.0.4.3)
60
- activemodel (= 7.0.4.3)
61
- activesupport (= 7.0.4.3)
62
- activestorage (7.0.4.3)
63
- actionpack (= 7.0.4.3)
64
- activejob (= 7.0.4.3)
65
- activerecord (= 7.0.4.3)
66
- activesupport (= 7.0.4.3)
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
- mini_mime (>= 1.1.0)
69
- activesupport (7.0.4.3)
70
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- tzinfo (~> 2.0)
74
- appraisal (2.4.1)
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
- benchmark-ips (2.12.0)
80
- builder (3.2.4)
81
- combustion (1.3.7)
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.2.2)
92
+ concurrent-ruby (1.3.4)
93
+ connection_pool (2.4.1)
86
94
  crass (1.0.6)
87
- date (3.3.3)
88
- docile (1.4.0)
89
- erubi (1.12.0)
90
- globalid (1.1.0)
91
- activesupport (>= 5.0)
92
- i18n (1.12.0)
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
- json (2.6.3)
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
- loofah (2.20.0)
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.5.9)
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.2)
105
- method_source (1.0.0)
106
- mini_mime (1.1.2)
107
- minitest (5.18.0)
108
- net-imap (0.3.4)
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.1)
144
+ net-protocol (0.2.2)
114
145
  timeout
115
- net-smtp (0.3.3)
146
+ net-smtp (0.5.0)
116
147
  net-protocol
117
- nio4r (2.5.9)
118
- nokogiri (1.14.3-x86_64-linux)
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
- observr (1.0.5)
121
- parallel (1.22.1)
122
- parser (3.2.2.0)
161
+ parallel (1.26.3)
162
+ parser (3.3.5.0)
123
163
  ast (~> 2.4.1)
124
- racc (1.6.2)
125
- rack (2.2.6.4)
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
- rails (7.0.4.3)
129
- actioncable (= 7.0.4.3)
130
- actionmailbox (= 7.0.4.3)
131
- actionmailer (= 7.0.4.3)
132
- actionpack (= 7.0.4.3)
133
- actiontext (= 7.0.4.3)
134
- actionview (= 7.0.4.3)
135
- activejob (= 7.0.4.3)
136
- activemodel (= 7.0.4.3)
137
- activerecord (= 7.0.4.3)
138
- activestorage (= 7.0.4.3)
139
- activesupport (= 7.0.4.3)
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.0.4.3)
142
- rails-dom-testing (2.0.3)
143
- activesupport (>= 4.2.0)
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.5.0)
146
- loofah (~> 2.19, >= 2.19.1)
147
- railties (7.0.4.3)
148
- actionpack (= 7.0.4.3)
149
- activesupport (= 7.0.4.3)
150
- method_source
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.5)
203
+ thor (~> 1.0, >= 1.2.2)
204
+ zeitwerk (~> 2.6)
154
205
  rainbow (3.1.1)
155
- rake (13.0.6)
156
- regexp_parser (2.8.0)
157
- rexml (3.2.5)
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.48.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.2.0.0)
220
+ parser (>= 3.3.0.2)
163
221
  rainbow (>= 2.2.2, < 4.0)
164
- regexp_parser (>= 1.8, < 3.0)
165
- rexml (>= 3.2.5, < 4.0)
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.28.0)
170
- parser (>= 3.2.1.0)
171
- rubocop-performance (1.16.0)
172
- rubocop (>= 1.7.0, < 2.0)
173
- rubocop-ast (>= 0.4.0)
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.12.3)
237
+ simplecov-html (0.13.1)
180
238
  simplecov_json_formatter (0.1.4)
181
- sqlite3 (1.6.2-x86_64-linux)
182
- standard (1.26.0)
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
- rubocop (~> 1.48.1)
185
- rubocop-performance (~> 1.16.0)
186
- thor (1.2.1)
187
- timeout (0.3.2)
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.4.2)
191
- websocket-driver (0.7.5)
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.6.7)
272
+ zeitwerk (2.7.1)
195
273
 
196
274
  PLATFORMS
197
- x86_64-linux
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.4.10
303
+ 2.5.22
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
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.png)](http://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-2023 Dittmar Krall (www.matiq.com),
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).
@@ -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 = "http://matiq.com"
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.3" # 2023-04-18
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
@@ -27,8 +27,8 @@ module ActWithFlags
27
27
  flags.each { |name| @act_with_flags.remove_accessor(name) }
28
28
  end
29
29
 
30
- def clear_flags_at_save(*flags)
31
- @act_with_flags.clear_at_save(*flags)
30
+ def clear_flags_at_save(*)
31
+ @act_with_flags.clear_at_save(*)
32
32
  end
33
33
 
34
34
  private
@@ -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
@@ -1,3 +1,3 @@
1
1
  class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
2
+ primary_abstract_class
3
3
  end
data/test/test_helper.rb CHANGED
@@ -12,7 +12,6 @@ Combustion.initialize! :active_record
12
12
  require "rails/test_help"
13
13
  require "minitest/autorun"
14
14
  require "minitest/benchmark"
15
- # require 'capybara/rails'
16
15
 
17
16
  def reset_order
18
17
  Order.act_with_flags&.reset
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.3
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: 2023-04-18 00:00:00.000000000 Z
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: http://matiq.com
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.4.10
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: []
@@ -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