hotwire_combobox 0.1.18 → 0.1.19

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
  SHA256:
3
- metadata.gz: 44cea1ac36ce53266bab1aa0834d93526fdd7793b3deeda1fd11c093895a1337
4
- data.tar.gz: a17dcbb8eaf2a2fe2fb4415222aea477460d06e8492b1533dda6de1896b8c615
3
+ metadata.gz: 1a775e0facfeadc8692735916fa883634dd6e27b8069f0222d019ac965301640
4
+ data.tar.gz: 2961eb0baa6b5391e39f804037ece8e0ac7912d625a72bf52d280aa34da7fa41
5
5
  SHA512:
6
- metadata.gz: 05f0eac9590fe3df2877337a6d53a748645272cca4f62cc15b362a8b36d11441813b229adce60818a22986c708ad2e02197a0fa5ae42b6f4a539c1a4eb8831ac
7
- data.tar.gz: 1793f8e788012e7d54cc67a600c86e118777c34d472d8cf727871828162d180cf2de2cc7d050d1a8e091408b891f95937bca780e0df907e0fe51e6d607a3c997
6
+ metadata.gz: d01630a09a9ab1b665315613ed4e08c9d630c48c9d175f9d72c41284e9c7638cc6c7667f883676899342acb45d041688b1c1ea0cabe7e21269484bdbb7ba8c9e
7
+ data.tar.gz: 99721fffb5e3a7c26da281024c6102b0c88767b1cd8fec296c6231a04608b3d31a2c6dcf22420314dfdd8b2a2fce7663b5ec5ecc065cc88063c6aa5eae7500e2
@@ -19,12 +19,17 @@ module HotwireCombobox
19
19
  end
20
20
 
21
21
  initializer "hotwire_combobox.importmap", before: "importmap" do |app|
22
- app.config.importmap.paths << Engine.root.join("config/importmap.rb")
22
+ if Rails.application.respond_to?(:importmap)
23
+ app.config.importmap.paths << Engine.root.join("config/importmap.rb")
24
+ end
23
25
  end
24
26
 
25
27
  initializer "hotwire_combobox.assets.precompile" do |app|
26
- Dir.glob(File.join(Engine.root, "app/assets/**/*.{js,css}")).each do |path|
27
- app.config.assets.precompile << path
28
+ if Rails.application.config.respond_to?(:assets)
29
+ Dir.glob(Engine.root.join("app/assets/**/*.{js,css}")).each do |path|
30
+ logical_path = Pathname.new(path).relative_path_from(Pathname.new(Engine.root.join("app/assets"))).to_s
31
+ app.config.assets.precompile << logical_path
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotwire_combobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias