andromeda_cms 0.4.0-aarch64-linux → 0.4.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 +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +3 -0
- data/lib/andromeda/helpers.rb +17 -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: f23523686b03c5793fb99d19376f93bb8b0a193723c7b2c1dba6753920134d1b
|
|
4
|
+
data.tar.gz: 8ae233307d94b0728fce21cbea7c9976d5beed737acd1b1ac956167bfd553c28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7db8cacc32b9555a80cf0e79efb92415ddd933dee1a79a14b8a7ed9e7143d6b5fcd48c8c23827ac85bf71880b65ff6f652f347f21a7303104b6a68e3e4177a86
|
|
7
|
+
data.tar.gz: c03647b6f2e27ff3c894a846ae9380219f0867aa0c4646fcecd95a4cfb7df29f827bb165e53db048364deb40e316b8b7f888e835d3f23d9a07e8b32734b11fb4
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ 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.4.1] - 2026-09-29
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `image_tag andromeda_image_url(src)` in a component no longer fails
|
|
13
|
+
`andromeda:build` with `Propshaft::MissingAssetError`. While converting,
|
|
14
|
+
the asset helpers (`image_tag`, `asset_path`, `asset_url`...) pass an asset
|
|
15
|
+
marker through untouched, so `andromeda_content` resolves it when the page
|
|
16
|
+
is served.
|
|
17
|
+
|
|
8
18
|
## [0.4.0] - 2026-09-29
|
|
9
19
|
|
|
10
20
|
### Added
|
|
@@ -121,6 +131,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
121
131
|
- Generators: `andromeda:install`, `andromeda:collection`,
|
|
122
132
|
`andromeda:component` and `andromeda:import_astro`.
|
|
123
133
|
|
|
134
|
+
[0.4.1]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.4.1
|
|
124
135
|
[0.4.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.4.0
|
|
125
136
|
[0.3.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.3.0
|
|
126
137
|
[0.2.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.2.0
|
data/README.md
CHANGED
|
@@ -234,6 +234,9 @@ The partial receives the same `Andromeda::Image` an `image` attribute holds:
|
|
|
234
234
|
</figure>
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
+
`image_tag andromeda_image_url(src)` works as well: while converting, the
|
|
238
|
+
asset helpers pass the placeholder through untouched.
|
|
239
|
+
|
|
237
240
|
## Development and deployment
|
|
238
241
|
|
|
239
242
|
```
|
data/lib/andromeda/helpers.rb
CHANGED
|
@@ -32,6 +32,23 @@ module Andromeda
|
|
|
32
32
|
Andromeda::BuildContext.converting? ? source : Andromeda::Assets.resolve(source)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Lets `image_tag andromeda_image_url(src)` work at conversion time.
|
|
36
|
+
# The marker has no `//`, so Rails would take it for a logical path and
|
|
37
|
+
# Propshaft would fail to find it; passing it through leaves it for
|
|
38
|
+
# `andromeda_content` to resolve like any other marker. Every asset
|
|
39
|
+
# helper (`image_tag`, `image_path`, `asset_url`...) goes through here.
|
|
40
|
+
def asset_path(source, options = {})
|
|
41
|
+
return source if Andromeda::BuildContext.converting? && source.to_s.start_with?(Andromeda::Assets::MARKER)
|
|
42
|
+
|
|
43
|
+
super
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# `image_tag` and `asset_url` call this alias, which Rails binds to its
|
|
47
|
+
# own `asset_path` and so would skip the override above.
|
|
48
|
+
def path_to_asset(source, options = {})
|
|
49
|
+
asset_path(source, options)
|
|
50
|
+
end
|
|
51
|
+
|
|
35
52
|
# Renders a nested table of contents from `entry.headings`.
|
|
36
53
|
#
|
|
37
54
|
# `min`/`max` default to h2..h3 because a page's h1 is usually the entry
|
data/lib/andromeda/version.rb
CHANGED