andromeda_cms 0.6.0-aarch64-linux → 0.6.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5651680f10561904a02f8626baa6f59e4d5bf540131a3fc0653e5025e4a39114
4
- data.tar.gz: a403b5c8a6a1dd1da2a3b978be2027a0da1edd6628b81326be6e2b36b2847eff
3
+ metadata.gz: 7b62ca3ffbbbfffdf8a06c51f9e24817478d24baeaffa28d94938b941b9d3887
4
+ data.tar.gz: 16a0c4d2a58df4ca8ea96ceb8d2847158b49d927f08350d977d709ac16f79d7b
5
5
  SHA512:
6
- metadata.gz: 24cc9016120eee6474096caf06d4f82fcf1eccb648df857b99919ccc4a4dad377b7521bf779070ab266443544a20e71732f95f8920e9e7ebb16f314d1c871877
7
- data.tar.gz: 895dc27f36bc43bcd19f8daacbf17e165f9d46832a321885f70f7a7a85696b0a843c2b8ca6fedeeccfc68892f71ec6ca6f751aae1bef9d47812bb25bf7a5d25a
6
+ metadata.gz: 34c481ddf6937054a9c1d331a272129e0dd57a4c0b142f55164ab5454ad1f37159f6bbd695c1037c1b3641a34e92ebf1e780b42d2bc637c6405c8491766cd4b0
7
+ data.tar.gz: c82c04b3a80d627f8752b217fc10509cca657b4bf487bdc8a85815986ee47ad2dd6aabf6b2f63a34674b04e0c4ae491268df6daa711bd979484c7eac1076afc6
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
@@ -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
- !load_path.find(logical_path).nil?
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?(:find) ? assets.load_path : nil
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Andromeda
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andromeda_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - LIMHAUS Inc.