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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f950bf1f31621126be9f7f1cba7aeed41771e83f8ce832f8147294c6c626a3e
4
- data.tar.gz: 8f568f446e9d2234ac6c1eb67b3e0b12f484832fec9ebf621dc8a745cfa7a56f
3
+ metadata.gz: 2fc0a7255015a742122d1f2f7a0e233556729ed6c4bc30b5578f52dd5e60c513
4
+ data.tar.gz: a9e77dcbb2da8123f1f860ed700ca097689fa94a2b460c73d2e1c000e9b03686
5
5
  SHA512:
6
- metadata.gz: d93e5b5e2e5d9cff905603acd74887baba3970168d439f715bcfb9131b2619442e98c016b676c82255376e2746d9f5b4a872725baf044e74a78ed403e8f542b8
7
- data.tar.gz: 1aa46b6ac91b3e04ab43ac2681a46bbc79eab1a00881259180fa7529def43f79c22bce9e6a810b6705f8b144146e08820ff920558a44662477c42b7f4d21332c
6
+ metadata.gz: 41dbddb754b0b045065a913f0336d1a0713ac3b97102a8fe50cbb57b1651c3f6497fc85de11542e6ca6777e9e381765f81597a36adfd5bbb021f2f03a7775e7f
7
+ data.tar.gz: 4208a5f9e4a8116a0b6187fcb01870998b1d772cf9e9c66b8cbcd69f053a607d9e96d9819bac2c1973beb3d528f02ba7d054ee7f0a4d01dc874c6b2e1bc1d56f
@@ -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 (last_child = children.last)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.32.0'
5
+ VERSION = '0.33.0'
6
6
  end
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.32.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-06-03 00:00:00.000000000 Z
11
+ date: 2019-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml