metanorma-unece 0.0.11 → 0.0.12
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 +4 -4
- data/lib/asciidoctor/unece/converter.rb +4 -3
- data/lib/isodoc/unece/metadata.rb +2 -2
- data/lib/metanorma/unece/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: 6bc96f4c10497c4a82ea01cfbf023ca98d296e9a0e7e4f3e82900328a6a96e27
|
|
4
|
+
data.tar.gz: 1057969d7adf07d6b81db802a3735d92c9d9ed9db922bbfd0fc28d448eb6e84b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3d249786ac6967b7fe394e170f7ea66129cdc216577ad07056bfebf3bf7eab04e3316eb2ce20d74c351b358a828021d35b1c64eb5183b02a6f04c438afe699b
|
|
7
|
+
data.tar.gz: c5a9c7fd022a2193d6fec8ebec13676cc71ae59635cc46122ada39ebbd66a1c023dd88c33aa65f6e43ed9553b29086e9459bfb5f2b68e168215140c0b5f08953
|
|
@@ -45,10 +45,11 @@ module Asciidoctor
|
|
|
45
45
|
|
|
46
46
|
def title(node, xml)
|
|
47
47
|
["en"].each do |lang|
|
|
48
|
-
xml.title **{ language: lang, format: "text/plain" } do |t|
|
|
48
|
+
xml.title **{ type: "main", language: lang, format: "text/plain" } do |t|
|
|
49
49
|
t << asciidoc_sub(node.attr("title"))
|
|
50
50
|
end
|
|
51
|
-
|
|
51
|
+
node.attr("subtitle") and
|
|
52
|
+
xml.title **{ type: "subtitle", language: lang, format: "text/plain" } do |t|
|
|
52
53
|
t << asciidoc_sub(node.attr("subtitle"))
|
|
53
54
|
end
|
|
54
55
|
end
|
|
@@ -81,7 +82,7 @@ module Asciidoctor
|
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
def metadata_distribution(node, xml)
|
|
84
|
-
|
|
85
|
+
xml.distribution node.attr("distribution") if node.attr("distribution")
|
|
85
86
|
end
|
|
86
87
|
|
|
87
88
|
def metadata_session(node, xml)
|
|
@@ -12,12 +12,12 @@ module IsoDoc
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def title(isoxml, _out)
|
|
15
|
-
main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
|
|
15
|
+
main = isoxml&.at(ns("//bibdata/title[@language='en' and @type='main']"))&.text
|
|
16
16
|
set(:doctitle, main)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def subtitle(isoxml, _out)
|
|
20
|
-
main = isoxml&.at(ns("//bibdata/
|
|
20
|
+
main = isoxml&.at(ns("//bibdata/title[@language='en' and @type='subtitle']"))&.text
|
|
21
21
|
set(:docsubtitle, main)
|
|
22
22
|
end
|
|
23
23
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-unece
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|