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 +4 -4
- data/lib/metanorma/collection/collection.rb +8 -1
- data/lib/metanorma/version.rb +1 -1
- data/metanorma.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e47ecdbf8ffe6c12891e5655b8a6e817c8cd7bf909701d8d11a4abeedeec520
|
|
4
|
+
data.tar.gz: dabdba5a4207d3329e1f189f68c112ddd4028c9e551d8446f6feedd9b72353ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
|
239
|
+
.new(b.to_xml, collection_bib.root.to_xml).merge.to_noko.children
|
|
233
240
|
x
|
|
234
241
|
end
|
|
235
242
|
|
data/lib/metanorma/version.rb
CHANGED
data/metanorma.gemspec
CHANGED
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.
|
|
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-
|
|
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
|
|
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
|
|
208
|
+
version: 3.0.0
|
|
209
209
|
description: Library to process any Metanorma standard.
|
|
210
210
|
email:
|
|
211
211
|
- open.source@ribose.com
|