andromeda_cms 0.1.0 → 0.1.1
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/entry.rb +12 -0
- data/lib/andromeda/pipeline.rb +1 -1
- 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: e0bf0f98d84d4c550f9767a856abdc93167d42cb183a737321db4ff195baa871
|
|
4
|
+
data.tar.gz: a54266f37539d9b89907bcc67c9011546c94299c7d29e30487ece2b887a2ae99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11abb00fcd58c65c95568093a399684110affa71e756cad1abd4e4ecdf83c3c22a2f9ef6b7628de05fc49eb2d93056b4fe7c116be2b3bd8eafbc92be2297124f
|
|
7
|
+
data.tar.gz: 5134eef7dbb6fe51deb56e9e7eddeb346a5982b81cb6de4e3ac9bf37ca57f00d0709e60dfe63da4197c5b931b3047ce242ee691d783e28983e620d2d70c8465f
|
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.1.1] - 2026-09-27
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `andromeda:build` failed with `Andromeda::BuildMissing` when run in
|
|
13
|
+
production mode on a clean checkout -- which is exactly how
|
|
14
|
+
`assets:precompile` runs in a Docker build -- because it listed entries from
|
|
15
|
+
the built index instead of the source files. On a production machine that
|
|
16
|
+
already had a build, the same path would have rewritten every page with an
|
|
17
|
+
empty body. Builds now always read the source files.
|
|
18
|
+
|
|
8
19
|
## [0.1.0] - 2026-09-27
|
|
9
20
|
|
|
10
21
|
### Added
|
|
@@ -27,4 +38,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
27
38
|
- Generators: `andromeda:install`, `andromeda:collection`,
|
|
28
39
|
`andromeda:component` and `andromeda:import_astro`.
|
|
29
40
|
|
|
41
|
+
[0.1.1]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.1.1
|
|
30
42
|
[0.1.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.1.0
|
data/lib/andromeda/entry.rb
CHANGED
|
@@ -154,6 +154,18 @@ module Andromeda
|
|
|
154
154
|
Andromeda::Pipeline.new.collection_index(self)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
+
# Every entry read and validated from its source file, whatever the
|
|
158
|
+
# mode. This is what `andromeda:build` converts: in production `all`
|
|
159
|
+
# reads the built index instead, which does not exist before the first
|
|
160
|
+
# build and carries no body after it, so a build that went through `all`
|
|
161
|
+
# would either fail or overwrite every page with empty HTML.
|
|
162
|
+
#
|
|
163
|
+
# @return [Array<Andromeda::Entry>]
|
|
164
|
+
# @raise [Andromeda::LoaderError] listing every file that failed.
|
|
165
|
+
def source_entries
|
|
166
|
+
load_entries_from_source
|
|
167
|
+
end
|
|
168
|
+
|
|
157
169
|
# Drops the in-memory cache, forcing the next query to re-run the
|
|
158
170
|
# Loader. Used by tests that change fixtures mid-example, and is the
|
|
159
171
|
# hook the dev-mode "reconvert on stale mtime" check will call.
|
data/lib/andromeda/pipeline.rb
CHANGED
|
@@ -171,7 +171,7 @@ module Andromeda
|
|
|
171
171
|
def build_collection(entry_class)
|
|
172
172
|
entries =
|
|
173
173
|
begin
|
|
174
|
-
entry_class.
|
|
174
|
+
entry_class.source_entries
|
|
175
175
|
rescue Andromeda::LoaderError => e
|
|
176
176
|
return BuildResult.new(
|
|
177
177
|
collection: entry_class.collection_name, converted: 0,
|
data/lib/andromeda/version.rb
CHANGED