alchemy_cms 8.4.5 → 8.4.6

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: 2149a9b436d28beeca994728155f0104c702b3ae4e3df087f7fb2ed79412cca8
4
- data.tar.gz: 2c854576dfe0b57c3e73f77a4f27761cae36b7f274b71086076725042e6a17d4
3
+ metadata.gz: 002da464bbfbc51b7ec5f2adcf7e4af135a3f6979689d4a1a97f1f90bef9b73e
4
+ data.tar.gz: ede1b0ac29a99581e6eaa05ca820a46458a6a3db0e1376bbbeba8d11901e0770
5
5
  SHA512:
6
- metadata.gz: 92d6e8a25d71b0c36eb2759b46dff0ac15e1905dec1202aa2e629458acf87d51090fdde24cccd6385c18b3ac52611f9d8c3d0c44aacb776cdf7964a72d54249b
7
- data.tar.gz: 5910df287025a2bf4e37baa79bab005cf30272d4efaa27b94f195d92bff601c449cc521db73d5e7ec025c53ff92d7954a9b23dc6f30d27dfe0cfda614968f92c
6
+ metadata.gz: 662561de6571c0ff64ea2f30c14cdf83f1e633c3977a3e587bc6a79f4f1d1526b65bacdb16eee5c726391d311d6ac3492fe9f2b0f99929c9469758a017fcd092
7
+ data.tar.gz: b9e8669e12466ea722789cd6a1c9658d5aad3a1ee0289aaf3b7341073f1221cd6366c24258e0fb7e5162c70178eefa4e50c73a598d42285e1325b1cc909c97d5
@@ -54,12 +54,17 @@ module Alchemy
54
54
  )
55
55
  end
56
56
 
57
- # Runs after initialization, so that importmaps added from an application
58
- # initializer (those run after the engine's initializers) are picked up.
57
+ # Runs as a prepare block, so that importmaps added from an application
58
+ # initializer are picked up, but the source paths still reach the asset
59
+ # paths before Sprockets copies them in its `after_initialize`.
59
60
  # It must not run again on reload: every entry it adds below lands in a
60
61
  # registry that is never pruned.
61
62
  initializer "alchemy.importmap" do |app|
62
- app.config.after_initialize do
63
+ importmap_loaded = false
64
+ app.config.to_prepare do
65
+ next if importmap_loaded
66
+ importmap_loaded = true
67
+
63
68
  watch_paths = []
64
69
 
65
70
  Alchemy.config.admin_importmaps.each do |admin_import|
@@ -3,7 +3,7 @@
3
3
  module Alchemy
4
4
  extend self
5
5
 
6
- VERSION = "8.4.5"
6
+ VERSION = "8.4.6"
7
7
 
8
8
  def version
9
9
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.5
4
+ version: 8.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen