specific_asset_compiler 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dfe8bd9829584befa5f5622958df95ba9f3391b
4
- data.tar.gz: b642a799185a2ff51a22a561a4bdb7006e10fdc2
3
+ metadata.gz: bf2771749c839a1806914cdf74669bbebc43812d
4
+ data.tar.gz: 5818f2a68a041977a89175643673dac23aaeb034
5
5
  SHA512:
6
- metadata.gz: 15c4fe0420d561447b83982b0ec7f8f34f3efca6b310c94271f194d382f013401b64dc7945d7a3600c853f2395c99323d6d42a561d4d0e964b0f75f439ae2c70
7
- data.tar.gz: 143ca6f0e00c237990c391dd6d85a85e58bf9efa7c6441ee76e1e362f3aa865a6041dfd60a4cbc778d53da5d045a91d36c21dcf9382b6305fc02e039ba6e84c6
6
+ metadata.gz: 1c22065c93019c030d65c81d395f5c5947e632d018d54ba0bbafde9913c160f583e194bcc2505cf4e732b1b5fd6237203afc73f75b481c3ad414fce996e8b3fa
7
+ data.tar.gz: d3af121e9d69df6351fecd4ee3a6ade8eec97755f955ded4143bd28e86aafa095c0eabadf209da54bf24779a41ed3e1ef8b9dfe9ca1079d64056b140cd95b44c
@@ -60,7 +60,7 @@ namespace :assets do
60
60
  file_pure_path = file_path.split(".").first
61
61
  file_pure_name = file_path.split("/").last.split(".").first
62
62
  all_path = Rails.application.config.assets.paths
63
- all_found = all_path.collect{|path| %x[ grep -rw '#{path}' -e '#{file_pure_name}' ].split("\n") }.flatten.compact.select{|h| h.split(":").last.split("/").last.include?(file_pure_name) }
63
+ all_found = all_path.collect{|path| %x[ grep -rw '#{path}' -e '#{file_pure_name}' ].split("\n") }.flatten.compact.select{|h| h.split(":").last.split("/").last.include?(file_pure_name) && h.split(":").last.split("/").last.include?("import") && h.split(":").last.split("/").last.include?("require") }
64
64
  all_found.present?
65
65
  end
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specific_asset_compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanapat Sainak