metanorma-iho 0.7.3 → 0.7.4

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: a137dd467445fb393d8a881bc76eea63242e9fab3f3fdebb262ddb9b1eae733e
4
- data.tar.gz: 4683826cc6b08cac50d04a9016780173a404d49644597871537f4a497d2dc925
3
+ metadata.gz: d32cbaa857fe5083ce8d434831b7f9124205fafe7401c244f8034ae90004aa81
4
+ data.tar.gz: d3b34abd94dfbbb636fbc07d86565faabaaa6a5c179ee773f32e275dfa7ce21a
5
5
  SHA512:
6
- metadata.gz: 8c32afd0aae009e2aa94247131d6431a24948eb405eafb2eb8252f300837064e24a87fb18a9ee44d60f85968e8d8817b504dd901eca20c8d1a451b99eed92407
7
- data.tar.gz: 77aa720b82ba2ed1c0056390d1b30bff38c7da9a0e94e5c0a9966c843da4b5ab6b5ddc6812e018e3d503b2e2cbb34a050e47ecec11400198c7bb56ebeb836b82
6
+ metadata.gz: ac677f15e9b347f9c436d1e5d2ad0aadd6b876b67625f79b8d028be3f60e1681bb54e52f26f7b499f473eefa7bbc567a659db76f6b90e030b8c2142e7f690869
7
+ data.tar.gz: 0e1978eac7b0cf129df8d90a357f4679e0b2f927b1059847ed1a9fa3b70314d4d58119f1de845720534ea52f85ca77ff43cbcc1cf46e956715504d45c5558f92
@@ -522,7 +522,6 @@
522
522
  <value>tip</value>
523
523
  <value>important</value>
524
524
  <value>caution</value>
525
- <value>statement</value>
526
525
  </choice>
527
526
  </define>
528
527
  <define name="figure">
@@ -3,9 +3,6 @@ require "metanorma/generic/converter"
3
3
 
4
4
  module Metanorma
5
5
  module IHO
6
- # A {Converter} implementation that generates RSD output, and a document
7
- # schema encapsulation of the document for validation
8
- #
9
6
  class Converter < Metanorma::Generic::Converter
10
7
  XML_ROOT_TAG = "iho-standard".freeze
11
8
  XML_NAMESPACE = "https://www.metanorma.org/ns/iho".freeze
@@ -19,7 +16,7 @@ module Metanorma
19
16
  end
20
17
 
21
18
  def appendix_parse(attrs, xml, node)
22
- attrs["inline-header".to_sym] = node.option? "inline-header"
19
+ attrs[:"inline-header"] = node.option? "inline-header"
23
20
  set_obligation(attrs, node)
24
21
  xml.appendix **attr_code(attrs) do |xml_section|
25
22
  xml_section.title { |name| name << node.title }
@@ -37,7 +34,7 @@ module Metanorma
37
34
 
38
35
  def metadata_series(node, xml)
39
36
  series = node.attr("series") or return
40
- xml.series **{ type: "main" } do |s|
37
+ xml.series type: "main" do |s|
41
38
  s.title SERIESNAME[series.to_sym] || "N/A"
42
39
  s.abbreviation series
43
40
  end
@@ -89,6 +86,16 @@ module Metanorma
89
86
  end
90
87
  end
91
88
 
89
+ def metadata_version(node, xml)
90
+ if node.attr("edition-major")
91
+ ed = node.attr("edition-major")
92
+ e1 = node.attr("edition-minor") and ed += ".#{e1}"
93
+ (e2 = node.attr("edition-patch")) && e1 and ed += ".#{e2}"
94
+ node.set_attribute("edition", ed)
95
+ end
96
+ super
97
+ end
98
+
92
99
  def configuration
93
100
  Metanorma::IHO.configuration
94
101
  end
@@ -66,6 +66,7 @@
66
66
  <value>caution</value>
67
67
  <value>statement</value>
68
68
  <value>editorial</value>
69
+ <value>box</value>
69
70
  </choice>
70
71
  </define>
71
72
  <define name="index">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.7.3".freeze
3
+ VERSION = "0.7.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic