andromeda_cms 0.6.0-aarch64-linux → 0.6.2-aarch64-linux
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 +4 -4
- data/CHANGELOG.md +25 -0
- data/lib/andromeda/assets.rb +27 -2
- data/lib/andromeda/pipeline.rb +2 -0
- data/lib/andromeda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b093c6ec45062f6f5ba2ac713b7c9d9a760d7659d7ee7097e390af754fbae2d
|
|
4
|
+
data.tar.gz: eb7d183ff57e333d949f228acefcf9450fe63fedae53ff83199939e49fbaf8c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5603afa4275bcfd9d4edf3748ca0a6e5dbd2621ea2f8c6844ea2bdfde3938ae87e6d100c95e1bc5a8bb54863afbf6c98a04cb6bc2837c4f08f3d05c5e9624a1e
|
|
7
|
+
data.tar.gz: 5ed78211a3e9e0eee2cd83de16e2edbc25ef1fa0cc5eb0368ff376fabfaf337eee024719bf4788687a73ebe7f5c325b63237ee2f1be6c6a1261061ce2173afdd
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.2] - 2026-10-09
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `assets:precompile` no longer leaves out `tailwind.css` when an
|
|
13
|
+
application partial rendered during `andromeda:build` calls `image_tag` or
|
|
14
|
+
`asset_path`. Propshaft caches its file list on the first lookup, so a
|
|
15
|
+
fresh build (an empty `app/assets/builds/`) shipped without the files
|
|
16
|
+
written afterwards and every page raised `Propshaft::MissingAssetError`.
|
|
17
|
+
`andromeda:build` now discards that cache when it finishes, whether or not
|
|
18
|
+
the build succeeds.
|
|
19
|
+
|
|
20
|
+
## [0.6.1] - 2026-10-09
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- `assets:precompile` no longer leaves out files written after
|
|
25
|
+
`andromeda:build`, such as `tailwind.css` from `tailwindcss:build`.
|
|
26
|
+
Checking a bare image path asked Propshaft's load path, which caches its
|
|
27
|
+
file list on the first lookup, so a fresh build (an empty
|
|
28
|
+
`app/assets/builds/`) shipped without them and every page raised
|
|
29
|
+
`Propshaft::MissingAssetError`. The check now looks at the files directly.
|
|
30
|
+
|
|
8
31
|
## [0.6.0] - 2026-10-08
|
|
9
32
|
|
|
10
33
|
### Added
|
|
@@ -166,6 +189,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
166
189
|
- Generators: `andromeda:install`, `andromeda:collection`,
|
|
167
190
|
`andromeda:component` and `andromeda:import_astro`.
|
|
168
191
|
|
|
192
|
+
[0.6.2]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.6.2
|
|
193
|
+
[0.6.1]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.6.1
|
|
169
194
|
[0.6.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.6.0
|
|
170
195
|
[0.5.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.5.0
|
|
171
196
|
[0.4.2]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.4.2
|
data/lib/andromeda/assets.rb
CHANGED
|
@@ -76,20 +76,45 @@ module Andromeda
|
|
|
76
76
|
# back to a plain /assets path for anything it cannot find, so without
|
|
77
77
|
# this check a typo only shows up as a 404 in production.
|
|
78
78
|
#
|
|
79
|
+
# This looks at the files directly instead of calling `load_path.find`:
|
|
80
|
+
# Propshaft memoizes its file list on the first lookup, and the same load
|
|
81
|
+
# path is later used by assets:precompile. Asking it during andromeda:build
|
|
82
|
+
# would hide every file written afterwards (tailwind.css from
|
|
83
|
+
# tailwindcss:build, images copied by `publish`) from the precompile.
|
|
84
|
+
#
|
|
79
85
|
# @return [Boolean, nil] nil when there is no Propshaft load path to ask
|
|
80
86
|
# (no asset pipeline, or Sprockets), so callers can skip the check.
|
|
81
87
|
def exists?(logical_path)
|
|
82
88
|
load_path = pipeline_load_path
|
|
83
89
|
return nil if load_path.nil?
|
|
84
90
|
|
|
85
|
-
|
|
91
|
+
path = logical_path.to_s
|
|
92
|
+
return false if path.start_with?("/") || path.split("/").include?("..")
|
|
93
|
+
return false if File.basename(path).start_with?(".")
|
|
94
|
+
|
|
95
|
+
load_path.paths.any? { |directory| File.file?(File.join(directory.to_s, path)) }
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Discards Propshaft's memoized file list. Propshaft builds it on the first
|
|
99
|
+
# lookup, and app partials rendered during `andromeda:build` can trigger
|
|
100
|
+
# that through `asset_path`. Files written afterwards (tailwind.css from
|
|
101
|
+
# tailwindcss:build, images copied by `publish`) would then be missing from
|
|
102
|
+
# assets:precompile, so the build calls this when it finishes. `clear_cache`
|
|
103
|
+
# is private API; if a Propshaft release renames it, skipping the reset is
|
|
104
|
+
# better than breaking the build.
|
|
105
|
+
def reset_pipeline_cache
|
|
106
|
+
load_path = pipeline_load_path
|
|
107
|
+
return if load_path.nil?
|
|
108
|
+
|
|
109
|
+
load_path.send(:clear_cache) if load_path.respond_to?(:clear_cache, true)
|
|
110
|
+
nil
|
|
86
111
|
end
|
|
87
112
|
|
|
88
113
|
def pipeline_load_path
|
|
89
114
|
return nil unless defined?(::Rails) && ::Rails.respond_to?(:application) && ::Rails.application
|
|
90
115
|
|
|
91
116
|
assets = ::Rails.application.assets
|
|
92
|
-
assets.respond_to?(:load_path) && assets.load_path.respond_to?(:
|
|
117
|
+
assets.respond_to?(:load_path) && assets.load_path.respond_to?(:paths) ? assets.load_path : nil
|
|
93
118
|
rescue StandardError
|
|
94
119
|
nil
|
|
95
120
|
end
|
data/lib/andromeda/pipeline.rb
CHANGED
data/lib/andromeda/version.rb
CHANGED