andromeda_cms 0.6.0-x86_64-linux → 0.6.1-x86_64-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 +12 -0
- data/lib/andromeda/assets.rb +12 -2
- 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: acf53f64d37175f87d3e0333cd95a31cd861d3b449701914f00d3dbd00afd44f
|
|
4
|
+
data.tar.gz: e0358f652240a474ff2abb3a84929e92fe958e81c514f39ce4292102b6b17526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a153185b4128ca6686fd671f663a882635bb221f45871893a4db1aec0f0d47cc9f2cb815ede58f15de097ecdf2581f47f0154957c034f58703bcb92f5b02447
|
|
7
|
+
data.tar.gz: 4cc6f596c60da5ce19319796dc6b8f9a47d40d4e80591ed310d6dd868c6d09ab23cfccf57a687a521a5a6549a2c96d7943fafacf3a5e377b5f0d6df92868c9ce
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ 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.1] - 2026-10-09
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `assets:precompile` no longer leaves out files written after
|
|
13
|
+
`andromeda:build`, such as `tailwind.css` from `tailwindcss:build`.
|
|
14
|
+
Checking a bare image path asked Propshaft's load path, which caches its
|
|
15
|
+
file list on the first lookup, so a fresh build (an empty
|
|
16
|
+
`app/assets/builds/`) shipped without them and every page raised
|
|
17
|
+
`Propshaft::MissingAssetError`. The check now looks at the files directly.
|
|
18
|
+
|
|
8
19
|
## [0.6.0] - 2026-10-08
|
|
9
20
|
|
|
10
21
|
### Added
|
|
@@ -166,6 +177,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
166
177
|
- Generators: `andromeda:install`, `andromeda:collection`,
|
|
167
178
|
`andromeda:component` and `andromeda:import_astro`.
|
|
168
179
|
|
|
180
|
+
[0.6.1]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.6.1
|
|
169
181
|
[0.6.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.6.0
|
|
170
182
|
[0.5.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.5.0
|
|
171
183
|
[0.4.2]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.4.2
|
data/lib/andromeda/assets.rb
CHANGED
|
@@ -76,20 +76,30 @@ 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)) }
|
|
86
96
|
end
|
|
87
97
|
|
|
88
98
|
def pipeline_load_path
|
|
89
99
|
return nil unless defined?(::Rails) && ::Rails.respond_to?(:application) && ::Rails.application
|
|
90
100
|
|
|
91
101
|
assets = ::Rails.application.assets
|
|
92
|
-
assets.respond_to?(:load_path) && assets.load_path.respond_to?(:
|
|
102
|
+
assets.respond_to?(:load_path) && assets.load_path.respond_to?(:paths) ? assets.load_path : nil
|
|
93
103
|
rescue StandardError
|
|
94
104
|
nil
|
|
95
105
|
end
|
data/lib/andromeda/version.rb
CHANGED