runger_style 5.14.0 → 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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/lib/runger_style/cops/default/argument_alignment.rb +14 -1
- data/lib/runger_style/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8fa813e7e66d6f099e6aa3623b31ecfcdc95ad9bb260c3f299693ac1f001650
|
|
4
|
+
data.tar.gz: d585cd781729a54a18eab40472bb342f745f9abcf61412990ba92a978ae01acb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1711347475f37d672ef378ed04997b87bd9aed104ca5a4e1496e3f3bfb5077bb8b2c2226a3e1e7d3c01299c8c5e9b65fcfa9a44a5d7a8579bf8796faea65b9e
|
|
7
|
+
data.tar.gz: 90b80a50c67a5678714d98eef424a24fbf1e69b25fbd66ce0d1f2faeebc873aa4dd208ec65b94c34b7add62eeb5b4732e1c1d0a2209999ce41dd72c51cda02dd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
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
|
+
|
|
4
7
|
## v5.14.0 (2026-08-11)
|
|
5
8
|
- [default] Allow long AnnotateRb index comments for custom and regular index names.
|
|
6
9
|
|
data/Gemfile.lock
CHANGED
|
@@ -10,7 +10,7 @@ GIT
|
|
|
10
10
|
PATH
|
|
11
11
|
remote: .
|
|
12
12
|
specs:
|
|
13
|
-
runger_style (5.14.
|
|
13
|
+
runger_style (5.14.1)
|
|
14
14
|
prism (>= 0.24.0)
|
|
15
15
|
rubocop (>= 1.72.0)
|
|
16
16
|
|
|
@@ -235,7 +235,7 @@ CHECKSUMS
|
|
|
235
235
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
236
236
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
|
237
237
|
runger_release_assistant (4.3.1) sha256=3246c925240739eb12b9e6b9526a77ea00fcf0a0941441ff5ffacefb7e3e4d83
|
|
238
|
-
runger_style (5.14.
|
|
238
|
+
runger_style (5.14.1)
|
|
239
239
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
240
240
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
|
241
241
|
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
@@ -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
|
-
|
|
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
|
data/lib/runger_style/version.rb
CHANGED