metanorma 2.5.6.pre.alpha.1 → 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: f225922f924a7498faff8af31ef32af2b2bdb7718ddbdd4d71e8111b1e1c2024
4
- data.tar.gz: 25d6d62381fe280580b9914e2e08208b117e69a50f916670174f8cef483de801
3
+ metadata.gz: 5e47ecdbf8ffe6c12891e5655b8a6e817c8cd7bf909701d8d11a4abeedeec520
4
+ data.tar.gz: dabdba5a4207d3329e1f189f68c112ddd4028c9e551d8446f6feedd9b72353ec
5
5
  SHA512:
6
- metadata.gz: 705eb23883f6b8c1e30137ebd300e34ab9248c62858e0a49afd0d3a7b08b08d61b0b26ee1d89599af4049bc31862f00b1fba922b6e31a7c5331c73c7c2700069
7
- data.tar.gz: 6373b0edc74e3a9fa86faffd9e4c85c08b3ff1e57327e1f54fbea6de2da12825cc995910473b4f44e4b09a33490724130dbd669c4b2437a5729284cedcf3af13
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
 
@@ -36,10 +36,27 @@ module Metanorma
36
36
  Util.log("[fontist] '#{e.font}' font is not supported. " \
37
37
  "Please report this issue at " \
38
38
  "https://github.com/metanorma/metanorma/issues", log_level)
39
+ rescue *size_limit_errors => e
40
+ log_level = continue ? :warning : :fatal
41
+ Util.log("[fontist] #{e.message}. " \
42
+ "Please report this issue at " \
43
+ "https://github.com/metanorma/metanorma/issues", log_level)
39
44
  rescue Fontist::Errors::FormulaIndexNotFoundError
40
45
  fontist_update_repo(manifest, agree, continue, no_progress)
41
46
  end
42
47
 
48
+ # fontist 3 rejects formulas above its size limit (Fontist::Errors::
49
+ # SizeLimitError); fontist 2.x, which metanorma still supports, does
50
+ # not define the class, so rescue on an empty list rather than raise
51
+ # the dependency floor.
52
+ def size_limit_errors
53
+ if defined?(Fontist::Errors::SizeLimitError)
54
+ [Fontist::Errors::SizeLimitError]
55
+ else
56
+ []
57
+ end
58
+ end
59
+
43
60
  def fontist_install(manifest, agree, no_progress)
44
61
  if agree then no_license_log
45
62
  else
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "2.5.6.pre.alpha.1".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.1
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-22 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