thecore_ui_commons 2.1.13 → 2.1.14

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
  SHA256:
3
- metadata.gz: 8e4ef3e895b0a8a8245042531114171c1a721e60a7fba2ad98cbebc8531a2938
4
- data.tar.gz: 6e742cc4502f25b3de6d78c49ad831066843d70d013f76f15e98e1f9984947a3
3
+ metadata.gz: 335ebc71696d91bccc5f8e40c0578f4d57981f38ef3abaf32d804c852f21486b
4
+ data.tar.gz: f9449c252ca8cf444105fd45186fb3d8071c19eea5c1957f778acf2f1e83011c
5
5
  SHA512:
6
- metadata.gz: e2807aa12180045e572799d89a286dd9bb51f344855f286ed05a87135367f92228c0193a58c4b68bdfb5c76c887373b6fb174058ac6c0ca095fdab63b26a3154
7
- data.tar.gz: ab43258f4bfcde3a1d4f01a8d6da881d13dd0d0c3ac720c3f6f20468c239a3a7f2993660913d9b5075012636ab8a601247d4d1a25c37113e0d31aaf35180f445
6
+ metadata.gz: f71388796069c082d8f8f6a3455da74dfab15c4132419f37cf3c30e1209fda5d533237f34ccf06fc4f4fa15a30e84e71141270875871063cd458e3b52a968574
7
+ data.tar.gz: f764ea7a0881c8c8a592d77b19f890cce24414a584493729409fd0f7887b86340cd04a4daa92030d35cd87d9cd6b337bc17f7cb5f31c2cbc7295851dbea75f7f
@@ -2,15 +2,22 @@ module Helpers
2
2
  module ThecoreUiCommonsHelper
3
3
  def get_asset_tags_for(basename)
4
4
  out = []
5
+
5
6
  # Needs to reverse since Paths are traversed in the order they occur in the search path. By default, this means the files in app/assets take precedence, and will mask corresponding paths in lib and vendor.
6
7
  Rails.application.config.assets.paths.reverse.each do |basedir|
7
8
  base = "#{basedir}/**/#{basename}"
8
- base_s = Dir["#{base}.scss"]
9
+ base_s = Dir["#{base}.{css,scss}"]
9
10
  base_j = Dir["#{base}.js"]
10
- out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?
11
- out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?
11
+
12
+ (out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?) rescue nil
13
+ (out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?) rescue nil
12
14
  end
13
- out.join("\n ").html_safe
15
+
16
+ # Application level assets
17
+ (out << stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true)) rescue nil
18
+ (out << javascript_include_tag('application', 'data-turbolinks-track' => true)) rescue nil
19
+
20
+ out.join("\n").html_safe
14
21
  end
15
22
 
16
23
  def get_folder(base)
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = '2.1.13'
2
+ VERSION = '2.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.13
4
+ version: 2.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-27 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs