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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0d3eeed259899046e507228c9896e3956c85441ba7737bc23ba7fec74b5a361
4
- data.tar.gz: 835d53f863ffd1b13e1e1acbb33d0275e9700f0537d87367b90a55644de90b23
3
+ metadata.gz: 2470155dfa3c220d300a0faf70c35d589981d6f63015146d480b2cf8714cea6d
4
+ data.tar.gz: fb217da80786aed5e1c1fae552c577efe25dcdc6afb7b47c831fb97d048aaabd
5
5
  SHA512:
6
- metadata.gz: 9c180340bb5cffc26abfac8d900aa38e170a3d72ae14f0d0cdc33c311f305662d3ef02ab6f7ca31890a86991392834be54598761598e213b2b44945eb3985a9f
7
- data.tar.gz: '0549ff2f14b27184bee416da749d8949442d63eb3644ec9cded55934d9fc16aaa947fd6a0a8ca6c070f06fa18d25718ee4f23c77b45615defdcad46e37406725'
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
- # A per-schema document (one schema rendered per document —
173
- # suma's SchemaTemplate::Document) takes a document-level
174
- # imagesdir: every schema in the repository resolves its images
175
- # against the same directory, so templates that print the raw
176
- # formatted_hyperlinked_adoc keep working without path
177
- # rewriting. An imagesdir the author (or an earlier block) set
178
- # is respected; a multi-directory repository cannot take one
179
- # document-level value — its schemas carry the attribute entries
180
- # in their listing output instead.
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
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.70".freeze
4
+ VERSION = "0.7.72".freeze
5
5
  end
6
6
  end
7
7
  end
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.70
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-16 00:00:00.000000000 Z
11
+ date: 2026-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor