runger_style 5.13.2 → 5.14.1

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: f9b3360027ab58f4c02461a397f9d02f21255b7bf0bc7b1ce40b6c0b0eebeb12
4
- data.tar.gz: 8427efed52b165acd1ed0a278b3d35c4cc04b6d4c05373cf883ed31ac523e4d6
3
+ metadata.gz: f8fa813e7e66d6f099e6aa3623b31ecfcdc95ad9bb260c3f299693ac1f001650
4
+ data.tar.gz: d585cd781729a54a18eab40472bb342f745f9abcf61412990ba92a978ae01acb
5
5
  SHA512:
6
- metadata.gz: e1db5bdcbd83d10c2bc5490760afa8861af72108c0a99bc6ff132574604fb72356c952632c2e1bdc5fdde50ac8e777052c095a32b0822c5f56f0003b1c58de0b
7
- data.tar.gz: 429e61de176bfbb3911249b63f7cf9affbce7647ecfd9e36d3fbd7d5c7f161f8361051314c1ea371566e0c09880abf0ea1aabfa11cbb5f541492ee12833d934d
6
+ metadata.gz: a1711347475f37d672ef378ed04997b87bd9aed104ca5a4e1496e3f3bfb5077bb8b2c2226a3e1e7d3c01299c8c5e9b65fcfa9a44a5d7a8579bf8796faea65b9e
7
+ data.tar.gz: 90b80a50c67a5678714d98eef424a24fbf1e69b25fbd66ce0d1f2faeebc873aa4dd208ec65b94c34b7add62eeb5b4732e1c1d0a2209999ce41dd72c51cda02dd
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 4.0.5
1
+ 4.0.6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  ## Unreleased
2
2
  [no unreleased changes yet]
3
3
 
4
+ ## v5.14.1 (2026-08-13)
5
+ - [default] Enforce fixed continuation indentation for parenthesis-free macro calls.
6
+
7
+ ## v5.14.0 (2026-08-11)
8
+ - [default] Allow long AnnotateRb index comments for custom and regular index names.
9
+
4
10
  ## v5.13.2 (2026-06-23)
5
11
  - [capybara] Delete disablement of removed `Capybara/ClickLinkOrButtonStyle` rule.
6
12
 
data/Gemfile.lock CHANGED
@@ -10,14 +10,14 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- runger_style (5.13.2)
13
+ runger_style (5.14.1)
14
14
  prism (>= 0.24.0)
15
15
  rubocop (>= 1.72.0)
16
16
 
17
17
  GEM
18
18
  remote: https://rubygems.org/
19
19
  specs:
20
- activesupport (8.1.3)
20
+ activesupport (8.1.3.1)
21
21
  base64
22
22
  bigdecimal
23
23
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -34,22 +34,21 @@ GEM
34
34
  base64 (0.3.0)
35
35
  bigdecimal (4.1.2)
36
36
  coderay (1.1.3)
37
- concurrent-ruby (1.3.7)
37
+ concurrent-ruby (1.3.8)
38
38
  connection_pool (3.0.2)
39
- date (3.5.1)
40
39
  diff-lcs (1.6.2)
41
40
  drb (2.2.3)
42
- erb (6.0.4)
41
+ erb (6.0.7)
43
42
  i18n (1.15.2)
44
43
  concurrent-ruby (~> 1.0)
45
- io-console (0.8.2)
44
+ io-console (0.9.2)
46
45
  irb (1.18.0)
47
46
  pp (>= 0.6.0)
48
47
  prism (>= 1.3.0)
49
48
  rdoc (>= 4.0.0)
50
49
  reline (>= 0.4.2)
51
- json (2.19.9)
52
- language_server-protocol (3.17.0.5)
50
+ json (2.21.2)
51
+ language_server-protocol (3.17.0.6)
53
52
  lint_roller (1.1.0)
54
53
  logger (1.7.0)
55
54
  memo_wise (1.13.0)
@@ -58,7 +57,7 @@ GEM
58
57
  drb (~> 2.0)
59
58
  prism (~> 1.5)
60
59
  parallel (2.1.0)
61
- parser (3.3.11.1)
60
+ parser (3.3.12.0)
62
61
  ast (~> 2.4.1)
63
62
  racc
64
63
  pp (0.6.4)
@@ -69,21 +68,23 @@ GEM
69
68
  coderay (~> 1.1)
70
69
  method_source (~> 1.0)
71
70
  reline (>= 0.6.0)
72
- psych (5.4.0)
73
- date
74
- stringio
75
71
  racc (1.8.1)
76
72
  rack (3.2.6)
