metanorma-generic 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/generic/converter.rb +2 -29
- data/lib/metanorma/generic/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: b73bf6f76844d72f936a43ae9854fd9c56c0971404fb29a6e0749fd0882ec073
|
4
|
+
data.tar.gz: d62573d1a7fa43a18a64d256df76fb46672339b14166b65d9d3bb8377a5d8e06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92f06b85bc9aa9ec83e88903bed4e2530d4ac5b0c1f064e4a1034af9869944af2620a78a4908c7e3b93a8877f5153c45528f21decf6e17599825203cb8ddcf46
|
7
|
+
data.tar.gz: c5ede8599a30d940c5633dbb63e97bdf37ad1edc700561fddb4e2186ee09eb081bb27b0451dd79d508d0c7b4aa70480c8ae6426446d925cd280a37377459d90a
|
@@ -28,23 +28,8 @@ module Asciidoctor
|
|
28
28
|
self.class::_file || __FILE__), "..", "..", "..", loc))
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
32
|
-
|
33
|
-
c.role **{ type: "author" }
|
34
|
-
c.organization do |a|
|
35
|
-
a.name configuration.organization_name_long
|
36
|
-
end
|
37
|
-
end
|
38
|
-
personal_author(node, xml)
|
39
|
-
end
|
40
|
-
|
41
|
-
def metadata_publisher(node, xml)
|
42
|
-
xml.contributor do |c|
|
43
|
-
c.role **{ type: "publisher" }
|
44
|
-
c.organization do |a|
|
45
|
-
a.name configuration.organization_name_long
|
46
|
-
end
|
47
|
-
end
|
31
|
+
def default_publisher
|
32
|
+
configuration.organization_name_long
|
48
33
|
end
|
49
34
|
|
50
35
|
def metadata_committee(node, xml)
|
@@ -86,18 +71,6 @@ module Asciidoctor
|
|
86
71
|
xml.docnumber { |i| i << node.attr("docnumber") }
|
87
72
|
end
|
88
73
|
|
89
|
-
def metadata_copyright(node, xml)
|
90
|
-
from = node.attr("copyright-year") || Date.today.year
|
91
|
-
xml.copyright do |c|
|
92
|
-
c.from from
|
93
|
-
c.owner do |owner|
|
94
|
-
owner.organization do |o|
|
95
|
-
o.name configuration.organization_name_long
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
74
|
def metadata_ext(node, ext)
|
102
75
|
super
|
103
76
|
Array(configuration.metadata_extensions).each do |e|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-generic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.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: 2020-
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|