hotwire_combobox 0.1.17 → 0.1.19

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: 624fd7df8683b086523c19a164f850796c6781d6c11b5c86afa1297ec276df9a
4
- data.tar.gz: 9f702a4f274fd5bdf5b8ad1443ba58dc91fa2e5c57ffd3d49252a73b62bec29a
3
+ metadata.gz: 1a775e0facfeadc8692735916fa883634dd6e27b8069f0222d019ac965301640
4
+ data.tar.gz: 2961eb0baa6b5391e39f804037ece8e0ac7912d625a72bf52d280aa34da7fa41
5
5
  SHA512:
6
- metadata.gz: b147b2de14889f56062f2bca80d1ff0ce520e0f550fdb08c84145a355c2591fb2d09ec99edfaa34f68e427372a08ff2ac5881a656f7fc44d0257737985166404
7
- data.tar.gz: 4b19cc6848393fb2b89dc8fc593ececd8473f0bf949a4690322088d492b15cf4019efb21224c491d4d895d0e9cd76ce48c1a6389201356a38b374ab653f7769b
6
+ metadata.gz: d01630a09a9ab1b665315613ed4e08c9d630c48c9d175f9d72c41284e9c7638cc6c7667f883676899342acb45d041688b1c1ea0cabe7e21269484bdbb7ba8c9e
7
+ data.tar.gz: 99721fffb5e3a7c26da281024c6102b0c88767b1cd8fec296c6231a04608b3d31a2c6dcf22420314dfdd8b2a2fce7663b5ec5ecc065cc88063c6aa5eae7500e2
@@ -19,11 +19,18 @@ 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
- app.config.assets.precompile += %w( hotwire_combobox.css controllers/hw_combobox_controller.js )
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
33
+ end
27
34
  end
28
35
  end
29
36
  end
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.17"
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.17
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias