metanorma-iec 2.6.8 → 2.6.9

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.
@@ -17,21 +17,23 @@ module IsoDoc
17
17
  def clause1(elem)
18
18
  if elem.name == "terms" && @is_iev then iev_termclause1(elem)
19
19
  else
20
- IsoDoc::PresentationXMLConvert.instance_method(:clause1).bind(self)
21
- .call(elem)
20
+ IsoDoc::PresentationXMLConvert.instance_method(:clause1).bind(self)
21
+ .call(elem)
22
22
  end
23
23
  end
24
24
 
25
- DICT_PATHS = { doctype_dict: "./ext/doctype",
26
- substage_dict: "./status/substage",
27
- function_dict: "./ext/function",
28
- horizontal_dict: "./ext/horizontal" }.freeze
25
+ DICT_PATHS = { doctype_dict: ["./ext/doctype",
26
+ "//presentation-metadata/doctype-alias"],
27
+ substage_dict: ["./status/substage", nil],
28
+ function_dict: ["./ext/function", nil],
29
+ horizontal_dict: ["./ext/horizontal", nil] }.freeze
29
30
 
30
31
  def bibdata_i18n(bib)
31
32
  [{ lang: "en", i18n: IsoDoc::Iec::I18n.new("en", "Latn") },
32
33
  { lang: "fr", i18n: IsoDoc::Iec::I18n.new("fr", "Latn") }].each do |v|
33
34
  DICT_PATHS.each do |lbl, xpath|
34
- hash_translate(bib, v[:i18n].get[lbl.to_s], xpath, v[:lang])
35
+ hash_translate(bib, v[:i18n].get[lbl.to_s], xpath[0], xpath[1],
36
+ v[:lang])
35
37
  end
36
38
  bibdata_i18n_stage(bib, bib.at(ns("./status/stage")),
37
39
  bib.at(ns("./ext/doctype")),
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.6.8".freeze
3
+ VERSION = "2.6.9".freeze
4
4
  end
5
5
  end
6
6
 
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
31
31
  spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
32
32
 
33
- spec.add_dependency "metanorma-iso", "~> 3.0.0"
33
+ spec.add_dependency "metanorma-iso", "~> 3.0.10"
34
34
  spec.add_dependency "pubid"
35
35
 
36
36
  spec.add_development_dependency "debug"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.8
4
+ version: 2.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-09 00:00:00.000000000 Z
11
+ date: 2025-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
19
+ version: 3.0.10
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0
26
+ version: 3.0.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pubid
29
29
  requirement: !ruby/object:Gem::Requirement