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 +4 -4
- data/lib/erb_lint/linters/hard_coded_string.rb +2 -2
- data/lib/erb_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: dd514242d6b7920461eeecfe6b2042abc1dbd879
|
4
|
+
data.tar.gz: ad6e290ed5a2adce93c48d39da58df17d38a7a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/erb_lint/version.rb
CHANGED
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.
|
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-
|
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/
|
167
|
+
homepage: https://github.com/Shopify/erb-lint
|
168
168
|
licenses:
|
169
169
|
- MIT
|
170
170
|
metadata: {}
|