act_with_flags 3.1.2 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6f3af684df146594e5adbebc473d3a46c789f4a27021421e4831ca10a893ab9
4
- data.tar.gz: 9ea6c4313f83e3ab4e3811540e7bbb14a63b98c2a9bc9536136b9682bcb1f067
3
+ metadata.gz: 22069f8b924b4cd321f0a8ca787ba6eaa661257b8ec9c8a3859f3a848b767335
4
+ data.tar.gz: d9fbc47cef0cb86f8782e13f1226df772de341002232b3f001f3eb2ffee6ba51
5
5
  SHA512:
6
- metadata.gz: 6e64f4c29f48415f5c9dc42239269ffae1668d3f0b270c722959db78d4206b4192f0c9b25283ae6494d5349bf428d98183c1e36803acfbbfd9f4ea4ef9063e93
7
- data.tar.gz: 4ba44b4047ba9ddb283e85497bc2c6662b4341fb2a9e2955c81164cfcebf16aedc9c0b42a8447788e3ed9a6fcb83ac1fec465b7d11c4678ddc6c75ac08f89e1a
6
+ metadata.gz: e29284f509644be72e617102d29e0c2343b062038a4fa0424531f6207d05bc55ece8b2b9a15dc57763a8d32feeacf0199d8f914caa2edb96c1d9487c293ab983
7
+ data.tar.gz: a08900cc6e946ef122a27d07bd51a7c12c8294cc7e4c8b13911ec7b5fe8f9ec9f49c4e4d000f753e8ee803fda5bcb196ea9dda631699947bbe02652be16e53fd
@@ -1,29 +1,27 @@
1
1
  # see also https://github.com/whitequark/parser/blob/master/.github/workflows/test.yml
2
2
  name: Rake
3
3
 
4
- on: push
4
+ on: [push]
5
5
 
6
6
  jobs:
7
7
  test:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- # os: [ubuntu-latest, macos-latest]
12
- os: [ubuntu-latest]
13
- # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
14
- # ruby: [2.5, 2.6, 2.7, '3.0', head, jruby, jruby-head, truffleruby, truffleruby-head]
15
- ruby: ["2.7.2", 3.0.1, head]
16
- test_command: ["bundle exec rake test"]
17
- runs-on: ${{ matrix.os }}
11
+ ruby_version: [3.2]
12
+ gemfile:
13
+ - Gemfile
14
+ - gemfiles/Gemfile.rails-7.1
15
+ - gemfiles/Gemfile.rails-7.0
16
+ - gemfiles/Gemfile.rails-6.1
17
+ runs-on: ubuntu-latest
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v2
21
- - uses: ruby/setup-ruby@v1
22
- with:
23
- ruby-version: ${{ matrix.ruby }}
24
- - name: Bundle install
25
- run: |
26
- bundle config path /home/runner/bundle
27
- bundle install
28
- bundle update
29
- - run: ${{ matrix.test_command }}
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby_version }}
25
+ bundler-cache: true
26
+ - name: Build and test with Rake
27
+ 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.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1.3
1
+ ruby-3.2.2
data/Appraisals CHANGED
@@ -1,15 +1,19 @@
1
+ appraise "rails-7.1" do
2
+ gem "rails", "~> 7.1"
3
+ end
4
+
1
5
  appraise "rails-7.0" do
2
6
  gem "rails", "~> 7.0"
3
7
  end
4
8
 
5
- # appraise "rails-6.1" do
6
- # gem "rails", "~> 6.0"
7
- # end
8
-
9
- appraise "rails-6.0" do
10
- gem "rails", "~> 6.0.0"
9
+ appraise "rails-6.1" do
10
+ gem "rails", "~> 6.0"
11
11
  end
12
12
 
13
+ # appraise "rails-6.0" do
14
+ # gem "rails", "~> 6.0.0"
15
+ # end
16
+
13
17
  # appraise 'rails-5.2' do
14
18
  # gem 'rails', '~> 5.2.0'
15
19
  # end
data/Gemfile.lock CHANGED
@@ -1,197 +1,243 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- act_with_flags (3.1.2)
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)
10
- actionpack (= 7.0.4)
11
- activesupport (= 7.0.4)
9
+ actioncable (7.1.2)
10
+ actionpack (= 7.1.2)
11
+ activesupport (= 7.1.2)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (7.0.4)
15
- actionpack (= 7.0.4)
16
- activejob (= 7.0.4)
17
- activerecord (= 7.0.4)
18
- activestorage (= 7.0.4)
19
- activesupport (= 7.0.4)
14
+ zeitwerk (~> 2.6)
15
+ actionmailbox (7.1.2)
16
+ actionpack (= 7.1.2)
17
+ activejob (= 7.1.2)
18
+ activerecord (= 7.1.2)
19
+ activestorage (= 7.1.2)
20
+ activesupport (= 7.1.2)
20
21
  mail (>= 2.7.1)
