ea 0.6.2 → 0.6.3
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/ea/version.rb +1 -1
- data/lib/ea/xmi/liquid_drops/data_type_drop.rb +31 -0
- data/lib/ea/xmi/parser.rb +5 -0
- metadata +4 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30948ffbe1b205fa0b81592a415220b40290c7e25890d86d3f990687b73fa5d1
|
|
4
|
+
data.tar.gz: d7f7a976f844b0f4e907240420a440f2d6a44517a7fa40c08c51a2015b82dbcb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c1f3f1d29dbf3da60e970a39c45006ba616b711f11b734d03f8ddcb91956573989c04faf60eb20e9cb0e7ec4f91ac6fc6c6c4e0138b90e58cf90f320aac2483
|
|
7
|
+
data.tar.gz: f6c8bce31c33ca03a08cb1d4e54e150c2d21d9c933caf439effc7cb160d3fdd76a962f9942973add8de49fb26baf1f2b9807d4d029f156a293a9a595a686fb5b
|
data/lib/ea/version.rb
CHANGED
|
@@ -57,6 +57,37 @@ module Ea
|
|
|
57
57
|
def stereotype
|
|
58
58
|
@model.stereotype&.first
|
|
59
59
|
end
|
|
60
|
+
|
|
61
|
+
def owned_attributes
|
|
62
|
+
Array(@model.attributes).filter_map do |owned_attr|
|
|
63
|
+
::Ea::Xmi::LiquidDrops::AttributeDrop.new(owned_attr, @options)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def generalization
|
|
68
|
+
if @model.generalization
|
|
69
|
+
::Ea::Xmi::LiquidDrops::GeneralizationDrop.new(
|
|
70
|
+
@model.generalization, nil, @options
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
def upper_packaged_element
|
|
76
|
+
e = @lookup.find_upper_level_packaged_element(@model.xmi_id)
|
|
77
|
+
e&.name
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def subtype_of
|
|
81
|
+
@lookup.find_subtype_of_from_generalization(@model.xmi_id) ||
|
|
82
|
+
@lookup.find_subtype_of_from_owned_attribute_type(@model.xmi_id)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def inheritances
|
|
86
|
+
Array(@inheritance_ids).filter_map do |inheritance_id|
|
|
87
|
+
connector = @lookup.fetch_connector(inheritance_id)
|
|
88
|
+
::Ea::Xmi::LiquidDrops::ConnectorDrop.new(connector, @options)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
60
91
|
end
|
|
61
92
|
end
|
|
62
93
|
end
|
data/lib/ea/xmi/parser.rb
CHANGED
|
@@ -442,6 +442,11 @@ module Ea
|
|
|
442
442
|
data_type.operations = build_operations(dt)
|
|
443
443
|
data_type.associations = build_associations(dt.id)
|
|
444
444
|
data_type.constraints = build_constraints(dt.id)
|
|
445
|
+
data_type.association_generalization = build_assoc_generalizations(dt)
|
|
446
|
+
# build_generalization always returns a Generalization for the
|
|
447
|
+
# element itself, so only attach when XMI declares a parent.
|
|
448
|
+
data_type.generalization =
|
|
449
|
+
build_generalization(dt) if dt.generalization&.any?
|
|
445
450
|
end
|
|
446
451
|
end
|
|
447
452
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ea
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
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-09-
|
|
11
|
+
date: 2026-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
@@ -140,22 +140,16 @@ dependencies:
|
|
|
140
140
|
name: lutaml-uml
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- - "~>"
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0.5'
|
|
146
143
|
- - ">="
|
|
147
144
|
- !ruby/object:Gem::Version
|
|
148
|
-
version: 0
|
|
145
|
+
version: '0'
|
|
149
146
|
type: :development
|
|
150
147
|
prerelease: false
|
|
151
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
152
149
|
requirements:
|
|
153
|
-
- - "~>"
|
|
154
|
-
- !ruby/object:Gem::Version
|
|
155
|
-
version: '0.5'
|
|
156
150
|
- - ">="
|
|
157
151
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: 0
|
|
152
|
+
version: '0'
|
|
159
153
|
- !ruby/object:Gem::Dependency
|
|
160
154
|
name: rubocop
|
|
161
155
|
requirement: !ruby/object:Gem::Requirement
|