metanorma-nist 1.3.0 → 1.3.1

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: 26eb1c4fec35c9eb6c8d6d1fa99fb33703ce641257f815ede17943c423c099c4
4
- data.tar.gz: d3b1cfa6945dc6f81d717d1dd9b5a4036dc9abdefe4ca92da5cf29ed6b3e2abc
3
+ metadata.gz: 77b41b5dd747530f461f057cf1372802edb2607e6a7144c390347e4ee57f6d3c
4
+ data.tar.gz: 7316d76679f0a51af953f434d3ef51aa8b68e165d4e5ca728f2c49f1b85f843d
5
5
  SHA512:
6
- metadata.gz: e4a63e9748f608d57eecbcdc59895b52b8e488a4bc7220de62794ed44f3342fe943e6f69f7442bb0cba2d720a320deab0362c0edefc33a695541b847d9dda1b7
7
- data.tar.gz: 1c8042ce84cd97f2b760b95cd602a70e4d5caffbac6d1e1079aa47544a22b44874616680ae3a34595c072525a7296ccf1d0f852b2091a738631ceef7ab7f5cdc
6
+ metadata.gz: 8acbc8f62cebeff401b9e22130040857f87b4ab59aca4657ae9309e974dc955780052be44824b281d0ceb4dd39c4b0acf7c9df44a44ec3921eacf1945156e477
7
+ data.tar.gz: ddd906a92cb5d6f5e67bae2f19b83da79d510f6d2eaa3b18a15e1fee272aca5799981ae42977bc5599b05cb514d2e09a3421aefbf5cedd7ab3e1cf5de4f145a2
@@ -1,7 +1,7 @@
1
1
  require "asciidoctor"
2
2
  require "asciidoctor/standoc/converter"
3
3
  require "fileutils"
4
- require_relative "./front_id.rb"
4
+ require_relative "./front_id"
5
5
 
6
6
  module Asciidoctor
7
7
  module NIST
@@ -26,6 +26,7 @@ module Asciidoctor
26
26
 
27
27
  def title_subtitle(node, t, at)
28
28
  return unless node.attr("title-sub")
29
+
29
30
  t.title(**attr_code(at.merge(type: "subtitle"))) do |t1|
30
31
  t1 << asciidoc_sub(node.attr("title-sub"))
31
32
  end
@@ -36,6 +37,7 @@ module Asciidoctor
36
37
 
37
38
  def title_document_class(node, t, at)
38
39
  return unless node.attr("title-document-class")
40
+
39
41
  t.title(**attr_code(at.merge(type: "document-class"))) do |t1|
40
42
  t1 << asciidoc_sub(node.attr("title-document-class"))
41
43
  end
@@ -45,8 +47,10 @@ module Asciidoctor
45
47
  t.title(**attr_code(at.merge(type: "main"))) do |t1|
46
48
  t1 << (asciidoc_sub(node.attr("title-main")) || node.title)
47
49
  end
48
- node.attr("title-main-short") and t.title(**attr_code(at.merge(type: "short-title"))) do |t1|
49
- t1 << asciidoc_sub(node.attr("title-main-short"))
50
+ if node.attr("title-main-short")
51
+ t.title(**attr_code(at.merge(type: "short-title"))) do |t1|
52
+ t1 << asciidoc_sub(node.attr("title-main-short"))
53
+ end
50
54
  end
51
55
  end
52
56
 
@@ -85,6 +89,7 @@ module Asciidoctor
85
89
  def metadata_committee(node, xml)
86
90
  return unless node.attr("technical-committee") || node.attr("subcommittee") ||
87
91
  node.attr("workgroup") || node.attr("workinggroup")
92
+
88
93
  xml.editorialgroup do |a|
89
94
  c = node.attr("technical-committee") and a.committee(c)
90
95
  c = node.attr("subcommittee") and
@@ -124,6 +129,7 @@ module Asciidoctor
124
129
  title = node.attr("series-title")
125
130
  abbrev = node.attr("series-abbrev")
126
131
  return unless (title || abbrev)
132
+
127
133
  xml.series **{ type: "secondary" } do |s|
128
134
  title and s.title title
129
135
  abbrev and s.abbreviation abbrev
@@ -146,11 +152,15 @@ module Asciidoctor
146
152
  end
147
153
 
148
154
  def relaton_relation_descriptions
149
- super.merge({ "supersedes" => "obsoletes", "superseded-by" => "obsoleted-by", })
155
+ super.merge(
156
+ { "supersedes" => "obsoletes",
157
+ "superseded-by" => "obsoleted-by" }
158
+ )
150
159
  end
151
160
 
152
161
  def metadata_getrelation(node, xml, type, desc = nil)
153
- if type == "obsoleted-by" and desc.nil? and node.attr("superseding-status")
162
+ if type == "obsoleted-by" && desc.nil? &&
163
+ node.attr("superseding-status")
154
164
  metadata_superseding_doc(node, xml)
155
165
  end
156
166
  super
@@ -229,6 +239,7 @@ module Asciidoctor
229
239
 
230
240
  def metadata_ext(node, xml)
231
241
  metadata_doctype(node, xml)
242
+ metadata_subdoctype(node, xml)
232
243
  metadata_committee(node, xml)
233
244
  metadata_commentperiod(node, xml)
234
245
  end
@@ -16,6 +16,7 @@ module IsoDoc
16
16
 
17
17
  def wrap_brackets(txt)
18
18
  return txt if /^\[.*\]$/.match txt
19
+
19
20
  "[#{txt}]"
20
21
  end
21
22
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module NIST
3
- VERSION = "1.3.0".freeze
3
+ VERSION = "1.3.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-nist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities