metanorma 1.4.9 → 1.4.12
Sign up to get free protection for your applications and to get access to all the features.
- 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/input/asciidoc.rb +1 -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: eadaf7b0dae9cf4948e204d8e083e65bb56b0bc1659558b00b62fd8f8455236f
|
4
|
+
data.tar.gz: 41744a1327ed7cb1e931db2cf81f7cfb32ba7c04e9ddeeffb6e103e8c448b0aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0caaa57eaed7a94db5de512d9c37eb519147e4e0c69c32a0f547480c36e8768edb50fa4604fda98cd405fda83a1af6d93bc93b38d6974bc8d361d422be2f847a
|
7
|
+
data.tar.gz: 0fabcc7b9ea75edb7256f3b0adbbc1f2a7c934c9f4d56f0a076128936e553e106d30c6632c406045e5259d057e8404f49ded303f12117ffa76b0ea1b8a97b634
|
@@ -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(
|
@@ -70,7 +70,7 @@ module Metanorma
|
|
70
70
|
pdf-allow-print pdf-allow-print-hq pdf-allow-fill-in-forms
|
71
71
|
toc-figures toc-tables toc-recommendations fonts
|
72
72
|
font-license-agreement pdf-allow-access-content
|
73
|
-
pdf-encrypt-metadata iso-word-template).freeze
|
73
|
+
pdf-encrypt-metadata iso-word-template document-scheme).freeze
|
74
74
|
|
75
75
|
def extract_options(file)
|
76
76
|
header = file.sub(/\n\n.*$/m, "\n")
|
data/lib/metanorma/version.rb
CHANGED
data/metanorma.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
|
37
37
|
spec.add_development_dependency "debug"
|
38
38
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
39
|
-
spec.add_development_dependency "metanorma-iso", "~> 2.
|
39
|
+
spec.add_development_dependency "metanorma-iso", "~> 2.1.6"
|
40
40
|
spec.add_development_dependency "mnconvert"
|
41
41
|
spec.add_development_dependency "rake", "~> 13.0"
|
42
42
|
spec.add_development_dependency "rspec", "~> 3.0"
|
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.12
|
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-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 2.1.6
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 2.1.6
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: mnconvert
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|