ea 0.6.65 → 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: 8ffac6574d00714dc4cf15762c28295af8c894481163916699eae211557fb1be
4
- data.tar.gz: d36e97707d7d1b961f807d13874484dcd92e6324467b80c6a0a07cddba0dcdf7
3
+ metadata.gz: cd6ba69d90eb60d981290b5b07467b15b44a95859723aeaa9a3d1ba2d2a8cc82
4
+ data.tar.gz: d70d59e8e12fb1fef32cdcbfaadfeaf9f80b9eb633a4f86d55fde8bddf6e9832
5
5
  SHA512:
6
- metadata.gz: 5fa4eef593858195a555722364870e9c1d86a0305417fdf113ab905dce3201a2a22c75b97ffe1410482522eb705a491fd2afd0dda86dab5730cfe9dff7c394b0
7
- data.tar.gz: b6a3d1b3c66e31d6e2a8b3113ccdf453d3a6a2f8c98c205dccfb74b3ecb6464383774f5fff9e830d13e68b26bb2558acf1157ba3da9919198e06020930ca957a
6
+ metadata.gz: a42427c7db0b6015749560e6239752c5ad8ac6b2daed788c91ea6a1cbfa22460e132388928e82503d06749a2b85bab00198d5250db422c0bd7beaaa4baba6df2
7
+ data.tar.gz: 914844e0e278292ed0e918cebcfeda3268d79fff8afc679b4c1c5a4e64fce104271e08f73b3bf7c0430d32cb71f5c0e234707215ef0a01c24b098756af1a2314
@@ -14,7 +14,7 @@ module Ea
14
14
  # compartment for Klass / Interface classifiers.
15
15
  class OperationRenderer
16
16
  VISIBILITY_X_OFFSET = 5
17
- CONTENT_X_OFFSET = 20
17
+ CONTENT_X_OFFSET = 22
18
18
 
19
19
  def self.render(operations, bounds:, first_y:, family:, size:)
20
20
  # EA's op rows pitch 13 (size + 6), same as attribute
@@ -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,8 +140,8 @@ module Ea
133
140
  else
134
141
  []
135
142
  end
136
- op_lines = if is_classifier && show_operations? && operations_visible?(element)
137
- $stderr.puts "DBG ops: show=#{show_operations?} vis=#{operations_visible?(element)} cls=#{classifier.class} nops=#{classifier.operations.to_a.size}"
143
+ op_lines = if is_classifier && show_operations? &&
144
+ (operations_visible?(element) || regenerated_context?)
138
145
  Element::OperationRenderer.lines_for(classifier)
139
146
  else
140
147
  []
@@ -472,8 +479,7 @@ module Ea
472
479
  # (descendant packages included). Corpus-verified (450
473
480
  # diagrams): ShowForeign=0 renders plain everywhere.
474
481
  def regenerated_context?
475
- diagram.name.to_s.downcase.start_with?("context diagram") &&
476
- diagram.style_ex.to_s !~ /SuppressFOC=1/
482
+ diagram.style_ex.to_s !~ /SuppressFOC=1/
477
483
  end
478
484
 
479
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.65"
7
+ VERSION = "0.6.67"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.65
4
+ version: 0.6.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-08 00:00:00.000000000 Z
11
+ date: 2026-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model