slim_lint_standard 0.0.2 → 0.0.2.1

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
  SHA256:
3
- metadata.gz: 7422ae7eeeebc3038f016acae62c3f5486f5a5ca5469bbffe985c5f6a9144932
4
- data.tar.gz: 6300d2ee64468e96adce1069c20dfe787d33e2a5f21cea76e1f3224453824284
3
+ metadata.gz: 4947750dc5b81a693f803a3b34088318bcbcc75693fca82ad33b5ee28f242c9e
4
+ data.tar.gz: ba4bcc06286c6ffff6f3a5b165866bd767c965bf6adf8def6b0b7dda1e5bead0
5
5
  SHA512:
6
- metadata.gz: 4c9db89471c2b872ed6dd18cd7d01cf621e6c0f44e609b899dec24da5be673fd2ed6b7defc0e3b14e972262cff7d8acad9b2b4dc8edca2494598d4b84dccd42e
7
- data.tar.gz: 29d1e9c713db94a8e777e634086653033306ca53d8c0cdbc8b01f8ecf4ba0334294b76977823375ef9305e4012bab188048251beba2fb3a72e490667911ba6ff
6
+ metadata.gz: 4972ca564b1bebc424bbc0e016dcf924d0e0a63a12673beb9d8130bb3c8b68cc3c99c3d18d30d06be4bbd4be495b9753649eb1e0bf18b23c6bd54b4a28d9e3aa
7
+ data.tar.gz: bd2b45d764b6283c4536828e6c9cde0bc30a1d9991c91f84be59b32b78fb4d91a4fdf38f9c09bf259edd9a2686faa76989937e85b9ca2601fc44d226d9af5477
@@ -19,7 +19,7 @@ module SlimLint
19
19
  when "implicit", "never", false, nil
20
20
  report_lint(sexp[2], IMPLICIT_MESSAGE % name) if sexp[2] == "div"
21
21
  when "explicit", "always", true
22
- report_lint(sexp[2], EXPLICIT_MESSAGE % name) unless sexp[2] == "div"
22
+ report_lint(sexp[2], EXPLICIT_MESSAGE % name) if sexp[2] =~ /[#.]/
23
23
  else
24
24
  raise ArgumentError, "Unknown value for `style`; please use 'implicit' or 'explicit'"
25
25
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module SlimLint
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.2.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_lint_standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pieter van de Bruggen