ea 0.6.77 → 0.6.78

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: 0b1e7133efe6db7f9c0dcf1f73749934b1887107b4fa37a9c5ac26b10a1c90f9
4
- data.tar.gz: 8b9d00b0893ac03f2c8608e4faf0b9a12ed7d29413a4bc230e1e88ed205afdd8
3
+ metadata.gz: bfe9a94594b0658c534f301154308f235bf478f392175e3dff76db196a478ef8
4
+ data.tar.gz: f77951d18da4cb89f7772ced481a99c9288e6b953cf6ee17ab4318cd23485085
5
5
  SHA512:
6
- metadata.gz: 86ef660cb14f997a030c8969e6ee1184d5b73b1cc97d1000954dd888dff587490a0b2e80450e98f0ee36cc5324c2ece05b740f12e2bb8391288ff12edf2d9b80
7
- data.tar.gz: f714a37fe94c165bff0104f545e7ba9332c6b3d91ec1bb7cd62524c72b1940992182f558af1343e35d2ff693b675a8ade451f3b7e04793a4ebbdc76a331fd5c2
6
+ metadata.gz: a5d2dd6eda5f9a89292235c7d8981a7d7a85664533966c3f284f2679f8722bae5ee62272de28cc2c0d7cd0ca5b243157610b80e26d44a075e9510a89d80b3777
7
+ data.tar.gz: f56cb6b66a358364c8c341bb6b79a422073a2e361f369949fda807b04d2c00082785215ecf1062a3a36b42a5aa75099db75e6eab860f77f5423c99bd925df571
@@ -12,6 +12,7 @@ module Ea
12
12
  # (t_object.Object_Type, xmi:type) to pick the right subclass.
13
13
  class Classifier < Base
14
14
  attribute :qualified_name, :string
15
+ attribute :nested_parent_name, :string # t_object.ParentID owner class
15
16
  attribute :package_id, :string # containing package
16
17
  attribute :package_name, :string # containing package name
17
18
  attribute :is_abstract, :boolean, default: false
@@ -93,6 +93,7 @@ module Ea
93
93
  package_id: package_id_for(object),
94
94
  package_name: package_name_for(object),
95
95
  qualified_name: qualified_name_for(object),
96
+ nested_parent_name: nested_parent_name(object),
96
97
  is_abstract: abstract?(object),
97
98
  is_root: object.isroot.to_i == 1,
98
99
  is_leaf: object.isleaf.to_i == 1,
@@ -492,6 +492,12 @@ module Ea
492
492
  return nil unless diagram.show_foreign
493
493
  return nil unless classifier.is_a?(Ea::Model::Classifier)
494
494
 
495
+ # Nested classifiers (t_object.ParentID -> a Class) qualify
496
+ # with the OWNER CLASS name even when the package matches
497
+ # the diagram's (026D353E: 'set::ComplexTypeClass3').
498
+ nested = classifier.nested_parent_name.to_s
499
+ return nested.empty? ? nil : nested unless nested.empty?
500
+
495
501
  pkg_id = classifier.package_id
496
502
  return nil if pkg_id.nil? || pkg_id == diagram.package_id
497
503
 
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.77"
7
+ VERSION = "0.6.78"
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.77
4
+ version: 0.6.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.