metanorma 1.4.7.1 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dddc02c01b500bb0ebed4952da4a8896110d962313d975fb601d4a84c6f25f98
4
- data.tar.gz: e9918089f99a5ca51330dc7f97cfa693543a07986f1630d591f5c4627a0d4109
3
+ metadata.gz: 01e0ef1fb800a027426b26230c47f67cd4629e986f5536a20911a2efd1c5cd51
4
+ data.tar.gz: 741ac82a66a23a10c256d0834a60325d9101fb0ceadd4fa343a76e14f11bf563
5
5
  SHA512:
6
- metadata.gz: 5a656de998950d44ed0b21f5a12a433c2ab2a39eac75c74be641a60358fffc8bed29cb6def6f8d078d8e39cf9e94dbb58e32225e0bd9d0da4c3570ae0fff7bed
7
- data.tar.gz: 52ef6879ea3aca932b7e3802c9e947855b06d4e3cc752be5b0f45d99ba8ef27ea10e5126585c6b3960e1cd5b2e2164c0033be0a28d97abaf8fa82e0050cf47b4
6
+ metadata.gz: f719f4ca32eb7a5388dfe717b2c6171cbe35ed5bbfa091e07124c20e2f383c498cb9d0eb93cd6cf780c2949abf2d25ae973578f53a6ffa6c328c27bbe6b5ab91
7
+ data.tar.gz: ef0261286cbc8ad7a4b2a559dcda2b1e6f3fce81b73ea0ed125338b51959af4fd197ac240bca91942eb30308fa82cb249a4693d12450c477d1d0a62a4ec5f0cf
@@ -45,7 +45,7 @@ module Metanorma
45
45
  bib.replace(newbib)
46
46
  _file, url = targetfile(@files[docid], relative: true, read: false,
47
47
  doc: !@files[docid][:attachment])
48
- uri_node = Nokogiri::XML::Node.new "uri", newbib
48
+ uri_node = Nokogiri::XML::Node.new "uri", newbib.document
49
49
  uri_node[:type] = "citation"
50
50
  uri_node.content = url
51
51
  newbib.at(ns("./docidentifier")).previous = uri_node
@@ -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::HashConverter.array(mnf["manifest"]).map do |m|
27
+ manifest = RelatonBib.array(mnf["manifest"]).map do |m|
28
28
  from_yaml m
29
29
  end
30
- docref = RelatonBib::HashConverter.array mnf["docref"]
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(
@@ -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).freeze
73
+ pdf-encrypt-metadata iso-word-template).freeze
74
74
 
75
75
  def extract_options(file)
76
76
  header = file.sub(/\n\n.*$/m, "\n")
@@ -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}']/url[@type = 'citation']"))
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
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "1.4.7.1".freeze
2
+ VERSION = "1.4.10".freeze
3
3
  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: 1.4.7.1
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-04-18 00:00:00.000000000 Z
11
+ date: 2022-07-04 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.9
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