ea 0.6.58 → 0.6.59

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: a12e472485a54c35a0c106d0a37d7a79150ebb0bbb10af5db7bbeb9b0e867b67
4
- data.tar.gz: b302520fe830461095652378534edbd8274fffef96c7d7fb2510fb76be4f28c2
3
+ metadata.gz: 03263f382d36467afea7d44447f9b2646a39be885dfe20bf885ff5eb80390525
4
+ data.tar.gz: 81e3720bca00ed478bf1d0d867e843be04b41ce9d44070692c523dc29472a8df
5
5
  SHA512:
6
- metadata.gz: f70f3d29f1c2d3212fc50eb55e6d59c7ed7d94f68e5cf32ff86175f1624cac28f6afc63e07fe061085b05a0159c2a4bc381755e050773d1f18ee6de16b4a74c6
7
- data.tar.gz: 325a978115d3af161986e2c69ee7823e8d2da6645b00f210f3c196a1a604b639e6ef9c7780273a30f19ba1bfc2214e25150bdd69b07121a4aaaa7a381836e65a
6
+ metadata.gz: ab5a2ee3102db43828bb8040a6ee29d08832a4ec44a3ec0ea16569cbd90f06a28eb9782de30bd0a8a8e60e34e88bd4b3d312123ca36a1cb9189162a1671123f7
7
+ data.tar.gz: 8902a964b4fc7d66c26ef56b3afa2a925a8a162ae28aadff9af233a12030f03280cac8f83a506d5be72a4dc82271c79bc091131755306e0f4d16e761d8bf85a5
@@ -251,7 +251,7 @@ module Ea
251
251
  enum_literals_count: enum_literals_count,
252
252
  header_top_padding: header_padding_for(header_lines, classifier),
253
253
  header_line_offset: theme.compartments.header_line_offset,
254
- divider_offset: theme.compartments.divider_offset,
254
+ divider_offset: divider_offset_for(header_lines, classifier),
255
255
  attr_line_offset: theme.compartments.attr_line_offset,
256
256
  attr_first_offset: attr_first_offset_for(attr_lines))
257
257
  end
@@ -262,6 +262,24 @@ module Ea
262
262
  # (+13). Corpus-verified by identity-matched elements:
263
263
  # Interface +13 x44 vs +16 x17, Enumeration +13 x13 vs +16
264
264
  # x3, Class/Object/DataType +16 x515.
265
+ # True Interface-typed elements (fallback «interface» label,
266
+ # no stored stereotype) track the divider at last header + 9
267
+ # instead of +8: 96EFAA3B/936AA434 compartments sit one
268
+ # pixel lower than the class rule, while Class-typed elements
269
+ # carrying an explicit "interface" stereotype keep +8
270
+ # (5EA23C08's CoordinateSet).
271
+ def divider_offset_for(header_lines, classifier)
272
+ first = header_lines.first
273
+ return theme.compartments.divider_offset unless first
274
+
275
+ if classifier.is_a?(Ea::Model::Interface) &&
276
+ fallback_stereotype_label?(first.first, classifier)
277
+ 9
278
+ else
279
+ theme.compartments.divider_offset
280
+ end
281
+ end
282
+
265
283
  def header_padding_for(header_lines, classifier)
266
284
  first = header_lines.first
267
285
  return theme.compartments.header_top_padding unless first
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.58"
7
+ VERSION = "0.6.59"
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.58
4
+ version: 0.6.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.