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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57014c6730db16b16776789fcf1d6d2a4fb80b92
4
- data.tar.gz: 69cca85f3ea354c8465fc6999562d771e700452d
3
+ metadata.gz: 0dca0b4e2c7ee82c8bd83e5694da36cd1defd1ea
4
+ data.tar.gz: 8c2d54e5f21167847e4f3ceab245494411d5fa4b
5
5
  SHA512:
6
- metadata.gz: 0d6c3d26eba10660975f8c60e170b0080b974a48f4efefcfd059dfce7e30ce26ae7384a840055692cef9cca8c62fa2564849753f9ad1363198b3833a02b6b7f3
7
- data.tar.gz: 95707bec096143b697f3c597a885777201a82baf8b243e3d7546700cd38ba4d90a85754602b3513346999c87e802092c27b5f1cecae023e2db47750cb1428573
6
+ metadata.gz: f9b7773b8a01ed491e28dd8c2c8d8529cab992f55a20c565b86bdcdcee106a0cd668a3ad21691a15f7d7dbdc8295b4cde6896c4303d416e6e68306db048700dd
7
+ data.tar.gz: 858f29043af776d44065668f7a2ee3b3520fa4b650bae232217f8682663011451eae8e5c5f62ae801733e220a034e58777e183adaad7d8e50e236b20a701855e
@@ -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.select { |pn| JAVASCRIPT_EXTENSIONS.include?(pn.extname) }
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
 
@@ -1,3 +1,3 @@
1
1
  module ESLintRails
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
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.0
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-11 00:00:00.000000000 Z
12
+ date: 2016-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties