lutaml 0.9.13 → 0.9.15

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: 05c32d8cfd15503c91aa70205b2cf130785f6fb5c2c14e6622b0131f530a74d9
4
- data.tar.gz: 1aefef310bed4c0438bb37dfdbfac9cf2a9748744f779ae4ecb1eccc18941bb5
3
+ metadata.gz: 4906fb3fd07954b14085e4d257c3bb856e4ca6618c60ff96dc8b0ad6c5bdb8f5
4
+ data.tar.gz: c4ce20e928cf6a3b0ef7b39cae68f1f384490807638d14ba500f2d2fc6180631
5
5
  SHA512:
6
- metadata.gz: 517a71b871804994c345e2676ec6f462efa698c4247bb77b7d3cbd62ce82025d53421a0f67ebf0645e0c47ebfbf9f4ae77629cceab3d4bf1af19548981e01f51
7
- data.tar.gz: 4bdcc32531aae771bd148c57d4a41a391afe4eb35d74ff96c1276832ed4cb03c38c42c6407d543e8842240137819a04effd821473e2fd9d7b298ef04a926981e
6
+ metadata.gz: b586629aaf671856673871f267b9622814180d2df17aa068fa70656461a038fb33658f19d604233b5ea87c2f21f2d3f9cc70ff4cb4e1ee60829c050ae651ea9a
7
+ data.tar.gz: 8b32d8fb46594d2602d8c6b5a8cfbbcfab5c039d981197ee0ca087e1effb89734c389947f62dde568f5f22bf74153099d103bd1f7b211e805558ed521bb315da
@@ -1,3 +1,3 @@
1
1
  module Lutaml
2
- VERSION = "0.9.13".freeze
2
+ VERSION = "0.9.15".freeze
3
3
  end
@@ -27,7 +27,7 @@ module Lutaml
27
27
  end
28
28
 
29
29
  def has_general?
30
- !!@gen[:general]
30
+ !@gen[:general].empty?
31
31
  end
32
32
 
33
33
  def attributes
@@ -93,10 +93,11 @@ module Lutaml
93
93
  # @return [Hash]
94
94
  def serialize_generalization_by_name(xmi_model, name)
95
95
  set_xmi_model(xmi_model)
96
+ model = xmi_model.model
96
97
  klass = find_klass_packaged_element_by_name(name)
97
- serialized_hash = serialize_generalization(klass)
98
+ serialized_hash = build_klass_hash(klass, model, with_gen: true)
98
99
 
99
- ::Lutaml::XMI::GeneralizationDrop.new(serialized_hash)
100
+ ::Lutaml::XMI::KlassDrop.new(serialized_hash)
100
101
  end
101
102
 
102
103
  private
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.13
4
+ version: 0.9.15
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-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid