andromeda_cms 0.4.0-x86_64-linux → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1d99daee973c667d5688aad3ad1210077a1ec9ff718b7aa89c81f4f5b9c32d5
4
- data.tar.gz: '066092d5eda1c0c86d30b06c7b7157fec4cb3e13f38cec3edbf44e5cfd7f2340'
3
+ metadata.gz: f3e819f41cde88cb7ccf5d457720e14bc768c3940a3ef42ae382c7521570985f
4
+ data.tar.gz: 62d143fed6361250ce20c0d2c2496f5bf5feadfdffd8ab75f023a951796c5c5a
5
5
  SHA512:
6
- metadata.gz: 5e5f4872938d65526304d171916c3d09cdc05ec2d09ef7886cba78c4ede81acbb0d61b85f79785f4862145a21c9ebd4fe12ec4d615a8cff570fa37b7dc044ee7
7
- data.tar.gz: e640d2de914db5b857674c28e5f2f3c96bb54ece9a17881d80cbb6dd9e5db0a82623b920c96f7f32d4cea083ce39afd64922aef5cc4d10bfb8a3832555330ebe
6
+ metadata.gz: 3b975eebe2484d7c78661b745d2307dd064f07904e1d5159bb9d62226f9c56dd1a50769db2296ea3b5d7cb91c4c63e147311abf693596dbdb61119abce15840b
7
+ data.tar.gz: 779101175479231d7e210bcd83d83de27aff6010232e310df1efa0822e8774da9f57d748133e425cc4b16e313bc5a5b9f9a524cc734feeb11a16d368373bf593
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
  ```
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Andromeda
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.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.4.0
4
+ version: 0.4.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - LIMHAUS Inc.