rubocop-cobra 0.4.4 → 0.4.6

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: 4068abd55c2397cb93ed99a2e8e02af1341d85e59a43d1b0d3895c6eee07ecf1
4
- data.tar.gz: e4c982325884b328082ae5a13bcb3357c4ea07349822ac857ecc3b63595de156
3
+ metadata.gz: 23ba7d415fce61acc1e457ffd5b22b105c803350b0cb258e2125d127e93010db
4
+ data.tar.gz: 8b9096b9617b320865582409a0490fd086c1fb09ebb415d98e3fb66f2394c552
5
5
  SHA512:
6
- metadata.gz: 10538952600b360c4882de1bac0d514f260e3c5d356f8329f30cf53fc3df7414fe33cf2ab6cda15c4bb939c5bc73994acd57c1e19bbe80011752ffc5e67dd6db
7
- data.tar.gz: 02fc7dce3d5f2f23a10733e6a97efa4762923a8ab7ca6c8cf5adfa326c1c35a95f4497164122aa20c1568c821072e9be292ecf58c3eb30035e1c5332fc78b56b
6
+ metadata.gz: a9a82d4642538e968ec2b3c8dd58a61d415e38fd64df6ead732d7a986e04a3e66d449c067cf1e4d1282f13f0ab33d2d7cfba82bdae01ca96836a9979283f575b
7
+ data.tar.gz: 1887404b3cd0815b911a2da74262bf72cf06cb6be3cf85f8168b708a328e0ab222797a497acc361dd11bbb5244633adf874a838160a5dd90caec28dc483725ef
data/.rubocop_todo.yml CHANGED
@@ -6,11 +6,6 @@
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
11
- Metrics/AbcSize:
12
- Max: 19
13
-
14
9
  # Offense count: 14
15
10
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
16
11
  # IgnoredMethods: refine
@@ -21,3 +16,8 @@ Metrics/BlockLength:
21
16
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
22
17
  Metrics/MethodLength:
23
18
  Max: 11
19
+
20
+ Metrics/AbcSize:
21
+ Exclude:
22
+ - lib/rubocop/cop/cobra/model_file_placement.rb
23
+ - lib/rubocop/cop/cobra/controller_file_placement.rb
data/Appraisals CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "rails-6-0" do
4
- gem "rails", "6.0.6.1"
5
- end
6
-
7
3
  appraise "rails-6-1" do
8
4
  gem "rails", "6.1.7.7"
9
5
  end
@@ -11,3 +7,11 @@ end
11
7
  appraise "rails-7-0" do
12
8
  gem "rails", "7.0.8.1"
13
9
  end
