lutaml 0.9.31 → 0.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lutaml/version.rb +1 -1
- data/lib/lutaml/xmi/parsers/xmi_base.rb +0 -8
- data/lib/lutaml/xmi/parsers/xml.rb +2 -4
- 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: 41d6dc7f483284d84fd66c7fb2a22f4596ddc4079ecf0c9e380a5f4545a8952f
|
4
|
+
data.tar.gz: 991540aa13eed6d834518df31ba567bed4b13049fd4abe1ba59a88a1afe94ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1893e415bfc169cd0e78602b6046b2b1f6475ad44c1aa60aad48810cda87cb9cc3f7e1fc372df6f275900ca05dfd3023e9b77ec91ba2e389dfa5385c55c8af56
|
7
|
+
data.tar.gz: b7e8813e7a8f6b57659d6467e7fa09d03098b7c4e93c34c088147e96507b02cf7ee2212afdf9d7af6df02bd39b1a20aa6c9789eb047dd6ed0d1c1bff365aa8bd
|
data/lib/lutaml/version.rb
CHANGED
@@ -31,14 +31,6 @@ module Lutaml
|
|
31
31
|
map_id_name(@xmi_cache, @xmi_root_model) if @xmi_cache.empty?
|
32
32
|
end
|
33
33
|
|
34
|
-
# @param yaml [String]
|
35
|
-
# @return [Hash]
|
36
|
-
def get_guidance(yaml)
|
37
|
-
return unless yaml
|
38
|
-
|
39
|
-
YAML.safe_load(File.read(yaml, encoding: "UTF-8"))
|
40
|
-
end
|
41
|
-
|
42
34
|
private
|
43
35
|
|
44
36
|
# @param xmi_model [Lutaml::Model::Serializable]
|
@@ -101,7 +101,7 @@ module Lutaml
|
|
101
101
|
# @param xmi_model [Lutaml::Model::Serializable]
|
102
102
|
# @param guidance_yaml [String]
|
103
103
|
# return [Liquid::Drop]
|
104
|
-
def serialize_xmi_to_liquid(xmi_model,
|
104
|
+
def serialize_xmi_to_liquid(xmi_model, guidance = nil)
|
105
105
|
set_xmi_model(xmi_model)
|
106
106
|
model = xmi_model.model
|
107
107
|
options = {
|
@@ -110,7 +110,6 @@ module Lutaml
|
|
110
110
|
with_gen: true,
|
111
111
|
with_absolute_path: true,
|
112
112
|
}
|
113
|
-
guidance = get_guidance(guidance_yaml)
|
114
113
|
::Lutaml::XMI::RootDrop.new(model, guidance, options)
|
115
114
|
end
|
116
115
|
|
@@ -119,10 +118,9 @@ module Lutaml
|
|
119
118
|
# @param guidance_yaml [String]
|
120
119
|
# @return [Hash]
|
121
120
|
def serialize_generalization_by_name(xmi_model, name, # rubocop:disable Metrics/MethodLength
|
122
|
-
|
121
|
+
guidance = nil, xmi_cache = nil)
|
123
122
|
set_xmi_model(xmi_model, xmi_cache)
|
124
123
|
klass = find_klass_packaged_element(name)
|
125
|
-
guidance = get_guidance(guidance_yaml)
|
126
124
|
options = {
|
127
125
|
xmi_root_model: @xmi_root_model,
|
128
126
|
xmi_cache: @xmi_cache,
|
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.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: expressir
|