metanorma-iso 3.5.28 → 3.5.29

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: 8ee8d75dc083783c18cbd7f8e043e93cd161d8d60d8e1ced39696452878ed41d
4
- data.tar.gz: 86ae39704b88d61258d54379763186f1ea1ecbc59d91e19ed6f6e813af1f2a67
3
+ metadata.gz: 4467bf33fa1ca58c577eb1f5cbd5ca00d20e2ce3ce8d84b3323baa39550dbc16
4
+ data.tar.gz: 4488eb7245d3c4bce8683d6e0c9b0262cef6f63c3880f3b9773af5eed8a9de3b
5
5
  SHA512:
6
- metadata.gz: 8060bb11c6fe0a4ef14d11a02a5dfd4d2af3312c29000d351d869604a3fea5bd27bb5b3aa947aaa32ca382bf8c1c43ff5b4cdf549f02a6eed54f7f5cdf59ad9d
7
- data.tar.gz: 1b821ab01073fbc6990c7870cb5b447c1b46f8b878ff309e05db46728b02088940d2e6370a313fd5c93ef9d2f82b69a38db9cfe411f7d7107965b3244a88a049
6
+ metadata.gz: 0e0a204c1b27d445006e6dc2541411ed4dde7b85fcb4a1d04dd29fb07c30c0a50f3f0f92d8344cbc9d0b806687b2852bcda5b9d3d020587dec3b709deffea743
7
+ data.tar.gz: cb95bf4e77dd1dc5c72500aec8c1b91b6f9815cae9722dc3746de41c66b8f7d1dde69656c7c8ad3e92e634d523728c64cd122240cd7c69af4e91a351c8914773
@@ -102,8 +102,11 @@ module Metanorma
102
102
 
103
103
  # Inline xrefs reachable from +node+: its mixed content plus any
104
104
  # direct xref attribute (table cells, definition-list terms).
105
- # Deduplicated by object identity: nodes with mixed content can
106
- # expose the same xref both ways.
105
+ # Both paths admit only XrefElement instances: the declared xref
106
+ # attribute can carry a bare String on a hand-built or partially
107
+ # cast model (metanorma/metanorma-iso#1819), and only real xrefs
108
+ # answer #target. Deduplicated by object identity: nodes with
109
+ # mixed content can expose the same xref both ways.
107
110
  def inline_xrefs(node)
108
111
  xrefs = []
109
112
  if node.class.method_defined?(:each_mixed_content)
@@ -111,7 +114,9 @@ module Metanorma
111
114
  xrefs << item if item.is_a?(XREF_CLASS)
112
115
  end
113
116
  end
114
- xrefs.concat(Array(node.xref)) if node.class.method_defined?(:xref)
117
+ if node.class.method_defined?(:xref)
118
+ xrefs.concat(Array(node.xref).grep(XREF_CLASS))
119
+ end
115
120
  xrefs.uniq { |x| x.object_id }
116
121
  end
117
122
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iso
3
- VERSION = "3.5.28".freeze
3
+ VERSION = "3.5.29".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: 3.5.28
4
+ version: 3.5.29
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-19 00:00:00.000000000 Z
11
+ date: 2026-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-document