lutaml 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4db5dffc542b1571b200b43d83253caafa1f90cd67aec5ece16af26a31ac5f8b
4
- data.tar.gz: 9e12f4317fb3a5690d5475ebec249cbafa92de81d1f813845438062dfd51083d
3
+ metadata.gz: 7d1677e27d1216994f6619acc558721d9b2d6107dd30fd6776232965d6d1d219
4
+ data.tar.gz: e8999116cdee14d6316f9bedaa781893ae2d27b88f93aef514fdda435e8d29b6
5
5
  SHA512:
6
- metadata.gz: 2e15272b553e564a0432e758d56e00cae2c79a8c8e166615812ad5e05004b9c5fe2e33a667d6910ffd6fc1156365fed895d1aa2c4412da4892511edd324c0785
7
- data.tar.gz: 16281e22ee7b86fba771f7eee75455bfcd175c0ac4af02ecdda5538bd75a63ecaaa71cbdfde4e5815f5d5a15db1bbf11be5d129fd71285d3219cc4702d9c4561
6
+ metadata.gz: 37c0d7fb4a3676a45fc8ebbab3bfab3e993ad84e005a8a7d642a1af66c3600271d1a03b723a2b7ff8462a96a75605c5bce06425393047c9fcdcd16c38c1b603f
7
+ data.tar.gz: e287823e6e238754223823ccabaebe31f13332b26efb67ac97d1c3f103cdf512f5a7be9276653f826983fe87e991b221772115b1c3d0bb09bb5745db1f2b0dd2
@@ -1,3 +1,3 @@
1
1
  module Lutaml
2
- VERSION = "0.9.7".freeze
2
+ VERSION = "0.9.8".freeze
3
3
  end
@@ -337,17 +337,26 @@ module Lutaml
337
337
  source_or_target = :target
338
338
  end
339
339
 
340
- member_end = member_end_name(xmi_id, source_or_target)
340
+ member_end = member_end_name(xmi_id, source_or_target, link.name)
341
341
  [member_end, xmi_id]
342
342
  end
343
343
 
344
344
  # @param xmi_id [String]
345
345
  # @param source_or_target [Symbol]
346
346
  # @return [String]
347
- def member_end_name(xmi_id, source_or_target)
348
- connector_labels(xmi_id, source_or_target) ||
349
- lookup_entity_name(xmi_id) ||
350
- connector_name_by_source_or_target(xmi_id, source_or_target)
347
+ def member_end_name(xmi_id, source_or_target, link_name)
348
+ connector_label = connector_labels(xmi_id, source_or_target)
349
+ entity_name = lookup_entity_name(xmi_id)
350
+ connector_name = connector_name_by_source_or_target(
351
+ xmi_id, source_or_target
352
+ )
353
+
354
+ case link_name
355
+ when "Aggregation"
356
+ connector_label || entity_name || connector_name
357
+ else
358
+ entity_name || connector_name
359
+ end
351
360
  end
352
361
 
353
362
  # @param owner_xmi_id [String]
@@ -409,7 +418,7 @@ module Lutaml
409
418
  source_or_target = :target
410
419
  end
411
420
 
412
- member_end = member_end_name(xmi_id, source_or_target)
421
+ member_end = member_end_name(xmi_id, source_or_target, link.name)
413
422
 
414
423
  member_end_cardinality, _member_end_attribute_name =
415
424
  fetch_owned_attribute_node(xmi_id)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-19 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir