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 +4 -4
- data/lib/lutaml/version.rb +1 -1
- data/lib/lutaml/xmi/parsers/xml.rb +12 -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: d137d5be60e06ea2c41de5764075acf098b35a1904971368c8354712be92fe8c
|
4
|
+
data.tar.gz: d1f6ed60c34193f7cbf0a086fb9cd9546dce0c7764452c001c31f60ae3aaee88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6d543f0b65233b2e87c6285a55b3fc44812a1cb71387fd23212ee24338c1cc2e6b8e8c1f39d5458dc644c8d00b3ad07e87d378eac591fe2a0aad0fbfa021db8
|
7
|
+
data.tar.gz: a6f1a7f760d9db443d9a8e317e7e83b1b66c1a5209758927803a3a3027d7eeb9260ecc0a73852a51bc9b1ae26a33aeb698891baecdf3a32ed5d449d20595ae8b
|
data/lib/lutaml/version.rb
CHANGED
@@ -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] =
|
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.
|
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-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: expressir
|