metanorma 2.5.6.pre.alpha.2 → 2.5.6.pre.alpha.3

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: 834a924551ca15a50f160376cfcd57297d5b76a6614e2e216b23e5732895ddcf
4
- data.tar.gz: 25e149845256b206fc4bd6a5d0a9aab851fcc2ed91608fad03e5c4c67540aaa6
3
+ metadata.gz: 5e47ecdbf8ffe6c12891e5655b8a6e817c8cd7bf909701d8d11a4abeedeec520
4
+ data.tar.gz: dabdba5a4207d3329e1f189f68c112ddd4028c9e551d8446f6feedd9b72353ec
5
5
  SHA512:
6
- metadata.gz: 5f8b1c155092bf4c25ae2ef76c66e87ba57ed38e7902f738267f74220a51a67dc246bef896ec85bc4d0f6c2100d78663a39c7b0e16611c36babd4a19436fa4cd
7
- data.tar.gz: 4f6858efb8e6d7699a735f9d386c97d1a8c44d33516f366f6fb350c27ae3bf589b68442546da84eb868412140567426f8ac3b6edacfc41c97a85c06477c32214
6
+ metadata.gz: 8259a3a5c5d3858096294245c98bcfec9e9dd13aedfdec558b03ff4b6ef63512a8cce569b26386a5df831570caf74c3b8681606ec65f0b178b32c0358f52fd22
7
+ data.tar.gz: 80e3182fada6309690494980b00310e988a6c614d3cb3cc8eb22bbf8219d51de8d9bd04e641506cb4268f1effe06c08677f1c0d02bd8bd285e5265d9a1e39cb5
@@ -228,8 +228,15 @@ module Metanorma
228
228
  x.xpath("//xmlns:clause").each { |n| n["unnumbered"] = true }
229
229
  b = x.at("//xmlns:bibdata")
230
230
  prefatory_parse_fix_bibdata(b)
231
+ # The collection bibdata fills the chunk's missing fields, but its
232
+ # edition is stripped first: the collection's edition belongs to
233
+ # the collection document and must never enter the chunk — merging
234
+ # it in produced bibitems with two <edition> elements that abort
235
+ # relaton re-parses (relaton/relaton-db#149).
236
+ collection_bib = Nokogiri::XML(@bibdata.to_xml(bibdata: true))
237
+ collection_bib.xpath("//*[local-name()='edition']").each(&:remove)
231
238
  b.children = ::Metanorma::Standoc::Cleanup::MergeBibitems
232
- .new(b.to_xml, @bibdata.to_xml(bibdata: true)).merge.to_noko.children
239
+ .new(b.to_xml, collection_bib.root.to_xml).merge.to_noko.children
233
240
  x
234
241
  end
235
242
 
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "2.5.6.pre.alpha.2".freeze
2
+ VERSION = "2.5.6.pre.alpha.3".freeze
3
3
  end
data/metanorma.gemspec CHANGED
@@ -39,4 +39,4 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "metanorma-iso"
40
40
 
41
41
  # relaton-cli is required by Metanorma::Collection
42
- spec.add_dependency "relaton-cli", ">= 3.0.0.pre.alpha"end
42
+ spec.add_dependency "relaton-cli", ">= 3.0.0"end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.6.pre.alpha.2
4
+ version: 2.5.6.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-23 00:00:00.000000000 Z
11
+ date: 2026-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: 3.0.0.pre.alpha
201
+ version: 3.0.0
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: 3.0.0.pre.alpha
208
+ version: 3.0.0
209
209
  description: Library to process any Metanorma standard.
210
210
  email:
211
211
  - open.source@ribose.com