21
22
  net-imap
22
23
  net-pop
23
24
  net-smtp
24
- actionmailer (7.0.4)
25
- actionpack (= 7.0.4)
26
- actionview (= 7.0.4)
27
- activejob (= 7.0.4)
28
- activesupport (= 7.0.4)
25
+ actionmailer (7.1.2)
26
+ actionpack (= 7.1.2)
27
+ actionview (= 7.1.2)
28
+ activejob (= 7.1.2)
29
+ activesupport (= 7.1.2)
29
30
  mail (~> 2.5, >= 2.5.4)
30
31
  net-imap
31
32
  net-pop
32
33
  net-smtp
33
- rails-dom-testing (~> 2.0)
34
- actionpack (7.0.4)
35
- actionview (= 7.0.4)
36
- activesupport (= 7.0.4)
37
- rack (~> 2.0, >= 2.2.0)
34
+ rails-dom-testing (~> 2.2)
35
+ actionpack (7.1.2)
36
+ actionview (= 7.1.2)
37
+ activesupport (= 7.1.2)
38
+ nokogiri (>= 1.8.5)
39
+ racc
40
+ rack (>= 2.2.4)
41
+ rack-session (>= 1.0.1)
38
42
  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)
42
- actionpack (= 7.0.4)
43
- activerecord (= 7.0.4)
44
- activestorage (= 7.0.4)
45
- activesupport (= 7.0.4)
43
+ rails-dom-testing (~> 2.2)
44
+ rails-html-sanitizer (~> 1.6)
45
+ actiontext (7.1.2)
46
+ actionpack (= 7.1.2)
47
+ activerecord (= 7.1.2)
48
+ activestorage (= 7.1.2)
49
+ activesupport (= 7.1.2)
46
50
  globalid (>= 0.6.0)
47
51
  nokogiri (>= 1.8.5)
48
- actionview (7.0.4)
49
- activesupport (= 7.0.4)
52
+ actionview (7.1.2)
53
+ activesupport (= 7.1.2)
50
54
  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)
55
- activesupport (= 7.0.4)
55
+ erubi (~> 1.11)
56
+ rails-dom-testing (~> 2.2)
57
+ rails-html-sanitizer (~> 1.6)
58
+ activejob (7.1.2)
59
+ activesupport (= 7.1.2)
56
60
  globalid (>= 0.3.6)
57
- activemodel (7.0.4)
58
- activesupport (= 7.0.4)
59
- activerecord (7.0.4)
60
- activemodel (= 7.0.4)
61
- activesupport (= 7.0.4)
62
- activestorage (7.0.4)
63
- actionpack (= 7.0.4)
64
- activejob (= 7.0.4)
65
- activerecord (= 7.0.4)
66
- activesupport (= 7.0.4)
61
+ activemodel (7.1.2)
62
+ activesupport (= 7.1.2)
63
+ activerecord (7.1.2)
64
+ activemodel (= 7.1.2)
65
+ activesupport (= 7.1.2)
66
+ timeout (>= 0.4.0)
67
+ activestorage (7.1.2)
68
+ actionpack (= 7.1.2)
69
+ activejob (= 7.1.2)
70
+ activerecord (= 7.1.2)
71
+ activesupport (= 7.1.2)
67
72
  marcel (~> 1.0)
68
- mini_mime (>= 1.1.0)
69
- activesupport (7.0.4)
73
+ activesupport (7.1.2)
74
+ base64
75
+ bigdecimal
70
76
  concurrent-ruby (~> 1.0, >= 1.0.2)
77
+ connection_pool (>= 2.2.5)
78
+ drb
71
79
  i18n (>= 1.6, < 2)
72
80
  minitest (>= 5.1)
81
+ mutex_m
73
82
  tzinfo (~> 2.0)
74
- appraisal (2.4.1)
83
+ appraisal (2.5.0)
75
84
  bundler
76
85
  rake
77
86
  thor (>= 0.14.0)
78
87
  ast (2.4.2)
