metanorma-plugin-lutaml 0.7.70 → 0.7.72
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/CLAUDE.md +9 -0
- data/lib/metanorma/plugin/lutaml/express_remark_adapter.rb +9 -23
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2470155dfa3c220d300a0faf70c35d589981d6f63015146d480b2cf8714cea6d
|
|
4
|
+
data.tar.gz: fb217da80786aed5e1c1fae552c577efe25dcdc6afb7b47c831fb97d048aaabd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz: '
|
|
6
|
+
metadata.gz: 0a3883bd06a6931eb38258cec755c5438a77c96b5f0481eea523f275b45ec4f4c3e0f47f778490fb8b798b6f8053e5dd7905f31d492862821b476ad890b9a479
|
|
7
|
+
data.tar.gz: '0979b572045057d2cc93f76596c90be6a741951823156b04ce05c4f9ca18517b69866de79731fc08fcf1ed421cf33c9c05e889a95db29bcf80498c6a176e9c2f'
|
data/CLAUDE.md
CHANGED
|
@@ -80,3 +80,12 @@ Tests use `metanorma-standoc` as the backend. The spec helper registers all exte
|
|
|
80
80
|
- `liquid` — template rendering engine
|
|
81
81
|
- `asciidoctor` — document processing framework
|
|
82
82
|
- `canon` — semantic XML comparison for test assertions
|
|
83
|
+
|
|
84
|
+
## Release integrity (fleet contracts) — learned 2026-11-16
|
|
85
|
+
|
|
86
|
+
These rules exist because 0.7.70/0.7.71 shipped breaking: FATAL image-not-found in every figure-bearing consumer build (issues #359/#360) and silently lost EXPRESS-G figures.
|
|
87
|
+
|
|
88
|
+
1. **No release without the downstream consumer's integration suite green.** Before publishing, install THIS branch's gem into a suma bundle and run `rspec spec/suma/cli/build_integration_spec.rb` there (expect EXIT=0). The local rspec suite is necessary but never sufficient: its bundle can carry locally-installed unreleased gems, so a green local run proves nothing about the released pair.
|
|
89
|
+
2. **Declare sibling dependencies with explicit floors.** Unconstrained deps resolve to breaking releases across the fleet (lutaml-lml floated to a parslet-based 0.1.5 with no `Parser.parse` — issue #361). Every gem this one requires at runtime gets `add_dependency` with a floor.
|
|
90
|
+
3. **Renderer changes need positive content assertions.** Liquid renders missing methods as `nil` silently. Assert the rendered output CONTAINS the artifacts (figure blocks after the listing, imagesdir entries, `END_SCHEMA` inside the fence) — "no error" is not "content present".
|
|
91
|
+
4. **A/B any remark/image-resolution change on a figure-bearing consumer document** before and after — the express-g staging consumes whatever the remark layer emits.
|
|
@@ -164,33 +164,19 @@ module Metanorma
|
|
|
164
164
|
@model.schemas.each do |schema|
|
|
165
165
|
ExpressRemarkAdapter.for(schema).decorate_remarks(options)
|
|
166
166
|
end
|
|
167
|
-
apply_document_imagesdir(options["document"])
|
|
168
167
|
end
|
|
169
168
|
|
|
170
169
|
private
|
|
171
170
|
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
#
|
|
179
|
-
#
|
|
180
|
-
#
|
|
181
|
-
def apply_document_imagesdir(document)
|
|
182
|
-
return unless document
|
|
183
|
-
|
|
184
|
-
dirs = @model.schemas.filter_map do |schema|
|
|
185
|
-
next unless schema.respond_to?(:listing_imagesdir)
|
|
186
|
-
|
|
187
|
-
schema.listing_imagesdir
|
|
188
|
-
end.uniq
|
|
189
|
-
return unless dirs.one?
|
|
190
|
-
return if document.attributes["imagesdir"]
|
|
191
|
-
|
|
192
|
-
document.attributes["imagesdir"] = dirs.first
|
|
193
|
-
end
|
|
171
|
+
# NO document-level imagesdir here: metanorma's figure
|
|
172
|
+
# absolutization joins document.attributes["imagesdir"] with
|
|
173
|
+
# svgmap-synthesized targets that are ALREADY docfile-relative
|
|
174
|
+
# (the express-g assembly writes `../../schemas/...`), doubling
|
|
175
|
+
# the directory segments and failing the image-existence check
|
|
176
|
+
# (suma's dummy-collection repro). The remark content is served
|
|
177
|
+
# by the listing-scoped attribute entries emitted around each
|
|
178
|
+
# source block, which only affect asciidoctor resolution inside
|
|
179
|
+
# the listing.
|
|
194
180
|
end
|
|
195
181
|
|
|
196
182
|
class CachedRepoAdapter < Base
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plugin-lutaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.72
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|