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 +4 -4
- data/lib/suma/term_extractor.rb +7 -4
- data/lib/suma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd2e4a074e8d3b0ab67fd577a72084f05b6727c472b27d8372b8f22d0c98851c
|
|
4
|
+
data.tar.gz: fd67ff08c1e9607ec9e24ed66100dda235bfea0805b42427c83199313a868632
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3017ab40298248f60f38a32b25842535a47d72c36603de5c6c49b55d1a269341c497752e06c5f2bb372d0830155a49ecda7429310f0ffc44865ea8792398ab7b
|
|
7
|
+
data.tar.gz: 011e091b656afb963cd9c12156588a1fbf90a40ca08071c91ce58b20df3b8ba71464ccc075ca9d2486d263ac20e2400d5ac8b942d97e9d043566d2b3feee85f5
|
data/lib/suma/term_extractor.rb
CHANGED
|
@@ -343,8 +343,11 @@ module Suma
|
|
|
343
343
|
end
|
|
344
344
|
end
|
|
345
345
|
|
|
346
|
-
# The
|
|
347
|
-
# sources whose item list names it, and the bare
|
|
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
|
|
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
|
|
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
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.
|
|
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
|
+
date: 2026-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|