metanorma-csd 1.0.4 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f90cd60a9e021755b1e8aad94de86f1b8a3a6a3e67900f2d1ef91abe472e56b2
4
- data.tar.gz: efb26635649632f5835221b5ad41a10ef39bdd5ad22afafd03ed0e1c93d2524b
3
+ metadata.gz: 3babdd82a2ba14b27acef8c2fae81aa8cfa1e13e3593c110d6ae729aab3cffc9
4
+ data.tar.gz: 1359410d9a5ebb955608519cdae0a3c076ae5f61a08bb198dddcdad8d793860e
5
5
  SHA512:
6
- metadata.gz: bbc4a4f774038675aadef92328cfd3c06dcee3dc3edde6e8e2dba49b6402bb733b1661b1f5fdcb22da0eac059530045e66d6b8f7d4538b5460a1b7c47d5755f3
7
- data.tar.gz: 5a94af0b3c1a505531fa68cc801117a95771f47836c4330803c12bf9b4ee6312bd0c9579833aa58a7d7bda4df4aaf328ef85d0cbd55e340b13d5660d73cb12d6
6
+ metadata.gz: ea0e3a111a5b78b1252c31ad4add9396a4fdd962da14f1c7e00f80e17197dbc7ffe76930b0805238caf04d8165f727de7655179d1819fca9eae0bc3eb6792fd1
7
+ data.tar.gz: 2fd1b20fbc3a79aa2ef042a8748a1df3ddfdc879c1115be9ca92a8daaf5568f15dd6c3aca02e868be2b25eada2cf68c87dbb913eb86a982cc27f5ff101383bdf
@@ -1,5 +1,4 @@
1
1
  require "asciidoctor"
2
- require "asciidoctor/csd/version"
3
2
  require "isodoc/csd/html_convert"
4
3
  require "isodoc/csd/word_convert"
5
4
  require "asciidoctor/standoc/converter"
@@ -1,5 +1,3 @@
1
- require "asciidoctor/csd/version"
2
-
3
1
  module Asciidoctor
4
2
  module Csd
5
3
  # Your code goes here...
@@ -66,7 +66,7 @@ normal'><span lang=EN-GB><span style='mso-special-character:footnote-continuatio
66
66
  <div style='mso-element:header' id=eh1>
67
67
 
68
68
  <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
69
- mso-line-height-rule:exactly'><span lang=EN-GB>CS&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
69
+ mso-line-height-rule:exactly'><span lang=EN-GB>CC&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
70
70
 
71
71
  </div>
72
72
 
@@ -1,14 +1,30 @@
1
- <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
2
- border-bottom:none;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
3
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 0cm 4.0pt;
4
- margin-left:5.1pt;margin-right:5.1pt'>
1
+ <div class="copyright">
2
+ <p class="year">
3
+ &copy; {{ docyear }} The Calendaring and Scheduling Consortium, Inc.
4
+ </p>
5
+
6
+ <p class="message">
7
+ All rights reserved. Unless otherwise specified, no part of this
8
+ publication may be reproduced or utilized otherwise in any form or by any
9
+ means, electronic or mechanical, including photocopying, or posting on the
10
+ internet or an intranet, without prior written permission. Permission can
11
+ be requested from the address below.
12
+ </p>
13
+
14
+ <div class="contact-info">
15
+ <p class="name">The Calendaring and Scheduling Consortium, Inc.</p>
16
+ <p class="address">
17
+ 4390 Chaffin Lane<br />
18
+ McKinleyville<br />
19
+ California 95519<br />
20
+ United States of America<br />
21
+ <br />
22
+ <a href="mailto:copyright@calconnect.org">copyright@calconnect.org</a><br />
23
+ <a href="www.calconnect.org">www.calconnect.org</a>
24
+ </p>
25
+ </div>
26
+ </div>
5
27
 
6
- <p class="zzCopyright" align="left" style='margin-top:2.0pt;margin-right:0cm;
7
- margin-bottom:12.0pt;margin-left:0cm;text-align:left;page-break-before:always;
8
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-top-alt:
9
- solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-right-alt:
10
- solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 0cm 4.0pt'><span
11
- lang="EN-GB" style='color:windowtext'>© {{ agency }} {{ docyear }}.<o:p></o:p></span></p>
12
28
 
13
29
  </div>
14
30
 
@@ -28,11 +28,11 @@ module IsoDoc
28
28
  def docid(isoxml, _out)
29
29
  docnumber = isoxml.at(ns("//bibdata/docidentifier"))
30
30
  docstatus = isoxml.at(ns("//bibdata/status"))
31
- dn = docnumber&.text
31
+ dn = docnumber&.text || "???"
32
32
  if docstatus
33
33
  set(:status, status_print(docstatus.text))
34
34
  abbr = status_abbr(docstatus.text)
35
- dn = "#{dn}(#{abbr})" unless abbr.empty?
35
+ dn += "/#{abbr}" unless abbr.empty?
36
36
  end
37
37
  set(:docnumber, dn)
38
38
  end
@@ -43,9 +43,11 @@ module IsoDoc
43
43
 
44
44
  def status_abbr(status)
45
45
  case status
46
- when "working-draft" then "wd"
47
- when "committee-draft" then "cd"
48
- when "draft-standard" then "d"
46
+ when "working-draft" then "WD"
47
+ when "committee-draft" then "CD"
48
+ when "draft-standard" then "DS"
49
+ when "final-draft" then "FDS"
50
+ # when "published" then ""
49
51
  else
50
52
  ""
51
53
  end
@@ -19,7 +19,7 @@ module Metanorma
19
19
  end
20
20
 
21
21
  def version
22
- "Asciidoctor::Csd #{Asciidoctor::Csd::VERSION}"
22
+ "Metanorma::Csd #{Metanorma::Csd::VERSION}"
23
23
  end
24
24
 
25
25
  def input_to_isodoc(file)
@@ -0,0 +1,5 @@
1
+ module Metanorma
2
+ module Csd
3
+ VERSION = "1.0.5"
4
+ end
5
+ end
data/lib/metanorma-csd.rb CHANGED
@@ -3,7 +3,7 @@ require_relative "asciidoctor/csd/converter"
3
3
  require_relative "isodoc/csd/html_convert"
4
4
  require_relative "isodoc/csd/word_convert"
5
5
  require_relative "isodoc/csd/pdf_convert"
6
- require_relative "asciidoctor/csd/version"
6
+ require_relative "metanorma/csd/version"
7
7
 
8
8
  if defined? Metanorma
9
9
  require_relative "metanorma/csd"
@@ -1,10 +1,10 @@
1
1
  lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "asciidoctor/csd/version"
3
+ require "metanorma/csd/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "metanorma-csd"
7
- spec.version = Asciidoctor::Csd::VERSION
7
+ spec.version = Metanorma::Csd::VERSION
8
8
  spec.authors = ["Ribose Inc."]
9
9
  spec.email = ["open.source@ribose.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -223,7 +223,6 @@ files:
223
223
  - lib/asciidoctor/csd/isodoc.rng
224
224
  - lib/asciidoctor/csd/isostandard.rng
225
225
  - lib/asciidoctor/csd/pdf.js
226
- - lib/asciidoctor/csd/version.rb
227
226
  - lib/isodoc/csd/html/csd.scss
228
227
  - lib/isodoc/csd/html/dots-w@2x.png
229
228
  - lib/isodoc/csd/html/dots@2x.png
@@ -243,6 +242,7 @@ files:
243
242
  - lib/metanorma-csd.rb
244
243
  - lib/metanorma/csd.rb
245
244
  - lib/metanorma/csd/processor.rb
245
+ - lib/metanorma/csd/version.rb
246
246
  - metanorma-csd.gemspec
247
247
  homepage: https://github.com/riboseinc/metanorma-csd
248
248
  licenses:
@@ -1,5 +0,0 @@
1
- module Asciidoctor
2
- module Csd
3
- VERSION = "1.0.4"
4
- end
5
- end