ea 0.6.66 → 0.6.67

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: 53d5c1cd5e970e7c26ed55e55e86487d2907dc1aabf6d5ef179bca4a85c2cfdb
4
- data.tar.gz: 9da246b062c598d455d7a3a13c7c5f0b0ac28fe9d141a19d26b5521b54d3b85f
3
+ metadata.gz: cd6ba69d90eb60d981290b5b07467b15b44a95859723aeaa9a3d1ba2d2a8cc82
4
+ data.tar.gz: d70d59e8e12fb1fef32cdcbfaadfeaf9f80b9eb633a4f86d55fde8bddf6e9832
5
5
  SHA512:
6
- metadata.gz: 4d36f5777e743ce2b1ee995338e191b2fa6912622a6ab4a401449b3877880ab3c4cdac54ffb16be575758d436956eba86badaacf26a4e613299c68bc71d4c720
7
- data.tar.gz: 50dd7b12049c64807c8e671e1e912f367b8f55e222a137e1e52ed7b4b950430d619882798934fd42f6560fd4182d3482cca2290fac8447d751e0b785bb202204
6
+ metadata.gz: a42427c7db0b6015749560e6239752c5ad8ac6b2daed788c91ea6a1cbfa22460e132388928e82503d06749a2b85bab00198d5250db422c0bd7beaaa4baba6df2
7
+ data.tar.gz: 914844e0e278292ed0e918cebcfeda3268d79fff8afc679b4c1c5a4e64fce104271e08f73b3bf7c0430d32cb71f5c0e234707215ef0a01c24b098756af1a2314
@@ -124,8 +124,15 @@ module Ea
124
124
  # attribute rows (936AA434/Surface lists its nine 19107
125
125
  # attributes); the earlier corpus evidence for
126
126
  # header-only interfaces was zero-attribute leaf types.
127
+ # Regenerated contexts ignore stored per-element visibility
128
+ # toggles - EXCEPT for boxes whose only rows are
129
+ # association-derived properties (5833A95E keeps those
130
+ # suppressed even on FOC=0; 0CABA7D7 shows its association
131
+ # row because the class also owns real attributes).
127
132
  attr_lines = if is_classifier && show_attributes? &&
128
- attributes_visible?(element)
133
+ (attributes_visible?(element) ||
134
+ (regenerated_context? &&
135
+ classifier.properties.to_a.any? { |pr| !pr.association_id }))
129
136
  Element::AttributeRenderer.lines_for(
130
137
  classifier, lookup: attribute_lookup,
131
138
  exclude_association_ids: drawn_association_ids
@@ -133,7 +140,8 @@ module Ea
133
140
  else
134
141
  []
135
142
  end
136
- op_lines = if is_classifier && show_operations? && operations_visible?(element)
143
+ op_lines = if is_classifier && show_operations? &&
144
+ (operations_visible?(element) || regenerated_context?)
137
145
  Element::OperationRenderer.lines_for(classifier)
138
146
  else
139
147
  []
@@ -471,8 +479,7 @@ module Ea
471
479
  # (descendant packages included). Corpus-verified (450
472
480
  # diagrams): ShowForeign=0 renders plain everywhere.
473
481
  def regenerated_context?
474
- diagram.name.to_s.downcase.start_with?("context diagram") &&
475
- diagram.style_ex.to_s !~ /SuppressFOC=1/
482
+ diagram.style_ex.to_s !~ /SuppressFOC=1/
476
483
  end
477
484
 
478
485
  def foreign_package_name_for(classifier)
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.66"
7
+ VERSION = "0.6.67"
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.66
4
+ version: 0.6.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.