eslint-rails 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eslint-rails/runner.rb +3 -1
- data/lib/eslint-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dca0b4e2c7ee82c8bd83e5694da36cd1defd1ea
|
4
|
+
data.tar.gz: 8c2d54e5f21167847e4f3ceab245494411d5fa4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b7773b8a01ed491e28dd8c2c8d8529cab992f55a20c565b86bdcdcee106a0cd668a3ad21691a15f7d7dbdc8295b4cde6896c4303d416e6e68306db048700dd
|
7
|
+
data.tar.gz: 858f29043af776d44065668f7a2ee3b3520fa4b650bae232217f8682663011451eae8e5c5f62ae801733e220a034e58777e183adaad7d8e50e236b20a701855e
|
data/lib/eslint-rails/runner.rb
CHANGED
@@ -30,7 +30,9 @@ module ESLintRails
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def assets
|
33
|
-
all_js_assets = Rails.application.assets.each_file.to_a.
|
33
|
+
all_js_assets = Rails.application.assets.each_file.to_a.map { |path| Pathname.new(path) }.select do |asset|
|
34
|
+
JAVASCRIPT_EXTENSIONS.include?(asset.extname)
|
35
|
+
end
|
34
36
|
|
35
37
|
assets = all_js_assets.select{|a| is_descendant?(@file, a)}
|
36
38
|
|
data/lib/eslint-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eslint-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Force
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
12
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|