ea 0.6.161 → 0.6.162
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/parser.rb +11 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fcde69536b5b7dd6c30e012412acf1dcf21b102de3d47029442dae72705b3c1
|
|
4
|
+
data.tar.gz: 2b579326135166ae5c7d78ddba7d107efa1acd1a1ce666c4eacf294d4c7e1aac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1b2335a9715c4aab2b33f935d82c3e15428230bfdd4cb67f09761ad88a943d85bf6f5300aeb1cf720a6cae591e1a85322e68890efad8037e026ed8ca0f26e06
|
|
7
|
+
data.tar.gz: 9017d649a98b044157acfc471d8877b0dd704b3a5cf92986e15edd817b294a41a919432ee45dc85c01ff2cf8ef749f075954d9d7fe50ca8e4500bd996706516c
|
data/lib/ea/version.rb
CHANGED
data/lib/ea/xmi/parser.rb
CHANGED
|
@@ -743,13 +743,21 @@ module Ea
|
|
|
743
743
|
|
|
744
744
|
general_item.attributes.reverse_each do |attr|
|
|
745
745
|
attr.upper_klass = gen_upper_klass
|
|
746
|
-
attr.gen_name = gen_name
|
|
747
746
|
attr.level = level
|
|
748
747
|
|
|
748
|
+
# Inherited rows are dup copies (QeaToUml parity): the
|
|
749
|
+
# ancestor's own attributes keep only upper_klass/level tags,
|
|
750
|
+
# while the copies carry the full ancestor attribution so
|
|
751
|
+
# later levels cannot mutate what was already collected.
|
|
752
|
+
inherited_attr = attr.dup
|
|
753
|
+
inherited_attr.upper_klass = gen_upper_klass
|
|
754
|
+
inherited_attr.gen_name = gen_name
|
|
755
|
+
inherited_attr.level = level
|
|
756
|
+
|
|
749
757
|
if attr.association
|
|
750
|
-
inherited_assoc_props <<
|
|
758
|
+
inherited_assoc_props << inherited_attr
|
|
751
759
|
else
|
|
752
|
-
inherited_props <<
|
|
760
|
+
inherited_props << inherited_attr
|
|
753
761
|
end
|
|
754
762
|
end
|
|
755
763
|
|