metanorma-itu 2.8.1 → 2.8.2

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.
@@ -7,7 +7,7 @@ module Metanorma
7
7
  super
8
8
  xmldoc.xpath("//thead/tr[1]/th | //thead/tr[1]/td").each do |t|
9
9
  text = t.at("./descendant::text()") or next
10
- text.replace(text.text.capitalize)
10
+ text.replace(::Metanorma::Utils.strict_capitalize_first(text.text))
11
11
  end
12
12
  end
13
13
 
@@ -70,10 +70,10 @@ module Metanorma
70
70
  id = bib.at("./docidentifier[not(#{skip_docid} or @type = " \
71
71
  "'metanorma')]")
72
72
  metaid = bib.at("./docidentifier[@type = 'metanorma']")&.text
73
- #abbrid = metaid unless /^\[\d+\]$/.match?(metaid)
73
+ # abbrid = metaid unless /^\[\d+\]$/.match?(metaid)
74
74
  type = id["type"] if id
75
- title = bib.at("./title[@type = 'main']")&.text ||
76
- bib.at("./title")&.text || bib.at("./formattedref")&.text
75
+ title = (bib.at("./title[@type = 'main']") ||
76
+ bib.at("./title") || bib.at("./formattedref"))&.text
77
77
  "#{pubclass} :: #{type} :: #{id&.text || metaid} :: #{title}"
78
78
  end
79
79
 
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!-- VERSION v2.1.4 -->
3
+ <!-- VERSION v2.1.5 -->
4
4
 
5
5
  <!--
6
6
  ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Itu
3
- VERSION = "2.8.1".freeze
3
+ VERSION = "2.8.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-17 00:00:00.000000000 Z
11
+ date: 2025-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc