metanorma 1.4.9 → 1.4.10
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_manifest.rb +2 -2
- data/lib/metanorma/fontist_utils.rb +13 -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: 01e0ef1fb800a027426b26230c47f67cd4629e986f5536a20911a2efd1c5cd51
|
|
4
|
+
data.tar.gz: 741ac82a66a23a10c256d0834a60325d9101fb0ceadd4fa343a76e14f11bf563
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f719f4ca32eb7a5388dfe717b2c6171cbe35ed5bbfa091e07124c20e2f383c498cb9d0eb93cd6cf780c2949abf2d25ae973578f53a6ffa6c328c27bbe6b5ab91
|
|
7
|
+
data.tar.gz: ef0261286cbc8ad7a4b2a559dcda2b1e6f3fce81b73ea0ed125338b51959af4fd197ac240bca91942eb30308fa82cb249a4693d12450c477d1d0a62a4ec5f0cf
|
|
@@ -24,10 +24,10 @@ module Metanorma
|
|
|
24
24
|
# @param mnf [Nokogiri::XML::Element]
|
|
25
25
|
# @return [Metanorma::CollectionManifest]
|
|
26
26
|
def from_yaml(mnf)
|
|
27
|
-
manifest = RelatonBib
|
|
27
|
+
manifest = RelatonBib.array(mnf["manifest"]).map do |m|
|
|
28
28
|
from_yaml m
|
|
29
29
|
end
|
|
30
|
-
docref = RelatonBib
|
|
30
|
+
docref = RelatonBib.array mnf["docref"]
|
|
31
31
|
new(mnf["level"], mnf["title"], docref, manifest)
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -38,6 +38,12 @@ module Metanorma
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def fontist_install(manifest, agree, no_progress)
|
|
41
|
+
if agree
|
|
42
|
+
no_license_log
|
|
43
|
+
else
|
|
44
|
+
Fontist.log_level = :info
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
Fontist::Manifest::Install.from_hash(
|
|
42
48
|
manifest,
|
|
43
49
|
confirmation: agree ? "yes" : "no",
|
|
@@ -58,6 +64,13 @@ module Metanorma
|
|
|
58
64
|
end
|
|
59
65
|
end
|
|
60
66
|
|
|
67
|
+
def no_license_log
|
|
68
|
+
Util.log(
|
|
69
|
+
"[fontist] Font licenses are not shown with --agree-to-terms option.",
|
|
70
|
+
:info,
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
61
74
|
def fintist_update_repo(manifest, agree, continue, no_progress)
|
|
62
75
|
if @@updated_formulas_repo
|
|
63
76
|
Util.log(
|
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: 1.4.
|
|
4
|
+
version: 1.4.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|