metanorma-gb 1.5.10 → 1.5.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 656e18a9b923799f2bca23480c91f3b796125470f0304a7ae9fd98da41a90f8d
4
- data.tar.gz: 6580b02e53ff8c76f2e2f20b27044e2575138dd33f48800684cce41d5e3cf076
3
+ metadata.gz: b1b1b622ba1a76cd8f7599f7143c162ee257c8339e838dbf1e4e096ae9cbb294
4
+ data.tar.gz: 2af3408ae2c931a5a38f6a3f27f9a8b162fdc6f7bc54845be9596022e8443037
5
5
  SHA512:
6
- metadata.gz: 0a62fab6f6e7ab6cdd0a18870672214b1ae280f796d28083a622cb439ef4a2796573b06fe146b242f38a29e11a7c72098261bba586597d6f326331e1d9a0956b
7
- data.tar.gz: 94fb086f49099c8be020fda4263a78e839f2c52b20255732468f9832886404fda1954ba0063c2b6fafc1e90a40f2f18304fdb98c5e88d0d2d901d1fe49988cbb
6
+ metadata.gz: 70340543ea0bb1bc58c13d7266ae675ddd0e98bb9cfa42b6d7e4a0635869dd3d3308597434196d6eb3d7c32b2653c2165d4975388b48b1b5674199cc434409c9
7
+ data.tar.gz: 70993b1c6b9df93516b3bbcf9da9137b8d60c3711a5ae34ab938e2435dbfdb68062568f6b7f0f7aee760850f272120b3dfac21d8f80ff14526389e26885f987f
@@ -13,6 +13,12 @@ on:
13
13
  default: 'skip'
14
14
  repository_dispatch:
15
15
  types: [ do-release ]
16
+ # The publish leg: when the release PR (head branch release/v*) merges,
17
+ # metanorma/ci tags the merge commit and publishes (metanorma/ci#515).
18
+ # Ordinary PR closes are skipped inside the reusable workflow.
19
+ pull_request:
20
+ types:
21
+ - closed
16
22
 
17
23
  jobs:
18
24
  release:
data/Gemfile.lock CHANGED
@@ -627,7 +627,7 @@ GEM
627
627
  ogc-gml (~> 1.1)
628
628
  metanorma-plugin-plantuml (1.0.16)
629
629
  asciidoctor
630
- metanorma-standoc (3.5.10)
630
+ metanorma-standoc (3.5.11)
631
631
  addressable (~> 2.8)
632
632
  asciidoctor (~> 2.0.0)
633
633
  concurrent-ruby
@@ -1299,7 +1299,7 @@ CHECKSUMS
1299
1299
  metanorma-plugin-glossarist (0.5.2) sha256=d1b05bf76162412d7cabe2c99034a287fdf684f822d87eff762fcaf64a35766e
1300
1300
  metanorma-plugin-lutaml (0.7.63) sha256=58b0202080481f2d3c470a54ee3b9d87827f7ac7c1591a90a43fbc1333a7b2c9
1301
1301
  metanorma-plugin-plantuml (1.0.16) sha256=0152005ce066a1f91db71465ca905dc1399f01d946574c76c95ba83e19fd8d75
1302
- metanorma-standoc (3.5.10) sha256=8ea6bf533a7d669594e2d8069dba55d07514e0f8a5e1bd44663b461746c7831a
1302
+ metanorma-standoc (3.5.11) sha256=dd14529517b71ca8de23b7a000f432f9605c56a50de4c64d0b083909e05bd7bf
1303
1303
  metanorma-taste (1.1.2) sha256=dc520440018880a219bd6ff090eb095255db96768cca532f9bdad2dc00908448
1304
1304
  metanorma-utils (2.0.11) sha256=ca060b13209bb7cab3d6b612905116bfd04588c63f6d75e5eab405c2dbaebf50
1305
1305
  method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
@@ -95,15 +95,22 @@ module Metanorma
95
95
  end
96
96
 
97
97
  def check_bilingual(t, element)
98
- zh = designation_text(t, element, "zh")
99
- en = designation_text(t, element, "en")
98
+ zh = bilingual_designation_text(t, element, "zh")
99
+ en = bilingual_designation_text(t, element, "en")
100
100
  en.empty? && !zh.empty? && @log.add(:GB_13, t, params: [element, zh])
101
101
  !en.empty? && zh.empty? && @log.add(:GB_14, t, params: [element, en])
102
102
  end
103
103
 
104
104
  # The designation's language can sit on the element or on the
105
105
  # string it carries; the model emits both shapes.
106
- def designation_text(t, element, lang)
106
+ #
107
+ # Not `designation_text`: metanorma-standoc's Validate gained its own
108
+ # single-argument `designation_text(name)` (the STANDOC_24
109
+ # duplicate-designation check), and this class inherits
110
+ # `preferred_validate` from it. Shadowing that method with a
111
+ # three-argument helper made the inherited check raise
112
+ # ArgumentError (mn-samples-gb#55).
113
+ def bilingual_designation_text(t, element, lang)
107
114
  t.xpath(".//#{element}").each do |d|
108
115
  s = d.xpath(".//string[@language = '#{lang}']")
109
116
  return s.map(&:text).join unless s.empty?
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.5.10"
3
+ VERSION = "1.5.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.10
4
+ version: 1.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-06 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso