haml_lint 0.18.4 → 0.18.5

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
  SHA1:
3
- metadata.gz: a141a32ca4f42038548109417fc4ce7e48cb04e5
4
- data.tar.gz: 3cd8985abe66dd3164e0f61a76f55abddf2b3f54
3
+ metadata.gz: f6ec4b450872fd9d82e2ff683de01990d3643ebc
4
+ data.tar.gz: f3c500526bcc23947fbcd0b4575420d63454cc89
5
5
  SHA512:
6
- metadata.gz: d4d2b851b17f04696979385e41f8a8b9c699cbe7db29bd497e130d64f465c54cc29945126a53eec6d4dc5e99f5b96e89bf623b597ae02294a5af62d0b1021827
7
- data.tar.gz: 389f9c938a65d66368de138aa56cc1a63eb26e70da3e97463f0f3a890aa9a59e3964e51dfc80d3c032ca5130b76541b2ee5247078841df15251c5015d61aa7b9
6
+ metadata.gz: 6a53ba330b313d8305824292d5b9e93b42f39d9cae9fdcdd23685d0110f1563f2bfe6b17e06a30a48d33f3130003b73012cb295e15735cc4d585c7e05910f82c
7
+ data.tar.gz: 90b785e119e4a8e48f4a0283b444d2a6d8d4c7bf201d51888e2d982e8a8e75eb853740e67a93106015807e0ee3ebe9ee095166db43f667822a25bbf487e6beb7
data/config/default.yml CHANGED
@@ -69,6 +69,7 @@ linters:
69
69
  - Style/AlignParameters
70
70
  - Style/BlockNesting
71
71
  - Style/ElseAlignment
72
+ - Style/EndOfLine
72
73
  - Style/FileName
73
74
  - Style/FinalNewline
74
75
  - Style/FrozenStringLiteralComment
@@ -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
- if text_without_quotes = strip_surrounding_quotes(text)
27
- return unless index = tag_with_text.rindex(text_without_quotes)
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
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.18.4'.freeze
5
+ VERSION = '0.18.5'.freeze
6
6
  end
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
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-10-31 00:00:00.000000000 Z
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.1
168
+ rubygems_version: 2.5.2
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: HAML lint tool