metanorma-standoc 2.2.1 → 2.2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/standoc/front.rb +6 -1
- data/lib/metanorma/standoc/section.rb +2 -2
- data/lib/metanorma/standoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90287c74936b7e6fa5c54537833e425fdc78deb260ce3a9f083cc53530ad66fc
|
4
|
+
data.tar.gz: 273eb7dcaf62e8b9a8578f932b3ab45377bdf0b57ad254cab80b16b10e584586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167db30a6cbf87a30f2e1d97eeaafffb63e94699a7f077556ec23604de443fcfabc1a1de091e7fbb93ddf528482e980e0b23c976abbf2e7aae8ebbfbddbb686c
|
7
|
+
data.tar.gz: 1925f23438f2cc30fcd898c4ceeb8aea39442a8b0575d2cf8fa91954e229a2384b954670e75a66fe052486ff12a6b3394512d49ae84d38ac5f5253cde3591715
|
@@ -3,6 +3,7 @@ require "nokogiri"
|
|
3
3
|
require "htmlentities"
|
4
4
|
require "pathname"
|
5
5
|
require_relative "./front_contributor"
|
6
|
+
require "isoics"
|
6
7
|
|
7
8
|
module Metanorma
|
8
9
|
module Standoc
|
@@ -48,7 +49,11 @@ module Metanorma
|
|
48
49
|
def metadata_ics(node, xml)
|
49
50
|
ics = node.attr("library-ics")
|
50
51
|
ics&.split(/,\s*/)&.each do |i|
|
51
|
-
xml.ics
|
52
|
+
xml.ics do |elem|
|
53
|
+
elem.code i
|
54
|
+
icsdata = Isoics.fetch i
|
55
|
+
elem.text_ icsdata.description
|
56
|
+
end
|
52
57
|
end
|
53
58
|
end
|
54
59
|
|
@@ -60,9 +60,9 @@ module Metanorma
|
|
60
60
|
"symbols and abbreviated terms", "clause", "bibliography"].freeze
|
61
61
|
|
62
62
|
def start_main_section(ret, node)
|
63
|
-
@preface = false if MAIN_CLAUSE_NAMES.include?(ret) &&
|
63
|
+
@preface = false if self.class::MAIN_CLAUSE_NAMES.include?(ret) &&
|
64
64
|
node.role != "preface" && node.attr("style") != "preface"
|
65
|
-
@preface = false if (PREFACE_CLAUSE_NAMES)
|
65
|
+
@preface = false if (self.class::PREFACE_CLAUSE_NAMES)
|
66
66
|
.intersection(@seen_headers_canonical + [ret]).empty?
|
67
67
|
end
|
68
68
|
|
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.2.1
|
4
|
+
version: 2.2.1.1
|
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-08-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|