metanorma-plugin-lutaml 0.7.87 → 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: b51baaef06ef5de3ae93e5703c5c0a3d4e7a4bcd9446a94b38fa28b6e66adc8b
4
- data.tar.gz: 89f65a30ade80a0aa18583286fe020add2c0139fd09b3e3d2b1b1bcd50d214ed
3
+ metadata.gz: 79e39e0029f7cae255c755c1193dc3f374ea55154edf1bb27e8fb7005ce82544
4
+ data.tar.gz: aac1b137c7b3e6676c3bcd836ae48c8413d60e6e609715bbd1882a75fcd23ff7
5
5
  SHA512:
6
- metadata.gz: e338bddf83168469347829f20f66cd925ec8a7cd1dc350d69637984686de39a16c5738192c1275b047c261c22d9ec5f922283df8acb453a4db789f49d0db3653
7
- data.tar.gz: a9c7d50a60a285e8c5df818c5ea1349abc2cfb333a372706abfe015ecb2652fbea7302dfcc34762a303b8367a1428f518e049f6aa1678025f7fafbace8314255
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 moxml: the
278
- # metanorma stack pins lutaml-model's process-wide adapter to
279
- # engines whose namespaced-child binding mishandles the
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; metanorma pins :nokogiri from
282
- # metanorma/collection/config/config.rb, uniword re-asserts
283
- # :leptris). with_adapter is lutaml-model's thread-local
284
- # per-operation override — it touches nothing outside this
285
- # block, and the moxml engine ships as a lutaml-model
286
- # dependency. Bundles whose lutaml-model adapter registry
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 derive_with_namespaced_children_safe
296
- ::Lutaml::Model::Config.with_adapter(xml: :moxml) { yield }
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
 
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.87".freeze
4
+ VERSION = "0.7.88".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.87
4
+ version: 0.7.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.