10
+
11
+ appraise "rails-7-1" do
12
+ gem "rails", "7.1.5.2"
13
+ end
14
+
15
+ appraise "rails-7-2" do
16
+ gem "rails", "7.2.2.2"
17
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ - Standardize all libs to support ruby 3.0, ruby 3.3 x rails 6.1 through rails 7.2 [#359](https://github.com/powerhome/power-tools/pull/359)
4
+
5
+ ## [0.4.6] - 2025-09-09
6
+
7
+ - Bump Rubocop version to unblock dependabot in repos
8
+
9
+ ## [0.4.5] - 2025-04-22
10
+
11
+ - Fix Rubocop base class inheritance [#323](https://github.com/powerhome/power-tools/pull/323)
12
+
3
13
  ## [0.4.4] - 2023-03-18
4
14
 
5
15
  - Bump Rubocop version to bring in bugfixes.
data/Gemfile CHANGED
@@ -5,9 +5,12 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in rubocop-cobra.gemspec
6
6
  gemspec
7
7
 
8
+ gem "erb", "< 5"
8
9
  gem "net-imap", "< 0.5.0"
10
+ gem "nokogiri", "< 1.18.0"
9
11
  gem "rake", "~> 13.0"
10
12
  gem "rspec", "~> 3.0"
13
+ gem "securerandom", "< 0.4.0"
11
14
  gem "zeitwerk", "< 2.7.0"
12
15
 
13
16
  gem "rubocop-powerhome", path: "../rubocop-powerhome"
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
5
- rubocop (= 1.74.0)
4
+ rubocop-powerhome (0.5.6)
5
+ rubocop (= 1.75.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
8
8
  rubocop-rake
@@ -11,8 +11,8 @@ PATH
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- rubocop-cobra (0.4.4)
15
- rubocop (= 1.74.0)
14
+ rubocop-cobra (0.4.6)
15
+ rubocop (= 1.75.0)
16
16
  rubocop-powerhome
17
17
 
18
18
  GEM
@@ -40,6 +40,7 @@ GEM
40
40
  benchmark (0.4.0)
41
41
  bigdecimal (3.1.9)
42
42
  byebug (11.1.3)
43
+ cgi (0.5.0)
43
44
  coderay (1.1.3)
44
45
  concurrent-ruby (1.3.5)
45
46
  connection_pool (2.5.0)
@@ -47,6 +48,8 @@ GEM
47
48
  date (3.4.1)
48
49
  diff-lcs (1.5.1)
49
50
  drb (2.2.1)
51
+ erb (4.0.4)
52
+ cgi (>= 0.3.3)
50
53
  i18n (1.14.7)
51
54
  concurrent-ruby (~> 1.0)
52
55
  json (2.9.1)
@@ -62,16 +65,23 @@ GEM
62
65
  lint_roller (1.1.0)
63
66
  logger (1.6.5)
64
67
  method_source (1.1.0)
68
+ mini_portile2 (2.8.9)
65
69
  minitest (5.25.4)
66
70
  net-imap (0.4.18)
67
71
  date
68
72
  net-protocol
69
73
  net-protocol (0.2.2)
70
74
  timeout
75
+ nokogiri (1.17.2)
76
+ mini_portile2 (~> 2.8.2)
77
+ racc (~> 1.4)
78
+ nokogiri (1.17.2-arm64-darwin)
79
+ racc (~> 1.4)
71
80
  parallel (1.26.3)
72
- parser (3.3.7.0)
81
+ parser (3.3.9.0)
73
82
  ast (~> 2.4.1)
74
83
  racc
84
+ prism (1.4.0)
75
85
  pry (0.14.2)
76
86
  coderay (~> 1.1)
77
87
  method_source (~> 1.0)
@@ -97,7 +107,7 @@ GEM
97
107
  diff-lcs (>= 1.2.0, < 2.0)
98
108
  rspec-support (~> 3.13.0)
99
109
  rspec-support (3.13.2)
100
- rubocop (1.74.0)
110
+ rubocop (1.75.0)
101
111
  json (~> 2.3)
102
112
  language_server-protocol (~> 3.17.0.2)
103
113
  lint_roller (~> 1.1.0)
@@ -105,11 +115,12 @@ GEM
105
115
  parser (>= 3.3.0.2)
106
116
  rainbow (>= 2.2.2, < 4.0)
107
117
  regexp_parser (>= 2.9.3, < 3.0)
108
- rubocop-ast (>= 1.38.0, < 2.0)
118
+ rubocop-ast (>= 1.43.0, < 2.0)
109
119
  ruby-progressbar (~> 1.7)
110
120
  unicode-display_width (>= 2.4.0, < 4.0)
111
- rubocop-ast (1.39.0)
112
- parser (>= 3.3.1.0)
121
+ rubocop-ast (1.46.0)
122
+ parser (>= 3.3.7.2)
123
+ prism (~> 1.4)
113
124
  rubocop-performance (1.23.1)
114
125
  rubocop (>= 1.48.1, < 2.0)
115
126
  rubocop-ast (>= 1.31.1, < 2.0)
@@ -124,7 +135,7 @@ GEM
124
135
  rubocop (~> 1.61)
125
136
  ruby-progressbar (1.13.0)
126
137
  rubyzip (2.4.1)
127
- securerandom (0.4.1)
138
+ securerandom (0.3.2)
128
139
  thor (1.3.2)
129
140
  timeout (0.4.3)
130
141
  tomlrb (2.0.3)
@@ -143,14 +154,17 @@ PLATFORMS
143
154
 
144
155
  DEPENDENCIES
145
156
  appraisal (~> 2.5.0)
157
+ erb (< 5)
146
158
  license_finder (~> 7.0)
147
159
  net-imap (< 0.5.0)
160
+ nokogiri (< 1.18.0)
148
161
  pry (>= 0.14.2)
149
162
  pry-byebug (= 3.10.1)
150
163
  rake (~> 13.0)
151
164
  rspec (~> 3.0)
152
165
  rubocop-cobra!
153
166
  rubocop-powerhome!
167
+ securerandom (< 0.4.0)
154
168
  zeitwerk (< 2.7.0)
155
169
 
156
170
  BUNDLED WITH
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
4
+ rubocop-powerhome (0.5.5)
5
5
  rubocop (= 1.74.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- rubocop-cobra (0.4.4)
14
+ rubocop-cobra (0.4.5)
15
15
  rubocop (= 1.74.0)
16
16
  rubocop-powerhome
17
17
 
@@ -4,11 +4,14 @@
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
7
+ gem "erb", "< 5"
7
8
  gem "net-imap", "< 0.5.0"
9
+ gem "nokogiri", "< 1.18.0"
8
10
  gem "rails", "6.1.7.7"
9
11
  gem "rake", "~> 13.0"
10
12
  gem "rspec", "~> 3.0"
11
13
  gem "rubocop-powerhome", path: "../../rubocop-powerhome"
14
+ gem "securerandom", "< 0.4.0"
12
15
  gem "zeitwerk", "< 2.7.0"
13
16
 
14
17
  gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ../../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
5
- rubocop (= 1.74.0)
4
+ rubocop-powerhome (0.5.6)
5
+ rubocop (= 1.75.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
8
8
  rubocop-rake
@@ -11,8 +11,8 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- rubocop-cobra (0.4.4)
15
- rubocop (= 1.74.0)
14
+ rubocop-cobra (0.4.6)
15
+ rubocop (= 1.75.0)
16
16
  rubocop-powerhome
17
17
 
18
18
  GEM
@@ -81,22 +81,26 @@ GEM
81
81
  bundler
82
82
  rake
83
83
  thor (>= 0.14.0)
84
- ast (2.4.2)
84
+ ast (2.4.3)
85
+ base64 (0.3.0)
85
86
  builder (3.3.0)
86
87
  byebug (11.1.3)
88
+ cgi (0.5.0)
87
89
  coderay (1.1.3)
88
- concurrent-ruby (1.3.4)
90
+ concurrent-ruby (1.3.5)
89
91
  crass (1.0.6)
90
- csv (3.3.1)
92
+ csv (3.3.5)
91
93
  date (3.4.1)
92
- diff-lcs (1.5.1)
93
- erubi (1.13.0)
94
+ diff-lcs (1.6.2)
95
+ erb (4.0.4)
96
+ cgi (>= 0.3.3)
97
+ erubi (1.13.1)
94
98
  globalid (1.2.1)
95
99
  activesupport (>= 6.1)
96
- i18n (1.14.6)
100
+ i18n (1.14.7)
97
101
  concurrent-ruby (~> 1.0)
98
- json (2.9.0)
99
- language_server-protocol (3.17.0.3)
102
+ json (2.13.2)
103
+ language_server-protocol (3.17.0.5)
100
104
  license_finder (7.2.1)
101
105
  bundler
102
106
  csv (~> 3.2)
@@ -106,7 +110,8 @@ GEM
106
110
  with_env (= 1.1.0)
107
111
  xml-simple (~> 1.1.9)
108
112
  lint_roller (1.1.0)
109
- loofah (2.23.1)
113
+ logger (1.7.0)
114
+ loofah (2.24.1)
110
115
  crass (~> 1.0.2)
111
116
  nokogiri (>= 1.12.0)
112
117
  mail (2.8.1)
@@ -117,25 +122,26 @@ GEM
117
122
  marcel (1.0.4)
118
123
  method_source (1.1.0)
119
124
  mini_mime (1.1.5)
120
- minitest (5.25.4)
121
- net-imap (0.4.18)
125
+ minitest (5.25.5)
126
+ net-imap (0.4.22)
122
127
  date
123
128
  net-protocol
124
129
  net-pop (0.1.2)
125
130
  net-protocol
126
131
  net-protocol (0.2.2)
127
132
  timeout
128
- net-smtp (0.5.0)
133
+ net-smtp (0.5.1)
129
134
  net-protocol
130
135
  nio4r (2.7.4)
131
136
  nokogiri (1.17.2-arm64-darwin)
132
137
  racc (~> 1.4)
133
138
  nokogiri (1.17.2-x86_64-linux)
134
139
  racc (~> 1.4)
135
- parallel (1.26.3)
136
- parser (3.3.6.0)
140
+ parallel (1.27.0)
141
+ parser (3.3.9.0)
137
142
  ast (~> 2.4.1)
138
143
  racc
144
+ prism (1.4.0)
139
145
  pry (0.14.2)
140
146
  coderay (~> 1.1)
141
147
  method_source (~> 1.0)
@@ -143,8 +149,8 @@ GEM
143
149
  byebug (~> 11.0)
144
150
  pry (>= 0.13, < 0.15)
145
151
  racc (1.8.1)
146
- rack (2.2.10)
147
- rack-test (2.1.0)
152
+ rack (2.2.17)
153
+ rack-test (2.2.0)
148
154
  rack (>= 1.3)
149
155
  rails (6.1.7.7)
150
156
  actioncable (= 6.1.7.7)
@@ -161,7 +167,7 @@ GEM
161
167
  bundler (>= 1.15.0)
162
168
  railties (= 6.1.7.7)
163
169
  sprockets-rails (>= 2.0.0)
164
- rails-dom-testing (2.2.0)
170
+ rails-dom-testing (2.3.0)
165
171
  activesupport (>= 5.0.0)
166
172
  minitest
167
173
  nokogiri (>= 1.6)
@@ -175,23 +181,23 @@ GEM
175
181
  rake (>= 12.2)
176
182
  thor (~> 1.0)
177
183
  rainbow (3.1.1)
178
- rake (13.2.1)
179
- regexp_parser (2.9.3)
180
- rexml (3.4.0)
181
- rspec (3.13.0)
184
+ rake (13.3.0)
185
+ regexp_parser (2.11.2)
186
+ rexml (3.4.1)
187
+ rspec (3.13.1)
182
188
  rspec-core (~> 3.13.0)
183
189
  rspec-expectations (~> 3.13.0)
184
190
  rspec-mocks (~> 3.13.0)
185
- rspec-core (3.13.2)
191
+ rspec-core (3.13.5)
186
192
  rspec-support (~> 3.13.0)
187
- rspec-expectations (3.13.3)
193
+ rspec-expectations (3.13.5)
188
194
  diff-lcs (>= 1.2.0, < 2.0)
189
195
  rspec-support (~> 3.13.0)
190
- rspec-mocks (3.13.2)
196
+ rspec-mocks (3.13.5)
191
197
  diff-lcs (>= 1.2.0, < 2.0)
192
198
  rspec-support (~> 3.13.0)
193
- rspec-support (3.13.2)
194
- rubocop (1.74.0)
199
+ rspec-support (3.13.4)
200
+ rubocop (1.75.0)
195
201
  json (~> 2.3)
196
202
  language_server-protocol (~> 3.17.0.2)
197
203
  lint_roller (~> 1.1.0)
@@ -199,39 +205,49 @@ GEM
199
205
  parser (>= 3.3.0.2)
200
206
  rainbow (>= 2.2.2, < 4.0)
201
207
  regexp_parser (>= 2.9.3, < 3.0)
202
- rubocop-ast (>= 1.38.0, < 2.0)
208
+ rubocop-ast (>= 1.43.0, < 2.0)
203
209
  ruby-progressbar (~> 1.7)
204
210
  unicode-display_width (>= 2.4.0, < 4.0)
205
- rubocop-ast (1.39.0)
206
- parser (>= 3.3.1.0)
207
- rubocop-performance (1.23.0)
208
- rubocop (>= 1.48.1, < 2.0)
209
- rubocop-ast (>= 1.31.1, < 2.0)
210
- rubocop-rails (2.27.0)
211
+ rubocop-ast (1.46.0)
212
+ parser (>= 3.3.7.2)
213
+ prism (~> 1.4)
214
+ rubocop-performance (1.24.0)
215
+ lint_roller (~> 1.1)
216
+ rubocop (>= 1.72.1, < 2.0)
217
+ rubocop-ast (>= 1.38.0, < 2.0)
218
+ rubocop-rails (2.30.3)
211
219
  activesupport (>= 4.2.0)
220
+ lint_roller (~> 1.1)
212
221
  rack (>= 1.1)
213
- rubocop (>= 1.52.0, < 2.0)
214
- rubocop-ast (>= 1.31.1, < 2.0)
215
- rubocop-rake (0.6.0)
216
- rubocop (~> 1.0)
217
- rubocop-rspec (3.3.0)
218
- rubocop (~> 1.61)
222
+ rubocop (>= 1.72.1, < 2.0)
223
+ rubocop-ast (>= 1.38.0, < 2.0)
224
+ rubocop-rake (0.7.1)
225
+ lint_roller (~> 1.1)
226
+ rubocop (>= 1.72.1)
227
+ rubocop-rspec (3.6.0)
228
+ lint_roller (~> 1.1)
229
+ rubocop (~> 1.72, >= 1.72.1)
219
230
  ruby-progressbar (1.13.0)
220
- rubyzip (2.3.2)
221
- sprockets (4.2.1)
231
+ rubyzip (2.4.1)
232
+ securerandom (0.3.2)
233
+ sprockets (4.2.2)
222
234
  concurrent-ruby (~> 1.0)
235
+ logger
223
236
  rack (>= 2.2.4, < 4)
224
237
  sprockets-rails (3.5.2)
225
238
  actionpack (>= 6.1)
226
239
  activesupport (>= 6.1)
227
240
  sprockets (>= 3.0.0)
228
- thor (1.3.2)
241
+ thor (1.4.0)
229
242
  timeout (0.4.3)
230
243
  tomlrb (2.0.3)
231
244
  tzinfo (2.0.6)
232
245
  concurrent-ruby (~> 1.0)
233
- unicode-display_width (2.6.0)
234
- websocket-driver (0.7.6)
246
+ unicode-display_width (3.1.4)
247
+ unicode-emoji (~> 4.0, >= 4.0.4)
248
+ unicode-emoji (4.0.4)
249
+ websocket-driver (0.8.0)
250
+ base64
235
251
  websocket-extensions (>= 0.1.0)
236
252
  websocket-extensions (0.1.5)
237
253
  with_env (1.1.0)
@@ -246,8 +262,10 @@ PLATFORMS
246
262
 
247
263
  DEPENDENCIES
248
264
  appraisal (~> 2.5.0)
265
+ erb (< 5)
249
266
  license_finder (~> 7.0)
250
267
  net-imap (< 0.5.0)
268
+ nokogiri (< 1.18.0)
251
269
  pry (>= 0.14.2)
252
270
  pry-byebug (= 3.10.1)
253
271
  rails (= 6.1.7.7)
@@ -255,6 +273,7 @@ DEPENDENCIES
255
273
  rspec (~> 3.0)
256
274
  rubocop-cobra!
257
275
  rubocop-powerhome!
276
+ securerandom (< 0.4.0)
258
277
  zeitwerk (< 2.7.0)
259
278
 
260
279
  BUNDLED WITH
@@ -4,11 +4,14 @@
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
7
+ gem "erb", "< 5"
7
8
  gem "net-imap", "< 0.5.0"
9
+ gem "nokogiri", "< 1.18.0"
8
10
  gem "rails", "7.0.8.1"
9
11
  gem "rake", "~> 13.0"
10
12
  gem "rspec", "~> 3.0"
11
13
  gem "rubocop-powerhome", path: "../../rubocop-powerhome"
14
+ gem "securerandom", "< 0.4.0"
12
15
  gem "zeitwerk", "< 2.7.0"
13
16
 
14
17
  gemspec path: "../"