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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afa4e0613aed3903b1ffed913f46bd14bdcdcb582a81803a6a0b412aacd93180
4
- data.tar.gz: 06db3832875baf620855edc7ba6b40e864fed66df7c4623a193c545dcfb49301
3
+ metadata.gz: d0bf465b59b762925e4e6e59dcf67f4ed015d76760cdffafcc8ebb1fdea4fa52
4
+ data.tar.gz: 1b4f32a8d3035ea1ce142b719c225401dd6e12a4f8e2101255cf6e00aea681d7
5
5
  SHA512:
6
- metadata.gz: 640c5ddec53911cef6a8a5b973b07b957a80a66af49556de2f4078ef58afdd505e02f22d6082ae0ae3e81ea9207d49fd550792185394b0ee01375aa6c7613d40
7
- data.tar.gz: ffbd528a82093350c086f3dd42028284aa320d5090bc5d479f6cc621ba609686e20397fc8a65b003b5a6e45ae18c96dd2a0d9752fad3563d64e1d543a99c55c1
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::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
 
@@ -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
- Util.log("[metanorma] Error: loading gem `#{flavor}` "\
48
- "failed. Exiting.", :fatal)
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}']/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.8".freeze
2
+ VERSION = "1.4.11".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.8
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-06-06 00:00:00.000000000 Z
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.7
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