slim_lint_standard 0.0.2.1 → 0.0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slim_lint/linter/redundant_div.rb +2 -2
- data/lib/slim_lint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bcf96740ce5b898d9d5f4c01c0a21469d54a1c2cbc58441bd00f3c1e4c22319
|
4
|
+
data.tar.gz: 5ad3ce31d57f590490f2fd95cbbf75abb77f068caa49f460bdbff232f4b0092f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3519f1f044f91acee62caa1eb0d78fe20ec825c41aba762b2b49624664d94e4d7e959017dfbf91b5b2bc43e960ae887424ceffa8c939e12983062ae38b56793
|
7
|
+
data.tar.gz: 0d5d5e159400dcb46e6238a9723d2d05c9cd1694c78f51e10b2d7d70a1d66ed3d027d421d7c558fee0470595521e9938ca0f4b9d22e6f1da0352c698dd4d7071
|
@@ -17,9 +17,9 @@ module SlimLint
|
|
17
17
|
|
18
18
|
case config["style"]
|
19
19
|
when "implicit", "never", false, nil
|
20
|
-
report_lint(sexp[2], IMPLICIT_MESSAGE % name) if sexp[2] == "div"
|
20
|
+
report_lint(sexp[2], IMPLICIT_MESSAGE % name) if sexp[2].value == "div"
|
21
21
|
when "explicit", "always", true
|
22
|
-
report_lint(sexp[2], EXPLICIT_MESSAGE % name) if sexp[2] =~ /[#.]/
|
22
|
+
report_lint(sexp[2], EXPLICIT_MESSAGE % name) if sexp[2].value =~ /[#.]/
|
23
23
|
else
|
24
24
|
raise ArgumentError, "Unknown value for `style`; please use 'implicit' or 'explicit'"
|
25
25
|
end
|
data/lib/slim_lint/version.rb
CHANGED