ea 0.6.74 → 0.6.75

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: b9c1ef6bdc2910e595f6273edf3c1174ad436e97cf1e64fe36eebe987aaae2f9
4
- data.tar.gz: 225f122ba3ad0b656676727487830b8627690a939826bfdc47a8cefd5b3a0e4a
3
+ metadata.gz: 8ed01c20dde26afa762488af94cfc743a2627d863447060bfc45e427665ba441
4
+ data.tar.gz: 16fb60b4b1ff368c628d777d5c964822f1ea7d686b940e873ffafdd0a766f9a3
5
5
  SHA512:
6
- metadata.gz: 6d529c6c5341f735f8bc322b2be5e98d2ef4227aac85c30fe6fe54c1a66ca6f802c921a5bf1615ddef2d89944da8d5e79e7b9550926fe99167561dd7f80fe61a
7
- data.tar.gz: 3f21953290853b36681e25b87332edd9aba7c0de8f40794c83e16dab896658a5a1627026cae8c0e941d4754ff0bb09ca6aab6b207646acb76dde982ad1c7ee4a
6
+ metadata.gz: 4751045cd01f51df9c5646f2f9fb6406f64eb56e448a22167fbe7c3c68c5ec59c4362af94c6482d9e7924e4d181d0d4e0076a8cbe71f5bbb89d67c943863addb
7
+ data.tar.gz: c2a282c40d85667f6b104fd1891487cce5f375ad526022bb2ff82a181d89eb36363acc5dc9a933a318d5a260117030c058c0ec8ea374ca5df114b2dc478eb86d
@@ -121,10 +121,17 @@ module Ea
121
121
  # EA's op block: first row 21 below the last attribute row
122
122
  # (9pt... 7pt: attr_bottom + 21), uniform 13px pitch across
123
123
  # attrs AND ops (6D4C665D: attrs ..520, ops 541..658 step 13).
124
+ # Attribute-empty boxes anchor on the divider instead:
125
+ # first op at divider + 14 (001A64C1: EA ops 104 vs our
126
+ # 125 when attrs were absent).
124
127
  def op_first_y
125
128
  return nil unless op_lines_count&.positive?
126
129
 
127
- attr_bottom_y + size + 14
130
+ if attr_lines_count.to_i.positive?
131
+ attr_bottom_y + size + 14
132
+ else
133
+ divider_y + size + 7
134
+ end
128
135
  end
129
136
 
130
137
  def op_bottom_y
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.74"
7
+ VERSION = "0.6.75"
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.74
4
+ version: 0.6.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.