metanorma-standoc 2.5.5 → 2.6.0

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: ffaa13eaacb9efa7c94a2e891d4e7a90b9306a729510f8f2c0b0110e68a4ec49
4
- data.tar.gz: 63dc9c98c8a1657aa6d0871105d0e21b8720378d0606b8e819b7f75606763964
3
+ metadata.gz: 6a9ee49a9aa313dae428fb537106a5da2c369f24da90074725e9e9a11bf4e75b
4
+ data.tar.gz: 6439d160874d60c6c7d41d5ed5bcc5480a842479b3b9e203db314360abf2063f
5
5
  SHA512:
6
- metadata.gz: 771694d3618c4d671d5ebf6006f502717d9c30c34e72b9385efcabcf9a5a504d4a47ca7a862dbcea7f5c7f7d3b8db18a73afba8d367bfc974fcc7b7981944967
7
- data.tar.gz: 8c5ca650403236e66e3e6fff578889977f86812cd8127e0521257427c97e6a5425437cdc9f4f10208d865ee71fdbc26da1faff28430cb7633bc2829bc641058c
6
+ metadata.gz: e7cfd27c5a9c81fbe673f9041b209ad691286a7ce217a647bde009eb1981b4cead8c89972bb7738f666bdd2c874db284d030329f9c64e952f176952ce62d44bc
7
+ data.tar.gz: 72e727e0016b53616c39dd22a66508b08d6f5a36044e7690670b05574a4632187c1e69ddd6ea09aa6238a8b934352ddfc653c1e79c026b62249369de51ec2be0
@@ -42,6 +42,7 @@ module Metanorma
42
42
  end
43
43
 
44
44
  def init_vars
45
+ @log = Metanorma::Utils::Log.new # for error reporting downstream
45
46
  @fn_number ||= 0
46
47
  @refids = Set.new
47
48
  @anchor_alias = {}
@@ -55,6 +56,7 @@ module Metanorma
55
56
  end
56
57
 
57
58
  def init_misc(node)
59
+ @doctype = doctype(node)
58
60
  @draft = node.attributes.has_key?("draft")
59
61
  @index_terms = node.attr("index-terms")
60
62
  @boilerplateauthority = node.attr("boilerplate-authority")
@@ -101,7 +103,6 @@ module Metanorma
101
103
 
102
104
  def init_output(node)
103
105
  @fontheader = default_fonts(node)
104
- @log = Metanorma::Utils::Log.new
105
106
  @files_to_delete = []
106
107
  @filename = if node.attr("docfile")
107
108
  File.basename(node.attr("docfile"))&.gsub(/\.adoc$/, "")
@@ -25,6 +25,7 @@ module Metanorma
25
25
  module Standoc
26
26
  module Cleanup
27
27
  def cleanup(xmldoc)
28
+ @doctype = xmldoc.at("//bibdata/ext/doctype")&.text
28
29
  element_name_cleanup(xmldoc)
29
30
  passthrough_cleanup(xmldoc)
30
31
  unnumbered_blocks_cleanup(xmldoc)
@@ -11,6 +11,7 @@ module Metanorma
11
11
  module Standoc
12
12
  module Validate
13
13
  def content_validate(doc)
14
+ @doctype = doc.at("//bibdata/ext/doctype")&.text
14
15
  repeat_id_validate(doc.root) # feeds xref_validate
15
16
  xref_validate(doc) # feeds nested_asset_validate
16
17
  nested_asset_validate(doc)
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.5.5".freeze
22
+ VERSION = "2.6.0".freeze
23
23
  end
24
24
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "addressable", "~> 2.8.0"
32
32
  spec.add_dependency "asciidoctor", "~> 2.0.0"
33
33
  spec.add_dependency "iev", "~> 0.3.0"
34
- spec.add_dependency "isodoc", "~> 2.6.1"
34
+ spec.add_dependency "isodoc", "~> 2.6.3"
35
35
  spec.add_dependency "metanorma", ">= 1.6.0"
36
36
  spec.add_dependency "metanorma-plugin-datastruct", "~> 0.2.0"
37
37
  spec.add_dependency "metanorma-plugin-glossarist", "~> 0.1.1"
@@ -40,9 +40,8 @@ Gem::Specification.new do |spec|
40
40
  # relaton-cli not just relaton, to avoid circular reference in metanorma
41
41
  spec.add_dependency "asciimath2unitsml", "~> 0.4.0"
42
42
  spec.add_dependency "concurrent-ruby"
43
- spec.add_dependency "plurimath"
44
43
  spec.add_dependency "pngcheck"
45
- spec.add_dependency "relaton-cli", "~> 1.15.0"
44
+ spec.add_dependency "relaton-cli", "~> 1.16.0"
46
45
  spec.add_dependency "relaton-iev", "~> 1.1.5"
47
46
  spec.add_dependency "unicode2latex", "~> 0.0.1"
48
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.6.1
61
+ version: 2.6.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.6.1
68
+ version: 2.6.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: metanorma
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,20 +164,6 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: plurimath
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: pngcheck
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +184,14 @@ dependencies:
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 1.15.0
187
+ version: 1.16.0
202
188
  type: :runtime
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: 1.15.0
194
+ version: 1.16.0
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: relaton-iev
211
197
  requirement: !ruby/object:Gem::Requirement