lutaml 0.9.23 → 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: bc862e1c9607a9696f2104ebcd0b3fc32fabe504c910612013be0e3e6a9a1e69
4
- data.tar.gz: 41613d1428429a6e629406d1d755745146f0f34ca78af7373a967bec3338ebbd
3
+ metadata.gz: d137d5be60e06ea2c41de5764075acf098b35a1904971368c8354712be92fe8c
4
+ data.tar.gz: d1f6ed60c34193f7cbf0a086fb9cd9546dce0c7764452c001c31f60ae3aaee88
5
5
  SHA512:
6
- metadata.gz: 9ea914bab620f52b038b5c0c7778eac2b257e3fafceb1b4ca5d75d198c3f53d763943f808a22d5d0561874d059fe1f1b4a819ec614c23a873f01685049b0362a
7
- data.tar.gz: 4b0f439ac81fbdc1239833dd92288cc213ce7b78f53050acabf443b4e87bc4e795ca89cbc56cac8b783bb037de8fc3afa2f10aede1a03069328d4b9530dd91b8
6
+ metadata.gz: d6d543f0b65233b2e87c6285a55b3fc44812a1cb71387fd23212ee24338c1cc2e6b8e8c1f39d5458dc644c8d00b3ad07e87d378eac591fe2a0aad0fbfa021db8
7
+ data.tar.gz: a6f1a7f760d9db443d9a8e317e7e83b1b66c1a5209758927803a3a3027d7eeb9260ecc0a73852a51bc9b1ae26a33aeb698891baecdf3a32ed5d449d20595ae8b
@@ -1,3 +1,3 @@
1
1
  module Lutaml
2
- VERSION = "0.9.23".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
data/lutaml.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.required_ruby_version = ">= 2.7.0"
31
31
 
32
- spec.add_dependency "expressir", "~> 1.3"
32
+ spec.add_dependency "expressir", "~> 2.1.0"
33
33
  spec.add_dependency "hashie", "~> 4.1.0"
34
34
  spec.add_dependency "htmlentities"
35
35
  spec.add_dependency "liquid"
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.23
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-15 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: 2.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement