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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06b3e17b7a92f6e70e62eccb4de5b204a63979c522399b636e7a6659db43f050
4
- data.tar.gz: 9a69738e78ea597ad6b537fb8acd5d4d37d405c80530a08d59d36ee235989053
3
+ metadata.gz: a8f44a4f05bfc49ab0df67d631260b334c2d550bb7a8579272c57fdc6335c1fb
4
+ data.tar.gz: 872e956c23de93a5d6e924da2f41d9e3202eca3de7a51efa7fac5a78216186b4
5
5
  SHA512:
6
- metadata.gz: 85e9a42c57bdce92b4a490a7d6284865f9664c915876c405e027d1cbfbeaf9f2d0c1ee9ccfbf6008f1d762b505a7c5ce858338439b1c5263a331316f83b293a2
7
- data.tar.gz: 998781e439da3ef9af1a9c60188ef65f8504c1e9ed8e393dbdc3f2ead24ab30fa16b54dd939c13cfb13d9faac251102bd2f923f65105673a697f86740ff790ac
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
@@ -4,5 +4,5 @@ module Ea
4
4
  # Gem release version. Extracted to its own file so the
5
5
  # `gem-release` tool's `gem bump` can find and update it via the
6
6
  # standard `lib/<gem>/version.rb` convention.
7
- VERSION = "0.6.181".freeze
7
+ VERSION = "0.6.182".freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.181
4
+ version: 0.6.182
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.