haml_lint 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/haml_lint/tree/node.rb +2 -4
- data/lib/haml_lint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc0a7255015a742122d1f2f7a0e233556729ed6c4bc30b5578f52dd5e60c513
|
4
|
+
data.tar.gz: a9e77dcbb2da8123f1f860ed700ca097689fa94a2b460c73d2e1c000e9b03686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41dbddb754b0b045065a913f0336d1a0713ac3b97102a8fe50cbb57b1651c3f6497fc85de11542e6ca6777e9e381765f81597a36adfd5bbb021f2f03a7775e7f
|
7
|
+
data.tar.gz: 4208a5f9e4a8116a0b6187fcb01870998b1d772cf9e9c66b8cbcd69f053a607d9e96d9819bac2c1973beb3d528f02ba7d054ee7f0a4d01dc874c6b2e1bc1d56f
|
data/lib/haml_lint/tree/node.rb
CHANGED
@@ -105,7 +105,7 @@ module HamlLint::Tree
|
|
105
105
|
return (line..line) unless @value && text
|
106
106
|
|
107
107
|
end_line = line + lines.count
|
108
|
-
end_line = nontrivial_end_line if line == end_line
|
108
|
+
end_line = nontrivial_end_line if line == end_line && children.empty?
|
109
109
|
|
110
110
|
(line..end_line)
|
111
111
|
end
|
@@ -161,9 +161,7 @@ module HamlLint::Tree
|
|
161
161
|
#
|
162
162
|
# @return [Integer] the end line of the node
|
163
163
|
def nontrivial_end_line
|
164
|
-
if
|
165
|
-
last_child.line_numbers.end - 1
|
166
|
-
elsif successor
|
164
|
+
if successor
|
167
165
|
successor.line_numbers.begin - 1
|
168
166
|
else
|
169
167
|
@document.source_lines.count
|
data/lib/haml_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|