haml_lint 0.18.5 → 0.19.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/linter/final_newline.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: 6f9747b3780af3cd9cdb42bcbd834821c1a1e767
|
4
|
+
data.tar.gz: ecf2a62331f883e6bdfb799972ec0715e61e4147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d79c9732f90c7492f22948ee1e9f7e8fa069fdb52fa3f4257d2775e6f84e1638299be68b12f6c5d3a21b0483ce93ad0f973b1734a0bdb812f36394597c0ced6b
|
7
|
+
data.tar.gz: 0c12fd8b30090f23215c35811942b90ffc399cccea4f531c36c9a51e95dfe2aaf8872cf9310b8bf8cee039101c231bde8ae91dcbfc51388aac9f2ccf31ce3b38
|
@@ -10,8 +10,9 @@ module HamlLint
|
|
10
10
|
ends_with_newline = document.source.end_with?("\n")
|
11
11
|
|
12
12
|
if config['present']
|
13
|
-
|
14
|
-
|
13
|
+
unless ends_with_newline
|
14
|
+
record_lint(dummy_node, 'Files should end with a trailing newline')
|
15
|
+
end
|
15
16
|
elsif ends_with_newline
|
16
17
|
record_lint(dummy_node,
|
17
18
|
'Files should not end with a trailing newline')
|
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.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brigade Engineering
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: '10'
|
35
35
|
- - "<"
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '13'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '10'
|
45
45
|
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rubocop
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|