metanorma-plugin-lutaml 0.7.86 → 0.7.88
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79e39e0029f7cae255c755c1193dc3f374ea55154edf1bb27e8fb7005ce82544
|
|
4
|
+
data.tar.gz: aac1b137c7b3e6676c3bcd836ae48c8413d60e6e609715bbd1882a75fcd23ff7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3e86358a68e7bd554ac3ab95bd773c215633b4e2fff1f93bc2f8e28c207a5b8ddc21f99ffc3657e38f0a020ef96e98a2ccef2b67a022f22b6afd99ba7ca863d
|
|
7
|
+
data.tar.gz: 7e0d509db35105cb90e58706761b28fffd1226c5544d8abc07ad417675a1d16851fe3cfde093a890bd561dd7fe54b9027a145e2208748cffb99e4dcd79150cac
|
|
@@ -274,26 +274,23 @@ module Metanorma
|
|
|
274
274
|
load_xml_instances(instances_path, module_namespace)
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
# The derivation and instance parse must run under
|
|
278
|
-
#
|
|
279
|
-
#
|
|
277
|
+
# The derivation and instance parse must run under the
|
|
278
|
+
# adapter lutaml-model itself declares as its default engine
|
|
279
|
+
# (:leptris): the metanorma stack pins the process-wide
|
|
280
|
+
# adapter to :nokogiri (ogc-gml, the collection config),
|
|
281
|
+
# whose namespaced-child binding mishandles the
|
|
280
282
|
# cross-namespace children of XmlCompiler-derived models
|
|
281
|
-
# (lutaml-model#1212
|
|
282
|
-
#
|
|
283
|
-
#
|
|
284
|
-
#
|
|
285
|
-
#
|
|
286
|
-
|
|
287
|
-
# predates moxml (the umbrella lutaml gem's vendored model
|
|
288
|
-
# copy, lutaml#251) do not know the :moxml type; there the
|
|
289
|
-
# scoped override is skipped and the derivation runs under
|
|
290
|
-
# whatever the process pinned, as before.
|
|
291
|
-
instances = derive_with_namespaced_children_safe(&derivation)
|
|
283
|
+
# (lutaml-model#1212). with_adapter is lutaml-model's
|
|
284
|
+
# thread-local per-operation override — it touches nothing
|
|
285
|
+
# outside this block. Registries that predate the :leptris
|
|
286
|
+
# type reject the override; there the scope is skipped and
|
|
287
|
+
# the derivation runs under whatever the process pinned.
|
|
288
|
+
instances = derive_with_default_engine_safe(&derivation)
|
|
292
289
|
[render_liquid(lines, document, options, context_name, instances)]
|
|
293
290
|
end
|
|
294
291
|
|
|
295
|
-
def
|
|
296
|
-
::Lutaml::Model::Config.with_adapter(xml: :
|
|
292
|
+
def derive_with_default_engine_safe
|
|
293
|
+
::Lutaml::Model::Config.with_adapter(xml: :leptris) { yield }
|
|
297
294
|
rescue StandardError => e
|
|
298
295
|
raise e unless e.message.include?("Unknown adapter")
|
|
299
296
|
|
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.88
|
|
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-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|