lutaml 0.10.1 → 0.10.2
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/Gemfile +0 -1
- data/lib/lutaml/uml_repository/package_exporter.rb +14 -3
- data/lib/lutaml/version.rb +1 -1
- metadata +2 -3
- data/TODO.bugfix.md +0 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cec3346a07c0b975dce5f9c786cb64552969f416cb88a11284d48403f98446b2
|
|
4
|
+
data.tar.gz: fc493f4256dcd15b88f46848fbf8c4757f66caca5a1dec1cad3f7a1d51115583
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d3bdbfedc6a13e18138d6071add0b13fe0d384e6c3a082151794d55f8942e7efd2d1652883a12754336994af86b7951a5bce82e07799e2fe327c534ee98f263
|
|
7
|
+
data.tar.gz: 22269ec395160854295bac9b035e6e9650419ff2e358ce7b756925768d225c3de1245fd691c57e961e07231600109505007c86c1104c8792ccdc3b31bef91283
|
data/Gemfile
CHANGED
|
@@ -76,9 +76,22 @@ module Lutaml
|
|
|
76
76
|
# @raise [ArgumentError] If serialization format is invalid
|
|
77
77
|
# @example
|
|
78
78
|
# exporter.export("model.lur")
|
|
79
|
-
def export(output_path)
|
|
79
|
+
def export(output_path) # rubocop:disable Metrics/MethodLength
|
|
80
80
|
validate_options!
|
|
81
81
|
|
|
82
|
+
retries = 0
|
|
83
|
+
begin
|
|
84
|
+
write_lur_package(output_path)
|
|
85
|
+
rescue Errno::EACCES
|
|
86
|
+
retries += 1
|
|
87
|
+
retry if retries < 3
|
|
88
|
+
raise
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
private
|
|
93
|
+
|
|
94
|
+
def write_lur_package(output_path)
|
|
82
95
|
Zip::File.open(output_path, create: true) do |zip|
|
|
83
96
|
write_metadata(zip)
|
|
84
97
|
write_document(zip)
|
|
@@ -88,8 +101,6 @@ module Lutaml
|
|
|
88
101
|
end
|
|
89
102
|
end
|
|
90
103
|
|
|
91
|
-
private
|
|
92
|
-
|
|
93
104
|
# Get default export options.
|
|
94
105
|
#
|
|
95
106
|
# @return [Hash] Default options
|
data/lib/lutaml/version.rb
CHANGED
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.10.
|
|
4
|
+
version: 0.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: expressir
|
|
@@ -334,7 +334,6 @@ files:
|
|
|
334
334
|
- Makefile
|
|
335
335
|
- README.adoc
|
|
336
336
|
- Rakefile
|
|
337
|
-
- TODO.bugfix.md
|
|
338
337
|
- bin/console
|
|
339
338
|
- bin/folder_yaml2lutaml.sh
|
|
340
339
|
- bin/plantuml2lutaml
|
data/TODO.bugfix.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Bug Fixes (All Resolved)
|
|
2
|
-
|
|
3
|
-
## 1. DiagramTransformer overwrites resolved package_id with raw numeric ID [FIXED]
|
|
4
|
-
|
|
5
|
-
**File:** `lib/lutaml/qea/factory/diagram_transformer.rb`
|
|
6
|
-
|
|
7
|
-
Lines 34-39 correctly resolve the numeric `package_id` to a GUID (`"EAPK_..."`), but line 66
|
|
8
|
-
overwrote it with `ea_diagram.package_id` (a raw integer). Removed the overwrite.
|
|
9
|
-
|
|
10
|
-
## 2. Stereotype assigned as string instead of array in multiple transformers [FIXED]
|
|
11
|
-
|
|
12
|
-
`TopElement#stereotype` is declared `collection: true` (should be an array), but multiple
|
|
13
|
-
transformers assigned a bare string. lutaml-model doesn't auto-wrap. Downstream code calling
|
|
14
|
-
`.first` or `.include?` got string behavior (first character, substring match) instead of array.
|
|
15
|
-
|
|
16
|
-
Fixed in:
|
|
17
|
-
- QEA factory: class_transformer, data_type_transformer, enum_transformer, package_transformer, generalization_transformer
|
|
18
|
-
- XMI converter: xmi_to_uml.rb (all 5 assignments)
|
|
19
|
-
- Consumers: enhanced_formatter, tree_view_formatter, diagram_command, diagram_presenter, search_query
|
|
20
|
-
|
|
21
|
-
## 3. Dead ternary in ClassTransformer [FIXED]
|
|
22
|
-
|
|
23
|
-
`klass.type = is_text_class ? "Class" : "Class"` — both branches were identical.
|
|
24
|
-
Replaced with `klass.type = "Class"`.
|