metanorma-standoc 2.2.1 → 2.2.1.1

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: 837bde4e0b1dcb3e1eeb5ffa7c56d063456f4a4cb3666eb00c18aaf6cae7d164
4
- data.tar.gz: 69dcdc35a59b471bb2c6ac3cfd52a84b15625a45402c66f83c9e1ec70296b4f3
3
+ metadata.gz: 90287c74936b7e6fa5c54537833e425fdc78deb260ce3a9f083cc53530ad66fc
4
+ data.tar.gz: 273eb7dcaf62e8b9a8578f932b3ab45377bdf0b57ad254cab80b16b10e584586
5
5
  SHA512:
6
- metadata.gz: 88ff22adce3bd32d0c2875acf926520a4950beb6e36e3b7e70cd7ffce68c75869fac1e6449ea0b975d2c87a2cce1b2d0e2898f7d7c29d30065abf6708df863f8
7
- data.tar.gz: 86493fb18c13786a09a019a9a184684d90c19957c4154f01f13acd4d4b5cb1e7999cc8f0d0413f0b10ea870e676ab2bbe3e78cacc848a9799e0f9b5189d1efe3
6
+ metadata.gz: 167db30a6cbf87a30f2e1d97eeaafffb63e94699a7f077556ec23604de443fcfabc1a1de091e7fbb93ddf528482e980e0b23c976abbf2e7aae8ebbfbddbb686c
7
+ data.tar.gz: 1925f23438f2cc30fcd898c4ceeb8aea39442a8b0575d2cf8fa91954e229a2384b954670e75a66fe052486ff12a6b3394512d49ae84d38ac5f5253cde3591715
@@ -3,6 +3,7 @@ require "nokogiri"
3
3
  require "htmlentities"
4
4
  require "pathname"
5
5
  require_relative "./front_contributor"
6
+ require "isoics"
6
7
 
7
8
  module Metanorma
8
9
  module Standoc
@@ -48,7 +49,11 @@ module Metanorma
48
49
  def metadata_ics(node, xml)
49
50
  ics = node.attr("library-ics")
50
51
  ics&.split(/,\s*/)&.each do |i|
51
- xml.ics { |elem| elem.code i }
52
+ xml.ics do |elem|
53
+ elem.code i
54
+ icsdata = Isoics.fetch i
55
+ elem.text_ icsdata.description
56
+ end
52
57
  end
53
58
  end
54
59
 
@@ -60,9 +60,9 @@ module Metanorma
60
60
  "symbols and abbreviated terms", "clause", "bibliography"].freeze
61
61
 
62
62
  def start_main_section(ret, node)
63
- @preface = false if MAIN_CLAUSE_NAMES.include?(ret) &&
63
+ @preface = false if self.class::MAIN_CLAUSE_NAMES.include?(ret) &&
64
64
  node.role != "preface" && node.attr("style") != "preface"
65
- @preface = false if (PREFACE_CLAUSE_NAMES)
65
+ @preface = false if (self.class::PREFACE_CLAUSE_NAMES)
66
66
  .intersection(@seen_headers_canonical + [ret]).empty?
67
67
  end
68
68
 
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.2.1".freeze
22
+ VERSION = "2.2.1.1".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-23 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor