rubocop-socketry 0.1.2 → 0.1.3
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
- checksums.yaml.gz.sig +0 -0
- data/lib/rubocop/socketry/layout/consistent_blank_line_indentation.rb +2 -2
- data/lib/rubocop/socketry/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fb604bbc488fb077b40f6d1145e16677de0e92eab7ec9eb1c573f8cc5f5b8ab
|
4
|
+
data.tar.gz: 489ce0952ff38f34fd2a502183c32595bfc2db4a8c4b480171e3524cd50a7e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e81903ded45555f1089f11dea5dae07f56c90e390d81f20b07184e3a8ca9f79de5af2f69528798e2857f5802c0d273158947f295fbc6ffab43b8121908f338
|
7
|
+
data.tar.gz: f33baa3486895e9388b1383635197427d3714f7af60199b544d84e5f5678081c4e3090ae22b55af14b4bbb356898eda8d3a60c4968d94d17973cfd7d9491f6bd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -52,7 +52,7 @@ module RuboCop
|
|
52
52
|
|
53
53
|
processed_source.lines.each_with_index do |line, index|
|
54
54
|
line_number = index + 1
|
55
|
-
|
55
|
+
|
56
56
|
unless delta = indentation_deltas[line_number]
|
57
57
|
# Skip this line (e.g., non-squiggly heredoc content):
|
58
58
|
next
|
@@ -104,7 +104,7 @@ module RuboCop
|
|
104
104
|
end
|
105
105
|
when :dstr
|
106
106
|
if location = node.location
|
107
|
-
if body = location.heredoc_body
|
107
|
+
if location.is_a?(Parser::Source::Map::Heredoc) and body = location.heredoc_body
|
108
108
|
if location.expression.source.start_with?("<<~")
|
109
109
|
# Squiggly heredoc - indentation is significant, add deltas
|
110
110
|
deltas[body.line] += 1
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|