erb_lint 0.0.24 → 0.0.25

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: 3c5a2e7e97fe4a4c7d38c32b5d663e7df68e0060
4
- data.tar.gz: 21124a47352a859d281c2a2ede71df784480dc08
3
+ metadata.gz: 0e1b8cceb3cf2f8ce26f00e26d3afb41f77e4712
4
+ data.tar.gz: f93a0469e26dd724f75e9ad5d43b0447a280aa19
5
5
  SHA512:
6
- metadata.gz: 9b52e7f82e28e0da22fdaa2124e97cb0f7b82ddbeb6e45a257c38078421d889a96bed05e0af5aa378838ad638cd0c8649b7dba0ab3115140983be879c995b621
7
- data.tar.gz: 932439392b2a80444544ee332ad67715d51910983c7b255b695d91f62afcf4619d603fb3c7dac5649027ec492fb489690dac3b921b25a882e40376cbcb8401e9
6
+ metadata.gz: da97d904c02d413663e404653f4bc813bfa345cba6822b460332cb4850157c95dfe8c6443a81ff1ee6a406de12dc75d8eae3335591c74347f00e3951a4ddc6ea
7
+ data.tar.gz: b70ac728ed6f038bce0761bc24676d07960ff68662db7a39fff64fe903bc4bd7f92e7d13a84a01f668352532d6e42b6d78cdf08d787b384c74dcc8f2dad17eb2
@@ -94,7 +94,7 @@ module ERBLint
94
94
  def process_attributes(processed_source, attributes)
95
95
  attributes.children.each_with_index do |attribute, index|
96
96
  name, equal, value = *attribute
97
- no_space(processed_source, name.loc.end_pos...equal.loc.begin_pos) if equal
97
+ no_space(processed_source, name.loc.end_pos...equal.loc.begin_pos) if name && equal
98
98
  no_space(processed_source, equal.loc.end_pos...value.loc.begin_pos) if equal && value
99
99
 
100
100
  next if index >= attributes.children.size - 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ERBLint
4
- VERSION = '0.0.24'
4
+ VERSION = '0.0.25'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Chan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-24 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_html