hotwire_combobox 0.1.18 → 0.1.20

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: 44cea1ac36ce53266bab1aa0834d93526fdd7793b3deeda1fd11c093895a1337
4
- data.tar.gz: a17dcbb8eaf2a2fe2fb4415222aea477460d06e8492b1533dda6de1896b8c615
3
+ metadata.gz: c9a3f3fe4f81cae0c51f95b6037012389fac56c391c0550fb9fe2c8e7343e5a6
4
+ data.tar.gz: d6d4d3c408817ae41f702aa723711910e2e48e8b11ae67024a126f696295198c
5
5
  SHA512:
6
- metadata.gz: 05f0eac9590fe3df2877337a6d53a748645272cca4f62cc15b362a8b36d11441813b229adce60818a22986c708ad2e02197a0fa5ae42b6f4a539c1a4eb8831ac
7
- data.tar.gz: 1793f8e788012e7d54cc67a600c86e118777c34d472d8cf727871828162d180cf2de2cc7d050d1a8e091408b891f95937bca780e0df907e0fe51e6d607a3c997
6
+ metadata.gz: 006ead653d067fbf6775600b889a3ec2fab2987f7796c64fe16df17a5806ea65bb8ef465b1e9d852b09109e567f00a093ab59189c66816add8cf0904adf934c7
7
+ data.tar.gz: 3c5dc978a6ef14b3e8be7c3c8112aa3fd290a7103e4fd6849a2e387ae1df70b6b074e8351429e54d9f72664075932ffd0612576d4f944c2c919b5053ed5c5076
@@ -0,0 +1,2 @@
1
+ //= link_directory ../stylesheets .css
2
+ //= link_tree ../javascripts .js
@@ -19,12 +19,14 @@ 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
+ app.config.assets.precompile << "hw_combobox_manifest.js"
28
30
  end
29
31
  end
30
32
  end
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.20"
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.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias
@@ -90,6 +90,7 @@ files:
90
90
  - MIT-LICENSE
91
91
  - README.md
92
92
  - Rakefile
93
+ - app/assets/config/hw_combobox_manifest.js
93
94
  - app/assets/javascripts/controllers/application.js
94
95
  - app/assets/javascripts/controllers/hw_combobox_controller.js
95
96
  - app/assets/javascripts/controllers/index.js