haml_lint 0.18.0 → 0.18.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/lib/haml_lint/ruby_extractor.rb +7 -1
- data/lib/haml_lint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b362b9d5e1e225ffb9f878ae933a9446edaf4ed8
|
4
|
+
data.tar.gz: bd841a48d2e152668650420e95cb4f4ca6a65b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212c2c30d86a0cc25cc7621c011553015bde42e2f93d120e6bd456be5b70fdcef728a2009aa20bd2835c04a080ebba83d7da3415ef4ff8a5f88128bb00ebc52a
|
7
|
+
data.tar.gz: 15b581bdc90f6a71fe63a2b7117d5cab05c4b683e34fadad3d831f1d20bd03ae059b34b17b5b61885872f6bd8f537e5d5d63bcf5cf17f4f9d1b243490a955c4c
|
@@ -109,7 +109,13 @@ module HamlLint
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def visit_haml_comment(node)
|
112
|
-
|
112
|
+
# We want to preseve leading whitespace if it exists, but include leading
|
113
|
+
# whitespace if it doesn't exist so that RuboCop's LeadingCommentSpace
|
114
|
+
# doesn't complain
|
115
|
+
comment = node.text
|
116
|
+
.gsub(/\n(\S)/, "\n# \\1")
|
117
|
+
.gsub(/\n(\s)/, "\n#\\1")
|
118
|
+
add_line("##{comment}", node)
|
113
119
|
end
|
114
120
|
|
115
121
|
def visit_silent_script(node, &block)
|
data/lib/haml_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brigade Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|