specific_asset_compiler 0.1.6 → 0.1.7

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: 241929ea09c178b88427f3ec16a037a2c34edf07
4
- data.tar.gz: a89e340c75e4966e12313baf38df0bf299961b33
3
+ metadata.gz: 7dfe8bd9829584befa5f5622958df95ba9f3391b
4
+ data.tar.gz: b642a799185a2ff51a22a561a4bdb7006e10fdc2
5
5
  SHA512:
6
- metadata.gz: 664fad5e1bad10d0c0b8cc49c6e5d3db45c062c5f89ca1f87ce64f21d0eb941cd35c4877283f89833040654e6e3a8733dcc3740f92b2171376c678d2e9c567b4
7
- data.tar.gz: fadc8e582beaba7c8a776426f5e1dccbd6d4135ee351b8f44c67f33c3a98214f924f5c79fdb9da1ab72b853122805936dcbe3d38756f225d7213773a2bf2c741
6
+ metadata.gz: 15c4fe0420d561447b83982b0ec7f8f34f3efca6b310c94271f194d382f013401b64dc7945d7a3600c853f2395c99323d6d42a561d4d0e964b0f75f439ae2c70
7
+ data.tar.gz: 143ca6f0e00c237990c391dd6d85a85e58bf9efa7c6441ee76e1e362f3aa865a6041dfd60a4cbc778d53da5d045a91d36c21dcf9382b6305fc02e039ba6e84c6
@@ -69,7 +69,7 @@ namespace :assets do
69
69
  file_pure_path = file_path.split(".").first
70
70
  file_pure_name = file_path.split("/").last.split(".").first
71
71
  all_path = Rails.application.config.assets.paths
72
- 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) }
72
+ 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") }
73
73
  if all_found.present?
74
74
  all_found.each do |aff|
75
75
  this_file_path = aff.split(":")[0]
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanapat Sainak