lutaml 0.9.24 → 0.9.25

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: 19fd561389d0337b037854de3e9e1e3d6ec212299c9a62af17f90195972b2403
4
- data.tar.gz: 7722f61ff3b0d5b362bdcc5a7c63ade823edfd12c63b82d7c974915429392fa1
3
+ metadata.gz: d137d5be60e06ea2c41de5764075acf098b35a1904971368c8354712be92fe8c
4
+ data.tar.gz: d1f6ed60c34193f7cbf0a086fb9cd9546dce0c7764452c001c31f60ae3aaee88
5
5
  SHA512:
6
- metadata.gz: 5993e7dce5923f0560479ecd92bdb5b7181c22c21dc41165f9448aeb6d83dac4da78aed76a77eaa65b6afae9f045c032958db9ea55638ce41b5188870231cdb0
7
- data.tar.gz: c9b002cbd79894f25c4edf397d645190734e3352bf95477334ef973cb6d5420b8afb779f53cb929c29033aa31430db33b18259db4a069b56591a1d46ed3da08d
6
+ metadata.gz: d6d543f0b65233b2e87c6285a55b3fc44812a1cb71387fd23212ee24338c1cc2e6b8e8c1f39d5458dc644c8d00b3ad07e87d378eac591fe2a0aad0fbfa021db8
7
+ data.tar.gz: a6f1a7f760d9db443d9a8e317e7e83b1b66c1a5209758927803a3a3027d7eeb9260ecc0a73852a51bc9b1ae26a33aeb698891baecdf3a32ed5d449d20595ae8b
@@ -1,3 +1,3 @@
1
1
  module Lutaml
2
- VERSION = "0.9.24".freeze
2
+ VERSION = "0.9.25".freeze
3
3
  end
@@ -806,7 +806,7 @@ module Lutaml
806
806
  if with_assoc && oa.association
807
807
  attrs[:association] = oa.association
808
808
  attrs[:definition] = loopup_assoc_def(oa.association)
809
- attrs[:type_ns] = get_ns_by_type(attrs[:type])
809
+ attrs[:type_ns] = get_ns_by_xmi_id(attrs[:xmi_id])
810
810
  end
811
811
 
812
812
  attrs
@@ -868,6 +868,17 @@ module Lutaml
868
868
  find_upper_level_packaged_element(p.id)
869
869
  end
870
870
 
871
+ # @param xmi_id [String]
872
+ # @return [String]
873
+ def get_ns_by_xmi_id(xmi_id)
874
+ return unless xmi_id
875
+
876
+ p = find_packaged_element_by_id(xmi_id)
877
+ return unless p
878
+
879
+ find_upper_level_packaged_element(p.id)
880
+ end
881
+
871
882
  # @param klass_id [String]
872
883
  # @return [Array<Hash>]
873
884
  def build_class_attributes(owned_attr) # rubocop:disable Metrics/MethodLength
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.24
4
+ version: 0.9.25
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-11-20 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir