neo_components 0.1.1 → 0.1.2

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: e7671b6d3902266fb8e731fce00812fe7c01a1b73e000c4ce537c97fa10a74ab
4
- data.tar.gz: cb5a9507e1b2636fd954ce1b000e91969ad61f4e9ece03f48e70a09ca43ae7a7
3
+ metadata.gz: 9eab280a688ba36f0274ffb36e8ef56a519b4440d2dff10d45743df9380a7656
4
+ data.tar.gz: d7deae6912ff9b5bd9a358f67b0a4a072e5b72cd5df2ad115678c10b1f3071af
5
5
  SHA512:
6
- metadata.gz: cce588ffa886eb7b01b834b8eaea2edbf53a1c721f25bc7a39371e2193cb3d221bf4950b89a59e86340d61044bd5ea6ff54623d79a2b114f5eb1266e4638c054
7
- data.tar.gz: 3c1c9eb973d6a155447b8260e5676c1b9dedccdf888db1170bf535f967d95a4989b28dfa735bb35196fc6861e4a626b39431afbee26b60b7a9ee8fcb397305cc
6
+ metadata.gz: ecc2e75fad5e59e872282a7ee9f2cc0fb5ba440eee2f7626186c27b40b3a14558375b89e005dda767bfb0c9bd6d62e85c7ef08717b9483dcbc11fb8b7ae2dcc8
7
+ data.tar.gz: c88f480793f8b33074e950f4befaa9f7f1193e844db6551788620350626caaeaa78fa4b98371fa5ca8b1f5e357029c22350ed55f07d6fdf39a6b21ce7c4a8609
@@ -12,6 +12,11 @@ module NeoComponents
12
12
  app.config.assets.paths << Engine.gem_root.join("app/assets/icons")
13
13
  app.config.assets.paths << Engine.gem_root.join("app/javascript")
14
14
  app.config.assets.precompile += %w[icons.css]
15
+ # Declare all Stimulus controllers as precompilable so importmap can resolve their URLs
16
+ controllers_glob = Engine.gem_root.join("app/javascript/neo_components/controllers/*.js")
17
+ app.config.assets.precompile += Dir[controllers_glob].map do |f|
18
+ "neo_components/controllers/#{File.basename(f)}"
19
+ end
15
20
  end
16
21
 
17
22
  # Register gem view path so partials under app/views/ are found
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeoComponents
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deepak