metanorma-csa 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csa/converter.rb +6 -3
- data/lib/asciidoctor/csa/isodoc.rng +5 -0
- data/lib/asciidoctor/csa/validate.rb +2 -1
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30dc6ed72f59de15dd2720ddf4c7dc18a976a4825e3332ad0e18a13a2634286
|
4
|
+
data.tar.gz: 686eda5fa9008e118befce71de3a4a3c7c8a8cfba9a7aef859711a6e56b20696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197e3aafd07735a0932816560a9654b0953298684be5495cfcc8e66371fc8ea7788adf097b853e312b8f7864734d03b49d6ee3b63bc81c0709f1396caac98c67
|
7
|
+
data.tar.gz: 36f524fabcc2561cbb8544e176f7ea50e100bb3994bb6d2729e915238624ce3a646237f3e37afa95ab0fdc39b00aaea20e76822f997014c8c6ec4f248bdabc06
|
@@ -54,8 +54,8 @@ module Asciidoctor
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def metadata_id(node, xml)
|
57
|
+
dn = node.attr('docnumber') or return
|
57
58
|
docstatus = node.attr('status')
|
58
|
-
dn = node.attr('docnumber')
|
59
59
|
if docstatus
|
60
60
|
abbr = IsoDoc::Csa::Metadata.new('en', 'Latn', {})
|
61
61
|
.stage_abbr(docstatus)
|
@@ -84,8 +84,10 @@ module Asciidoctor
|
|
84
84
|
|
85
85
|
def doctype(node)
|
86
86
|
d = node.attr('doctype')
|
87
|
-
unless %w{guidance proposal standard report whitepaper charter policy
|
88
|
-
|
87
|
+
unless %w{guidance proposal standard report whitepaper charter policy
|
88
|
+
glossary case-study}.include? d
|
89
|
+
@log.add("Document Attributes", nil,
|
90
|
+
"#{d} is not a legal document type: reverting to 'standard'")
|
89
91
|
d = 'standard'
|
90
92
|
end
|
91
93
|
d
|
@@ -103,6 +105,7 @@ module Asciidoctor
|
|
103
105
|
pdf_converter(node).convert filename unless node.attr('nodoc')
|
104
106
|
word_converter(node).convert filename unless node.attr('nodoc')
|
105
107
|
end
|
108
|
+
@log.write(@filename + ".err") unless @novalid
|
106
109
|
@files_to_delete.each { |f| FileUtils.rm f }
|
107
110
|
ret
|
108
111
|
end
|
@@ -14,7 +14,8 @@ module Asciidoctor
|
|
14
14
|
stage = xmldoc&.at("//bibdata/status/stage")&.text
|
15
15
|
%w(proposal working-draft committee-draft draft-standard final-draft
|
16
16
|
published withdrawn).include? stage or
|
17
|
-
|
17
|
+
@log.add("Document Attributes", nil,
|
18
|
+
"#{stage} is not a recognised status")
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
data/metanorma-csa.gemspec
CHANGED
@@ -48,5 +48,4 @@ Gem::Specification.new do |spec|
|
|
48
48
|
spec.add_development_dependency "rubocop", "= 0.54.0"
|
49
49
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
50
50
|
spec.add_development_dependency "timecop", "~> 0.9"
|
51
|
-
spec.add_development_dependency "metanorma", "~> 0.3.12"
|
52
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
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-03-
|
11
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -248,20 +248,6 @@ dependencies:
|
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0.9'
|
251
|
-
- !ruby/object:Gem::Dependency
|
252
|
-
name: metanorma
|
253
|
-
requirement: !ruby/object:Gem::Requirement
|
254
|
-
requirements:
|
255
|
-
- - "~>"
|
256
|
-
- !ruby/object:Gem::Version
|
257
|
-
version: 0.3.12
|
258
|
-
type: :development
|
259
|
-
prerelease: false
|
260
|
-
version_requirements: !ruby/object:Gem::Requirement
|
261
|
-
requirements:
|
262
|
-
- - "~>"
|
263
|
-
- !ruby/object:Gem::Version
|
264
|
-
version: 0.3.12
|
265
251
|
description: |
|
266
252
|
metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc syntax.
|
267
253
|
|