metanorma-iho 0.3.0 → 0.3.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.
@@ -9,17 +9,17 @@ module IsoDoc
9
9
  @meta = Metadata.new(lang, script, labels)
10
10
  end
11
11
 
12
- def xref_init(lang, script, klass, labels, options)
12
+ def xref_init(lang, script, _klass, labels, options)
13
13
  html = HtmlConvert.new(language: lang, script: script)
14
14
  @xrefs = Xref.new(lang, script, html, labels, options)
15
15
  end
16
16
 
17
17
  def i18n_init(lang, script, i18nyaml = nil)
18
18
  @i18n = I18n.new(
19
- lang, script, i18nyaml ||
20
- Metanorma::IHO.configuration.i18nyaml || @i18nyaml)
19
+ lang, script, i18nyaml ||
20
+ Metanorma::IHO.configuration.i18nyaml || @i18nyaml
21
+ )
21
22
  end
22
23
  end
23
24
  end
24
25
  end
25
-
@@ -40,11 +40,10 @@ module IsoDoc
40
40
  i.increment(c)
41
41
  annex_names(c, i.print)
42
42
  end
43
- i = Counter.new("@")
43
+ i = Counter.new("@", skip_i: true)
44
44
  docxml.xpath(ns("//annex[not(@obligation = 'informative')]")).
45
45
  each do |c|
46
46
  i.increment(c)
47
- i.increment(c) if i.print == "I"
48
47
  annex_names(c, i.print)
49
48
  end
50
49
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.5".freeze
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.bindir = "exe"
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
27
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
28
 
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
30
  spec.add_dependency "metanorma-generic", "~> 1.10.0"
data/metanorma.yml CHANGED
@@ -61,5 +61,8 @@ termsdefs_titles:
61
61
  - Definitions and terminology
62
62
  - Terms and definitions
63
63
  - Terms, definitions and abbreviations
64
+ - Terms, definitions and symbols
65
+ - Terms, definitions and abbreviated terms
66
+ - Terms, definitions, symbols and abbreviated terms
64
67
  normref_titles:
65
68
  - References
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.3.0
4
+ version: 0.3.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: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -190,6 +190,7 @@ extra_rdoc_files: []
190
190
  files:
191
191
  - ".github/workflows/rake.yml"
192
192
  - ".gitignore"
193
+ - ".hound.yml"
193
194
  - ".rubocop.yml"
194
195
  - CODE_OF_CONDUCT.md
195
196
  - Gemfile
@@ -253,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
254
  requirements:
254
255
  - - ">="
255
256
  - !ruby/object:Gem::Version
256
- version: 2.4.0
257
+ version: 2.5.0
257
258
  required_rubygems_version: !ruby/object:Gem::Requirement
258
259
  requirements:
259
260
  - - ">="