79
- benchmark-ips (2.10.0)
88
+ base64 (0.2.0)
89
+ benchmark-ips (2.12.0)
90
+ bigdecimal (3.1.4)
80
91
  builder (3.2.4)
81
92
  combustion (1.3.7)
82
93
  activesupport (>= 3.0.0)
83
94
  railties (>= 3.0.0)
84
95
  thor (>= 0.14.6)
85
- concurrent-ruby (1.1.10)
96
+ concurrent-ruby (1.2.2)
97
+ connection_pool (2.4.1)
86
98
  crass (1.0.6)
87
- date (3.3.1)
99
+ date (3.3.4)
88
100
  docile (1.4.0)
89
- erubi (1.11.0)
90
- globalid (1.0.0)
91
- activesupport (>= 5.0)
92
- i18n (1.12.0)
101
+ drb (2.2.0)
102
+ ruby2_keywords
103
+ erubi (1.12.0)
104
+ globalid (1.2.1)
105
+ activesupport (>= 6.1)
106
+ i18n (1.14.1)
93
107
  concurrent-ruby (~> 1.0)
94
- json (2.6.3)
95
- language_server-protocol (3.17.0.2)
96
- loofah (2.19.0)
108
+ io-console (0.6.0)
109
+ irb (1.10.1)
110
+ rdoc
111
+ reline (>= 0.3.8)
112
+ json (2.7.1)
113
+ language_server-protocol (3.17.0.3)
114
+ lint_roller (1.1.0)
115
+ loofah (2.22.0)
97
116
  crass (~> 1.0.2)
98
- nokogiri (>= 1.5.9)
99
- mail (2.8.0)
117
+ nokogiri (>= 1.12.0)
118
+ mail (2.8.1)
100
119
  mini_mime (>= 0.1.1)
101
120
  net-imap
102
121
  net-pop
103
122
  net-smtp
104
123
  marcel (1.0.2)
105
- method_source (1.0.0)
106
- mini_mime (1.1.2)
107
- minitest (5.16.3)
108
- net-imap (0.3.2)
124
+ mini_mime (1.1.5)
125
+ minitest (5.20.0)
126
+ mutex_m (0.2.0)
127
+ net-imap (0.4.7)
109
128
  date
110
129
  net-protocol
111
130
  net-pop (0.1.2)
112
131
  net-protocol
113
- net-protocol (0.2.1)
132
+ net-protocol (0.2.2)
114
133
  timeout
115
- net-smtp (0.3.3)
134
+ net-smtp (0.4.0)
116
135
  net-protocol
117
- nio4r (2.5.8)
118
- nokogiri (1.13.10-x86_64-linux)
136
+ nio4r (2.7.0)
137
+ nokogiri (1.15.5-x86_64-linux)
119
138
  racc (~> 1.4)
120
139
  observr (1.0.5)
121
- parallel (1.22.1)
122
- parser (3.1.3.0)
140
+ parallel (1.23.0)
141
+ parser (3.2.2.4)
123
142
  ast (~> 2.4.1)
124
- racc (1.6.1)
125
- rack (2.2.4)
126
- rack-test (2.0.2)
143
+ racc
144
+ psych (5.1.1.1)
145
+ stringio
146
+ racc (1.7.3)
147
+ rack (3.0.8)
148
+ rack-session (2.0.0)
149
+ rack (>= 3.0.0)
150
+ rack-test (2.1.0)
127
151
  rack (>= 1.3)
128
- rails (7.0.4)
129
- actioncable (= 7.0.4)
130
- actionmailbox (= 7.0.4)
131
- actionmailer (= 7.0.4)
132
- actionpack (= 7.0.4)
133
- actiontext (= 7.0.4)
134
- actionview (= 7.0.4)
135
- activejob (= 7.0.4)
136
- activemodel (= 7.0.4)
137
- activerecord (= 7.0.4)
138
- activestorage (= 7.0.4)
139
- activesupport (= 7.0.4)
152
+ rackup (2.1.0)
153
+ rack (>= 3)
154
+ webrick (~> 1.8)
155
+ rails (7.1.2)
156
+ actioncable (= 7.1.2)
157
+ actionmailbox (= 7.1.2)
158
+ actionmailer (= 7.1.2)
159
+ actionpack (= 7.1.2)
160
+ actiontext (= 7.1.2)
161
+ actionview (= 7.1.2)
162
+ activejob (= 7.1.2)
163
+ activemodel (= 7.1.2)
164
+ activerecord (= 7.1.2)
165
+ activestorage (= 7.1.2)
166
+ activesupport (= 7.1.2)
140
167
  bundler (>= 1.15.0)
141
- railties (= 7.0.4)
142
- rails-dom-testing (2.0.3)
143
- activesupport (>= 4.2.0)
168
+ railties (= 7.1.2)
169
+ rails-dom-testing (2.2.0)
170
+ activesupport (>= 5.0.0)
171
+ minitest
144
172
  nokogiri (>= 1.6)
145
- rails-html-sanitizer (1.4.3)
146
- loofah (~> 2.3)
147
- railties (7.0.4)
148
- actionpack (= 7.0.4)
149
- activesupport (= 7.0.4)
150
- method_source
173
+ rails-html-sanitizer (1.6.0)
174
+ loofah (~> 2.21)
175
+ nokogiri (~> 1.14)
176
+ railties (7.1.2)
177
+ actionpack (= 7.1.2)
178
+ activesupport (= 7.1.2)
179
+ irb
180
+ rackup (>= 1.0.0)
151
181
  rake (>= 12.2)
152
- thor (~> 1.0)
153
- zeitwerk (~> 2.5)
182
+ thor (~> 1.0, >= 1.2.2)
183
+ zeitwerk (~> 2.6)
154
184
  rainbow (3.1.1)
155
- rake (13.0.6)
156
- regexp_parser (2.6.1)
157
- rexml (3.2.5)
185
+ rake (13.1.0)
186
+ rdoc (6.6.1)
187
+ psych (>= 4.0.0)
188
+ regexp_parser (2.8.3)
189
+ reline (0.4.1)
190
+ io-console (~> 0.5)
191
+ rexml (3.2.6)
158
192
  ricecream (0.2.1)
159
- rubocop (1.39.0)
193
+ rubocop (1.57.2)
160
194
  json (~> 2.3)
195
+ language_server-protocol (>= 3.17.0)
161
196
  parallel (~> 1.10)
162
- parser (>= 3.1.2.1)
197
+ parser (>= 3.2.2.4)
163
198
  rainbow (>= 2.2.2, < 4.0)
164
199
  regexp_parser (>= 1.8, < 3.0)
165
200
  rexml (>= 3.2.5, < 4.0)
166
- rubocop-ast (>= 1.23.0, < 2.0)
201
+ rubocop-ast (>= 1.28.1, < 2.0)
167
202
  ruby-progressbar (~> 1.7)
168
- unicode-display_width (>= 1.4.0, < 3.0)
169
- rubocop-ast (1.24.0)
170
- parser (>= 3.1.1.0)
171
- rubocop-performance (1.15.1)
203
+ unicode-display_width (>= 2.4.0, < 3.0)
204
+ rubocop-ast (1.30.0)
205
+ parser (>= 3.2.1.0)
206
+ rubocop-performance (1.19.1)
172
207
  rubocop (>= 1.7.0, < 2.0)
173
208
  rubocop-ast (>= 0.4.0)
174
- ruby-progressbar (1.11.0)
175
- simplecov (0.21.2)
209
+ ruby-progressbar (1.13.0)
210
+ ruby2_keywords (0.0.5)
211
+ simplecov (0.22.0)
176
212
  docile (~> 1.1)
177
213
  simplecov-html (~> 0.11)
178
214
  simplecov_json_formatter (~> 0.1)
179
215
  simplecov-html (0.12.3)
180
216
  simplecov_json_formatter (0.1.4)
181
- sqlite3 (1.5.4-x86_64-linux)
182
- standard (1.19.1)
217
+ sqlite3 (1.6.9-x86_64-linux)
218
+ standard (1.32.1)
183
219
  language_server-protocol (~> 3.17.0.2)
184
- rubocop (= 1.39.0)
185
- rubocop-performance (= 1.15.1)
186
- thor (1.2.1)
187
- timeout (0.3.1)
188
- tzinfo (2.0.5)
220
+ lint_roller (~> 1.0)
221
+ rubocop (~> 1.57.2)
222
+ standard-custom (~> 1.0.0)
223
+ standard-performance (~> 1.2)
224
+ standard-custom (1.0.2)
225
+ lint_roller (~> 1.0)
226
+ rubocop (~> 1.50)
227
+ standard-performance (1.2.1)
228
+ lint_roller (~> 1.1)
229
+ rubocop-performance (~> 1.19.1)
230
+ stringio (3.1.0)
231
+ thor (1.3.0)
232
+ timeout (0.4.1)
233
+ tzinfo (2.0.6)
189
234
  concurrent-ruby (~> 1.0)
190
- unicode-display_width (2.3.0)
191
- websocket-driver (0.7.5)
235
+ unicode-display_width (2.5.0)
236
+ webrick (1.8.1)
237
+ websocket-driver (0.7.6)
192
238
  websocket-extensions (>= 0.1.0)
193
239
  websocket-extensions (0.1.5)
194
- zeitwerk (2.6.6)
240
+ zeitwerk (2.6.12)
195
241
 
196
242
  PLATFORMS
197
243
  x86_64-linux
@@ -200,16 +246,14 @@ DEPENDENCIES
200
246
  act_with_flags!
201
247
  appraisal
202
248
  benchmark-ips
203
- bundler
204
249
  combustion
205
250
  minitest
206
251
  observr
207
252
  rails
208
- rake
209
253
  ricecream
210
254
  simplecov
211
255
  sqlite3
212
256
  standard
213
257
 
214
258
  BUNDLED WITH
215
- 2.3.26
259
+ 2.4.22
data/MIT-LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- Copyright 2019-2022 Dittmar Krall - www.matiq.com
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019-2023 Dittmar Krall (www.matiq.com)
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,27 +1,21 @@
1
1
  # ActWithFlags
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/act_with_flags.png)](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)
4
5
 
5
6
  A Rails gem required by key.matiq.
6
7
 
7
8
  Handles booleans in "flags".
8
9
  Defines setters and getters to access the booleans.
9
10
 
10
-
11
11
  ## Installation
12
12
 
13
13
  As usual:
14
14
  ```ruby
15
15
  # Gemfile
16
- ...
17
- gem 'act_with_flags'
18
- ```
19
-
20
- or manually:
21
- ```shell
22
- $ gem install act_with_flags
16
+ gem "act_with_flags"
23
17
  ```
24
-
18
+ and run "bundle install".
25
19
 
26
20
  ## Version 3.1.1
27
21
 
