erb_lint 0.0.27 → 0.0.28

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: '068550383b58968cb644751f43444a984065ac9c'
4
- data.tar.gz: 78c31c8ce1a65a13a8b8a168437fa4142191d132
3
+ metadata.gz: dd514242d6b7920461eeecfe6b2042abc1dbd879
4
+ data.tar.gz: ad6e290ed5a2adce93c48d39da58df17d38a7a47
5
5
  SHA512:
6
- metadata.gz: 01530ffea26264a299ee8b0460887927e738479fd1f23dfda161877d2b391b0050cc6e7f880382becdba1b4e3f7310174e449886fd6d2047c59507e05a5cb7c1
7
- data.tar.gz: 67c4dba8e9214bc5cbc11beed301d9fc5eaf09bbf6b4046038fcdc15173879b1165c82af351d9e4915c08a88dd209cc093e2e58ee8dcf074039c751b1fd7bb37
6
+ metadata.gz: ac08fba28282dfec1da5e078f4ddbcd42c26373947634789cd93d9f709a6c5e02f224c44fe72608c3d182630d9b0d39abd5fe181ca1d98695ed509f6e51dd9e2
7
+ data.tar.gz: cef726250e669949e9f4150c30a58f5b77e1201d9149a7b5adf38b7d853b76ca3bc2204b5a516db0fddfde0e72fe9d9e4a3ab56cb853eee77468614791833d34
@@ -63,9 +63,9 @@ module ERBLint
63
63
  string = offense.source_range.source
64
64
  return unless klass = load_corrector
65
65
  return unless string.strip.length > 1
66
- corrector = klass.new(processed_source.filename, corrector_i18n_load_path, offense.source_range)
67
66
  node = RuboCop::AST::StrNode.new(:str, [string])
68
- corrector.autocorrect(node, tag_start: '<%= ', tag_end: ' %>')
67
+ corrector = klass.new(node, processed_source.filename, corrector_i18n_load_path, offense.source_range)
68
+ corrector.autocorrect(tag_start: '<%= ', tag_end: ' %>')
69
69
  rescue MissingCorrector, MissingI18nLoadPath
70
70
  nil
71
71
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ERBLint
4
- VERSION = '0.0.27'
4
+ VERSION = '0.0.28'
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.27
4
+ version: 0.0.28
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-10-22 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_html
@@ -164,7 +164,7 @@ files:
164
164
  - lib/erb_lint/utils/offset_corrector.rb
165
165
  - lib/erb_lint/utils/ruby_to_erb.rb
166
166
  - lib/erb_lint/version.rb
167
- homepage: https://github.com/justinthec/erb-lint
167
+ homepage: https://github.com/Shopify/erb-lint
168
168
  licenses:
169
169
  - MIT
170
170
  metadata: {}