ea 0.6.181 → 0.6.182
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/qea/factory/base_transformer.rb +3 -2
- data/lib/ea/version.rb +1 -1
- 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: a8f44a4f05bfc49ab0df67d631260b334c2d550bb7a8579272c57fdc6335c1fb
|
|
4
|
+
data.tar.gz: 872e956c23de93a5d6e924da2f41d9e3202eca3de7a51efa7fac5a78216186b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 358ae9bd7191a26525ad964da4954b3e9de87672270b26cedfadaa6e7eb05cf47bede14cd3178192efd136544960284acaa84110eb3aef21ef13a8fa9bb47cc5
|
|
7
|
+
data.tar.gz: 313009cbb3a6abff15eb72c9cb2972f2408fe2fbba7d124643878a05888bf04edef4803ef69203072cd1f20a2af24f40cc85e03b8e8a5969bddfabb7fe0ba2c4
|
|
@@ -122,14 +122,15 @@ module Ea
|
|
|
122
122
|
TaggedValueTransformer.new(database).transform_collection(ea_tags)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
# Load and transform attributes for an object
|
|
125
|
+
# Load and transform attributes for an object, in the order EA's
|
|
126
|
+
# export writes them: by position, ties by name.
|
|
126
127
|
# @param object_id [Integer] Object ID
|
|
127
128
|
# @return [Array<Lutaml::Uml::TopElementAttribute>] UML attributes
|
|
128
129
|
def load_attributes(object_id)
|
|
129
130
|
return [] if object_id.nil?
|
|
130
131
|
|
|
131
132
|
ea_attributes = database.attributes_for_object(object_id)
|
|
132
|
-
.sort_by { |a| a.pos || 0 }
|
|
133
|
+
.sort_by { |a| [a.pos || 0, a.name.to_s.downcase] }
|
|
133
134
|
AttributeTransformer.new(database).transform_collection(ea_attributes)
|
|
134
135
|
end
|
|
135
136
|
|
data/lib/ea/version.rb
CHANGED