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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 380893deae7b963ad1177e3cec77bcb1752dfb15efd8560a952535e58bdec608
4
- data.tar.gz: cab5e523724906b6a9ff202a335195c73b7762521acc8550705b1fae66784edf
3
+ metadata.gz: cec3346a07c0b975dce5f9c786cb64552969f416cb88a11284d48403f98446b2
4
+ data.tar.gz: fc493f4256dcd15b88f46848fbf8c4757f66caca5a1dec1cad3f7a1d51115583
5
5
  SHA512:
6
- metadata.gz: 7332ae8e47d87b493f825a017aef535f9002997dd729b8b7f858e7361225aab4e20428bb64e208ff4b46d4335e166566c4277c68b9a04e0874197aeb42acd475
7
- data.tar.gz: 864cbb3fc456851627645c86083c08e52599c65dd2867f4014f956b114708fe952ccb97c00a526f2d41b2d9c7d725f8b990081b1a30ddaae899fd89c9dc65e01
6
+ metadata.gz: 2d3bdbfedc6a13e18138d6071add0b13fe0d384e6c3a082151794d55f8942e7efd2d1652883a12754336994af86b7951a5bce82e07799e2fe327c534ee98f263
7
+ data.tar.gz: 22269ec395160854295bac9b035e6e9650419ff2e358ce7b756925768d225c3de1245fd691c57e961e07231600109505007c86c1104c8792ccdc3b31bef91283
data/Gemfile CHANGED
@@ -9,7 +9,6 @@ gem "parsanol", "1.3.9"
9
9
 
10
10
  gem "canon"
11
11
  gem "lutaml-model", github: "lutaml/lutaml-model", branch: "main"
12
- gem "moxml", github: "lutaml/moxml", branch: "main"
13
12
  gem "openssl", "~> 3.0"
14
13
  gem "rack-test"
15
14
  gem "rake"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lutaml
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
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.1
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-22 00:00:00.000000000 Z
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"`.