77
73
  rainbow (3.1.1)
78
74
  rake (13.4.2)
79
- rdoc (7.2.0)
75
+ rbs (4.1.2)
76
+ logger
77
+ prism (>= 1.6.0)
78
+ tsort
79
+ rdoc (8.0.0)
80
80
  erb
81
- psych (>= 4.0.0)
81
+ prism (>= 1.6.0)
82
+ rbs (>= 4.0.0)
82
83
  tsort
83
84
  readline (0.0.4)
84
85
  reline
85
86
  regexp_parser (2.12.0)
86
- reline (0.6.3)
87
+ reline (0.7.0)
87
88
  io-console (~> 0.5)
88
89
  rspec (3.13.2)
89
90
  rspec-core (~> 3.13.0)
@@ -98,7 +99,7 @@ GEM
98
99
  diff-lcs (>= 1.2.0, < 2.0)
99
100
  rspec-support (~> 3.13.0)
100
101
  rspec-support (3.13.7)
101
- rubocop (1.88.0)
102
+ rubocop (1.89.0)
102
103
  json (~> 2.3)
103
104
  language_server-protocol (~> 3.17.0.2)
104
105
  lint_roller (~> 1.1.0)
@@ -109,7 +110,7 @@ GEM
109
110
  rubocop-ast (>= 1.49.0, < 2.0)
110
111
  ruby-progressbar (~> 1.7)
111
112
  unicode-display_width (>= 2.4.0, < 4.0)
112
- rubocop-ast (1.49.1)
113
+ rubocop-ast (1.50.0)
113
114
  parser (>= 3.3.7.2)
114
115
  prism (~> 1.7)
115
116
  rubocop-capybara (3.0.0)
@@ -122,7 +123,7 @@ GEM
122
123
  lint_roller (~> 1.1)
123
124
  rubocop (>= 1.75.0, < 2.0)
124
125
  rubocop-ast (>= 1.47.1, < 2.0)
125
- rubocop-rails (2.35.5)
126
+ rubocop-rails (2.36.0)
126
127
  activesupport (>= 4.2.0)
127
128
  lint_roller (~> 1.1)
128
129
  rack (>= 1.1)
@@ -151,7 +152,6 @@ GEM
151
152
  slop (~> 4.8)
152
153
  securerandom (0.4.1)
153
154
  slop (4.10.1)
154
- stringio (3.2.0)
155
155
  tsort (0.2.0)
156
156
  tzinfo (2.0.6)
157
157
  concurrent-ruby (~> 1.0)
@@ -181,65 +181,63 @@ DEPENDENCIES
181
181
  runger_style!
182
182
 
183
183
  CHECKSUMS
184
- activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
184
+ activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376
185
185
  ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
186
186
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
187
187
  bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
188
- bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8
188
+ bundler (4.0.16) sha256=d6ca5dd440c24f9abce9844cf44cc8e18c6a553de65a47efb4544137af92c47d
189
189
  coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
190
- concurrent-ruby (1.3.7) sha256=4412caec3a5ea2e5fdc52076724c071a81f2c0593d83b2ac8cbb8ca63b3151b0
190
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
191
191
  connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
192
- date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
193
192
  diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
194
193
  drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
195
- erb (6.0.4) sha256=38e3803694be357fe2bfe312487c74beaf9fb4e5beb3e22498952fe1645b95d9
194
+ erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
196
195
  i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
197
- io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
196
+ io-console (0.9.2) sha256=efa74f891dd03c0939a931dfc6e74c2813d904763d456ea9762b0525e748db08
198
197
  irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
199
- json (2.19.9) sha256=9b9025b7cdddafa38d316eca0b2358488e42d417045c1b90d216a9fefe46b79a
200
- language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
198
+ json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
199
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
201
200
  lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
202
201
  logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
203
202
  memo_wise (1.13.0) sha256=30220c38c4cef410849bc73553c58664dc2c91c6379e4a1df22aea02358b716b
204
203
  method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
205
204
  minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
206
205
  parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
207
- parser (3.3.11.1) sha256=d17ace7aabe3e72c3cc94043714be27cc6f852f104d81aa284c2281aecc65d54
206
+ parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
208
207
  pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
209
208
  prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
210
209
  prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
211
210
  pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
212
211
  pry-byebug (3.10.1)
213
- psych (5.4.0) sha256=14f72d69a611af663d7d70e4a7b67d9eb1f3ae9f8d916b478961d5a0075ba5b7
214
212
  racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
215
213
  rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
216
214
  rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
217
215
  rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
