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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 936749b5a938a446f5ccec30899528d455536a7223e104b37ad1f8f552ba7a66
4
- data.tar.gz: c710069897c1c0d344c7a1f0d46d5a02356c20326bfd2db41deee0c1ba200e27
3
+ metadata.gz: f30dc6ed72f59de15dd2720ddf4c7dc18a976a4825e3332ad0e18a13a2634286
4
+ data.tar.gz: 686eda5fa9008e118befce71de3a4a3c7c8a8cfba9a7aef859711a6e56b20696
5
5
  SHA512:
6
- metadata.gz: 9a6ba5b87358943ec89228593ccc3baaee140f16f8f4392ffc3d29a11ab0560b0107d75f93a4d3d395148edf7524dd1101748c786752ea91e76753a09df3140a
7
- data.tar.gz: 2b47fe7464bf2590f8eed5a5a6bc8bec1fe4ce376328cea0c4e90cde39ce0c2475f32f3fc690068cc3de4b1661fcbae4a0343f43317442e2bfb16684eacd8842
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 glossary case-study}.include? d
88
- warn "#{d} is not a legal document type: reverting to 'standard'"
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
@@ -645,6 +645,11 @@
645
645
  <optional>
646
646
  <attribute name="script"/>
647
647
  </optional>
648
+ <optional>
649
+ <attribute name="inline-header">
650
+ <data type="boolean"/>
651
+ </attribute>
652
+ </optional>
648
653
  <optional>
649
654
  <attribute name="obligation">
650
655
  <choice>
@@ -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
- warn "Document Attributes: #{stage} is not a recognised status"
17
+ @log.add("Document Attributes", nil,
18
+ "#{stage} is not a recognised status")
18
19
  end
19
20
  end
20
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Csa
5
- VERSION = '1.4.6'
5
+ VERSION = '1.4.7'
6
6
  end
7
7
  end
@@ -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.6
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-05 00:00:00.000000000 Z
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