@@ -128,9 +122,7 @@ Further reading:
128
122
  - [gem bitwise](https://github.com/kenn/bitwise)
129
123
 
130
124
 
131
- ## License MIT
132
-
133
- Copyright (c) 2019-2022 [Dittmar Krall](matiq UG (haftungsbeschränkt))
134
- and is released under the MIT license:
125
+ ## Miscellaneous
135
126
 
136
- * https://opensource.org/licenses/MIT
127
+ Copyright (c) 2019-2023 Dittmar Krall (www.matiq.com),
128
+ 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,11 +18,8 @@ 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 "bundler"
22
- s.add_development_dependency "rake"
23
- s.add_development_dependency "appraisal"
24
- s.add_development_dependency "combustion"
25
-
26
- s.add_development_dependency "minitest"
27
- 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"
24
+ s.add_development_dependency "sqlite3", ">= 0"
28
25
  end
@@ -5,10 +5,11 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 6.0"
6
6
 
7
7
  group :test do
8
+ gem "benchmark-ips"
8
9
  gem "observr"
9
- gem "rubocop", require: false
10
+ gem "ricecream"
10
11
  gem "simplecov", require: false
11
- gem "benchmark-ips"
12
+ gem "standard", require: false
12
13
  end
13
14
 
14
15
  gemspec path: "../"
@@ -5,11 +5,11 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 7.0"
6
6
 
7
7
  group :test do
8
+ gem "benchmark-ips"
8
9
  gem "observr"
9
- gem "rubocop", require: false
10
+ gem "ricecream"
10
11
  gem "simplecov", require: false
11
- gem "benchmark-ips", require: false
12
- gem "ricecream", require: false
12
+ gem "standard", require: false
13
13
  end
14
14
 
15
15
  gemspec path: "../"
@@ -2,14 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0.0"
5
+ gem "rails", "~> 7.1"
6
6
 
7
7
  group :test do
8
+ gem "benchmark-ips"
8
9
  gem "observr"
9
- gem "rubocop", require: false
10
+ gem "ricecream"
10
11
  gem "simplecov", require: false
11
- gem "benchmark-ips", require: false
12
- gem "ricecream", require: false
12
+ gem "standard", require: false
13
13
  end
14
14
 
15
15
  gemspec path: "../"
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActWithFlags
4
- VERSION = "3.1.2" # 2022-12-12
4
+ VERSION = "3.1.5" # 2023-12-11
5
+ # VERSION = "3.1.3" # 2023-04-18
6
+ # VERSION = "3.1.2" # 2022-12-12
5
7
  # VERSION = "3.1.1" # 2022-09-01
6
8
  # VERSION = "3.1.0" # 2022-08-29
7
9
  # VERSION = "3.0.1" # 2022-08-07
@@ -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
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_with_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: appraisal
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -101,12 +73,10 @@ executables: []
101
73
  extensions: []
102
74
  extra_rdoc_files: []
103
75
  files:
104
- - ".github/workflows/lint.yml"
105
76
  - ".github/workflows/rake.yml"
106
77
  - ".gitignore"
107
78
  - ".ruby-gemset"
108
79
  - ".ruby-version"
109
- - ".watchr"
110
80
  - Appraisals
111
81
  - Gemfile
112
82
  - Gemfile.lock
@@ -114,9 +84,9 @@ files:
114
84
  - README.md
115
85
  - Rakefile
116
86
  - act_with_flags.gemspec
117
- - gemfiles/rails_6.0.gemfile
118
87
  - gemfiles/rails_6.1.gemfile
119
88
  - gemfiles/rails_7.0.gemfile
89
+ - gemfiles/rails_7.1.gemfile
120
90
  - lib/act_with_flags.rb
121
91
  - lib/act_with_flags/admin.rb
122
92
  - lib/act_with_flags/clear.rb
@@ -158,7 +128,7 @@ files:
158
128
  - test/remove_from_test.rb
159
129
  - test/string_test.rb
160
130
  - test/test_helper.rb
161
- homepage: http://matiq.com
131
+ homepage: https://github.com/matique/act_with_flags
162
132
  licenses:
163
133
  - MIT
164
134
  metadata:
@@ -178,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
148
  - !ruby/object:Gem::Version
179
149
  version: '0'
180
150
  requirements: []
181
- rubygems_version: 3.3.26
151
+ rubygems_version: 3.4.20
182
152
  signing_key:
183
153
  specification_version: 4
184
154
  summary: act_with_flags gem
@@ -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@v2
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
data/.watchr DELETED
@@ -1,61 +0,0 @@
1
- TESTING = %w[test]
2
- HH = "#" * 22 unless defined?(HH)
3
- H = "#" * 5 unless defined?(H)
4
-
5
- def usage
6
- puts <<-EOS
7
- Ctrl-\\ or ctrl-4 Running all tests
8
- Ctrl-C Exit
9
- EOS
10
- end
11
-
12
- def run(cmd)
13
- puts "#{HH} #{Time.now} #{HH}"
14
- puts "#{H} #{cmd}"
15
- system "/usr/bin/time --format '#{HH} Elapsed time %E' #{cmd}"
16
- end
17
-
18
- def run_it(type, files)
19
- files.split(" ").flatten.each do |file|
20
- case type
21
- when "test" then run %(bundle exec ruby -I test #{file})
22
- # when 'spec'; run %(rspec -X #{file})
23
- else; puts "#{H} unknown type: #{type}, file: #{file}"
24
- end
25
- end
26
- end
27
-
28
- def run_all_tests
29
- puts "\n#{HH} Running all tests #{HH}\n"
30
- TESTING.each { |dir| run "bundle exec rake #{dir}" if File.exist?(dir) }
31
- end
32
-
33
- def run_matching_files(base)
34
- base = base.split("_").first
35
- TESTING.each { |type|
36
- files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*.rb/ }
37
- run_it type, files.join(" ") unless files.empty?
38
- }
39
- end
40
-
41
- TESTING.each { |type|
42
- watch("#{type}/#{type}_helper.rb") { run_all_tests }
43
- watch("lib/.*.rb") { run_all_tests }
44
- watch("#{type}/.*/*_#{type}.rb") { |match| run_it type, match[0] }
45
- watch("#{type}/data/(.*).rb") { |match|
46
- m1 = match[1]
47
- run_matching_files("#{type}/#{m1}/#{m1}_#{type}.rb")
48
- }
49
- }
50
-
51
- %w[rb erb haml slim].each { |type|
52
- watch("app/.*/(.*).#{type}") { |match|
53
- run_matching_files(match[1])
54
- }
55
- }
56
-
57
- # Ctrl-\ or ctrl-4
58
- Signal.trap("QUIT") { run_all_tests }
59
- # Ctrl-C
60
- Signal.trap("INT") { abort("Interrupted\n") }
61
- usage