suma 0.5.32 → 0.5.33

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: e58de844e84a98a6114627866bee6a97f6e9b77b17e4b14f8086a9f38085436c
4
- data.tar.gz: 907a991943cd782e14da96bd6579937ab382c75e0b332cf3ec55ec3ee7d649aa
3
+ metadata.gz: bd2e4a074e8d3b0ab67fd577a72084f05b6727c472b27d8372b8f22d0c98851c
4
+ data.tar.gz: fd67ff08c1e9607ec9e24ed66100dda235bfea0805b42427c83199313a868632
5
5
  SHA512:
6
- metadata.gz: df779c2bda89b8e69bc56fac088acb60d734072522a239e9cc1879389707b53d21bf115897d2550708e9b1b2a53586b05fa533d12f52f5abc2d50efda02b0f1b
7
- data.tar.gz: f99cf892fd49bf72f1f02bc3821202fabdc16ef82486fd6cdd7af9ca7e294de2343e36e41b0c3616f598989d67e679d5b03bfb3d80bccd013276954a5dc85d13
6
+ metadata.gz: 3017ab40298248f60f38a32b25842535a47d72c36603de5c6c49b55d1a269341c497752e06c5f2bb372d0830155a49ecda7429310f0ffc44865ea8792398ab7b
7
+ data.tar.gz: 011e091b656afb963cd9c12156588a1fbf90a40ca08071c91ce58b20df3b8ba71464ccc075ca9d2486d263ac20e2400d5ac8b942d97e9d043566d2b3feee85f5
@@ -343,8 +343,11 @@ module Suma
343
343
  end
344
344
  end
345
345
 
346
- # The USE FROM interfaces of +schema+ relevant to +entity_id+: the
347
- # sources whose item list names it, and the bare USE FROM sources.
346
+ # The interface edges of +schema+ relevant to +entity_id+: the
347
+ # sources whose item list names it, and the bare-interface sources.
348
+ # Both USE FROM and REFERENCE FROM carry the declaring-schema edge —
349
+ # resource schemas import through REFERENCE FROM, and their citations
350
+ # mis-qualify exactly like USE FROM ones (iso-10303#835).
348
351
  def use_from_sources(schema, entity_id)
349
352
  item_matches = []
350
353
  bare_sources = []
@@ -359,10 +362,10 @@ module Suma
359
362
  end
360
363
 
361
364
  # :item when the interface's item list names the declaration, :bare
362
- # for a bare USE FROM, nil when the interface is irrelevant to it.
365
+ # for a bare interface, nil when the interface is irrelevant to it.
363
366
  def interface_claim(interface, entity_id)
364
367
  source = interface.schema&.id
365
- return nil unless source && interface.kind == "USE"
368
+ return nil unless source && %w[USE REFERENCE].include?(interface.kind)
366
369
 
367
370
  items = Array(interface.items)
368
371
  return :bare if items.empty?
data/lib/suma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Suma
4
- VERSION = "0.5.32"
4
+ VERSION = "0.5.33"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.32
4
+ version: 0.5.33
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-11 00:00:00.000000000 Z
11
+ date: 2026-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64