haml_lint 0.18.4 → 0.18.5
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/config/default.yml +1 -0
- data/lib/haml_lint/linter/space_before_script.rb +3 -2
- data/lib/haml_lint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6ec4b450872fd9d82e2ff683de01990d3643ebc
|
|
4
|
+
data.tar.gz: f3c500526bcc23947fbcd0b4575420d63454cc89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a53ba330b313d8305824292d5b9e93b42f39d9cae9fdcdd23685d0110f1563f2bfe6b17e06a30a48d33f3130003b73012cb295e15735cc4d585c7e05910f82c
|
|
7
|
+
data.tar.gz: 90b785e119e4a8e48f4a0283b444d2a6d8d4c7bf201d51888e2d982e8a8e75eb853740e67a93106015807e0ee3ebe9ee095166db43f667822a25bbf487e6beb7
|
data/config/default.yml
CHANGED
|
@@ -23,8 +23,9 @@ module HamlLint
|
|
|
23
23
|
# converts them to inline script by surrounding them in string quotes,
|
|
24
24
|
# e.g. `%p Hello #{name}` becomes `%p= "Hello #{name}"`, causing the
|
|
25
25
|
# above search to fail. Check for this case by removing added quotes.
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
unless (text_without_quotes = strip_surrounding_quotes(text)) &&
|
|
27
|
+
(index = tag_with_text.rindex(text_without_quotes))
|
|
28
|
+
return
|
|
28
29
|
end
|
|
29
30
|
end
|
|
30
31
|
|
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.5
|
|
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-
|
|
12
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: haml
|
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
165
|
version: '0'
|
|
166
166
|
requirements: []
|
|
167
167
|
rubyforge_project:
|
|
168
|
-
rubygems_version: 2.5.
|
|
168
|
+
rubygems_version: 2.5.2
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: HAML lint tool
|