metanorma-iso 2.4.6 → 2.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,13 +13,16 @@ module Metanorma
13
13
  super
14
14
  structured_id(node, xml)
15
15
  id = iso_id_default(iso_id_params(node))
16
- id.stage and
17
- xml.stagename metadata_stagename(id)&.strip,
18
- **attr_code(abbreviation: id.typed_stage_abbrev&.strip)
16
+ id.stage and metadata_stage(id, xml)
19
17
  @amd && a = node.attr("updates-document-type") and
20
18
  xml.updates_document_type a
21
19
  end
22
20
 
21
+ def metadata_stage(id, xml)
22
+ xml.stagename metadata_stagename(id)&.strip,
23
+ **attr_code(abbreviation: id.typed_stage_abbrev&.strip)
24
+ end
25
+
23
26
  def metadata_stagename(id)
24
27
  if @amd
25
28
  id.amendments&.first&.stage&.name ||
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "2.4.6".freeze
3
+ VERSION = "2.4.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.6
4
+ version: 2.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc