metanorma 1.4.8 → 1.4.11
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/compile_validate.rb +12 -2
- data/lib/metanorma/fontist_utils.rb +13 -0
- data/lib/metanorma/sectionsplit.rb +1 -1
- data/lib/metanorma/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0bf465b59b762925e4e6e59dcf67f4ed015d76760cdffafcc8ebb1fdea4fa52
|
|
4
|
+
data.tar.gz: 1b4f32a8d3035ea1ce142b719c225401dd6e12a4f8e2101255cf6e00aea681d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2af6cf6b37e62409058d2d82c303ea974b278bad696e7850062c8de4a295534035376aaadd321c28826afc55e2ba164769835883f9abc569da119dc55c0588b
|
|
7
|
+
data.tar.gz: d29988cb92fabc5988b4c134d85feb4e0972b87ebb16cc855e1274289fbfa1252f4f0ae433081ae1a6751cfd4510adf8ba4de088a40f804fcd613ce42b3d3aa8
|
|
@@ -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
|
|
|
@@ -44,8 +44,18 @@ module Metanorma
|
|
|
44
44
|
"`metanorma-#{stdtype}`, Please add it to your Gemfile "\
|
|
45
45
|
"and run bundle install first", :fatal)
|
|
46
46
|
rescue LoadError
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
msg = <<~MSG
|
|
48
|
+
[metanorma] Error: loading gem `#{flavor}` failed. Exiting.
|
|
49
|
+
|
|
50
|
+
Troubleshooting:
|
|
51
|
+
1. If you are using metanorma via bundler/ruby, make sure that your
|
|
52
|
+
Gemfile contains a line:
|
|
53
|
+
gem "metanorma-#{stdtype}"
|
|
54
|
+
|
|
55
|
+
2. If you are using brew/choco/snap packages, please report an issue
|
|
56
|
+
to https://github.com/metanorma/packed-mn/issues/new"
|
|
57
|
+
MSG
|
|
58
|
+
Util.log(msg, :fatal)
|
|
49
59
|
end
|
|
50
60
|
end
|
|
51
61
|
end
|
|
@@ -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(
|
|
@@ -154,7 +154,7 @@ module Metanorma
|
|
|
154
154
|
|
|
155
155
|
def eref_to_internal_eref(section, xml, key)
|
|
156
156
|
eref_to_internal_eref_select(section, xml).each_with_object([]) do |x, m|
|
|
157
|
-
url = xml.at(ns("//bibitem[@id = '#{x}']/
|
|
157
|
+
url = xml.at(ns("//bibitem[@id = '#{x}']/uri[@type = 'citation']"))
|
|
158
158
|
section.xpath(("//*[@bibitemid = '#{x}']")).each do |e|
|
|
159
159
|
id = eref_to_internal_eref1(e, key, url)
|
|
160
160
|
id and m << id
|
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.11
|
|
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-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
306
306
|
- !ruby/object:Gem::Version
|
|
307
307
|
version: '0'
|
|
308
308
|
requirements: []
|
|
309
|
-
rubygems_version: 3.3.
|
|
309
|
+
rubygems_version: 3.3.16
|
|
310
310
|
signing_key:
|
|
311
311
|
specification_version: 4
|
|
312
312
|
summary: Metanorma is the standard of standards; the metanorma gem allows you to create
|