metanorma 2.5.6.pre.alpha.1 → 2.5.6.pre.alpha.2
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/util/fontist_helper.rb +17 -0
- data/lib/metanorma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 834a924551ca15a50f160376cfcd57297d5b76a6614e2e216b23e5732895ddcf
|
|
4
|
+
data.tar.gz: 25e149845256b206fc4bd6a5d0a9aab851fcc2ed91608fad03e5c4c67540aaa6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f8b1c155092bf4c25ae2ef76c66e87ba57ed38e7902f738267f74220a51a67dc246bef896ec85bc4d0f6c2100d78663a39c7b0e16611c36babd4a19436fa4cd
|
|
7
|
+
data.tar.gz: 4f6858efb8e6d7699a735f9d386c97d1a8c44d33516f366f6fb350c27ae3bf589b68442546da84eb868412140567426f8ac3b6edacfc41c97a85c06477c32214
|
|
@@ -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
|
data/lib/metanorma/version.rb
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.2
|
|
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-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|