218
- rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
216
+ rbs (4.1.2) sha256=050eb1d8b508f1233bed929c0f2c7052302f7adf295230d9cb314e9024078f48
217
+ rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
219
218
  readline (0.0.4) sha256=6138eef17be2b98298b672c3ea63bf9cb5158d401324f26e1e84f235879c1d6a
220
219
  regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
221
- reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
220
+ reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
222
221
  rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
223
222
  rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
224
223
  rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
225
224
  rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
226
225
  rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
227
- rubocop (1.88.0) sha256=e420ddf1662d0ef34bc8a2910ac4b396a7ddda0b51a708264405241734b08e0b
228
- rubocop-ast (1.49.1) sha256=4412f3ee70f6fe4546cc489548e0f6fcf76cafcfa80fa03af67098ffed755035
226
+ rubocop (1.89.0) sha256=4dee8e3ee9c45e474834efd9e8d6fd031e8331c8dacdff0de4ad65ae0a6faae7
227
+ rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
229
228
  rubocop-capybara (3.0.0) sha256=7a64655238acda7f8f3c87e37ac825a64c615a79c17c253f1a28270dc3768c4b
230
229
  rubocop-factory_bot (2.28.0) sha256=4b17fc02124444173317e131759d195b0d762844a71a29fe8139c1105d92f0cb
231
230
  rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
232
- rubocop-rails (2.35.5) sha256=f00b3c936002ba8e9ac62e8607c54bb24cda44b36e41b9c7e4f3872e1b0f3fe3
231
+ rubocop-rails (2.36.0) sha256=105a5f5b0001ff2ef28a3af90da50862464e0775e8d0016d599079c0ca408bdb
233
232
  rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
234
233
  rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
235
234
  rubocop-rspec_rails (2.32.0) sha256=4a0d641c72f6ebb957534f539d9d0a62c47abd8ce0d0aeee1ef4701e892a9100
236
235
  ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
237
236
  runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
238
237
  runger_release_assistant (4.3.1) sha256=3246c925240739eb12b9e6b9526a77ea00fcf0a0941441ff5ffacefb7e3e4d83
239
- runger_style (5.13.2)
238
+ runger_style (5.14.1)
240
239
  securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
241
240
  slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
242
- stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
243
241
  tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
244
242
  tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
245
243
  unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
@@ -247,7 +245,7 @@ CHECKSUMS
247
245
  uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
248
246
 
249
247
  RUBY VERSION
250
- ruby 4.0.5
248
+ ruby 4.0.6
251
249
 
252
250
  BUNDLED WITH
253
- 4.0.14
251
+ 4.0.16
@@ -3,9 +3,22 @@
3
3
  module RungerStyle # rubocop:disable Style/ClassAndModuleChildren
4
4
  class ArgumentAlignment < ::RuboCop::Cop::Layout::ArgumentAlignment
5
5
  def on_send(node)
6
- return if node.macro? && !node.parenthesized_call?
6
+ previous_fixed_indentation = @fixed_indentation
7
+ @fixed_indentation = node.macro? && !node.parenthesized_call?
7
8
 
8
9
  super
10
+ ensure
11
+ @fixed_indentation = previous_fixed_indentation
12
+ end
13
+
14
+ private
15
+
16
+ def fixed_indentation?
17
+ @fixed_indentation || super
18
+ end
19
+
20
+ def with_first_argument_style?
21
+ !@fixed_indentation && super
9
22
  end
10
23
  end
11
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RungerStyle
4
- VERSION = '5.13.2'
4
+ VERSION = '5.14.1'
5
5
  end
data/rulesets/default.yml CHANGED
@@ -51,8 +51,8 @@ Layout/LineLength:
51
51
  # Ignore line length if the line is a comment without any spaces; it's probably not something we
52
52
  # can fix (e.g. a long file path):
53
53
  - !ruby/regexp /^ *#? [\S]+$/
54
- # Ignore long annotate comments about indexes.
55
- - !ruby/regexp /^#\s+idx_on_/
54
+ # Ignore long AnnotateRb comments about indexes.
55
+ - !ruby/regexp /^# {2}\S+\s+\(.+\).*$/
56
56
  # Ignore RSpec description strings:
57
57
  - !ruby/regexp /^ *(context|describe|it) ['"].*['"].* do$/
58
58
  Max: 100
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runger_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.13.2
4
+ version: 5.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 4.0.12
111
+ rubygems_version: 4.0.17
112
112
  specification_version: 4
113
113
  summary: Shared rubocop rules for the preferred Ruby coding style of @davidrunger
114
114
  test_files: []