ea 0.6.52 → 0.6.53

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: 592e737c7721bcd03e989dc13572a79c4e8aa53aa654daad717398edb66377ef
4
- data.tar.gz: 351a11a714b03d40859c3ad86000eb22efc9edde45d3bb376961fd0f1cbad44d
3
+ metadata.gz: '007348c214ad1a2ed4226d46e55a528dafcb12d9e4b5eae9e4d3a3e7d13b5c8c'
4
+ data.tar.gz: 7b6af86fe7a76f8661c993b2559345d1538ef5fda6f4fa912f6925be4e4a79f2
5
5
  SHA512:
6
- metadata.gz: e6cdf30f3261579e60f8d72a48b50adf011d4a2afc6398de8edff40ee2eeb701c4a2f605262714fadd19d6e28d2144df3fb7fa51bb04ce4b9306b04beda16df1
7
- data.tar.gz: 0d0cb7de7ad76775de6751904ea3de403d8d645ad3c7acfee0d4394237d0d330846927ba8d720cf7dd5293c44c9c46c3c8c9bd604119962c45dc98ffc34423bb
6
+ metadata.gz: 4b75f8f3f76d3c4433f147c7f9afba023c84f7961e5c901465c6d237a8775817d130596b4c75714d0bc367bc7605e5db1b356bc8bff2d23a45b723e77deaadf3
7
+ data.tar.gz: e6d556ef5bdc04dad2fe196d26114672d7f7b0c9c5e580588279697f3ec5c45538d0fd0729a5847716dd01b98acb64a529aa1d19c38363a99fc307168e5554c6
@@ -33,6 +33,7 @@ module Ea
33
33
  multiplicity_upper_raw: raw_upper(row),
34
34
  multiplicity_upper: parse_upper(row),
35
35
  default_value: row.default,
36
+ is_derived: boolean(row.derived),
36
37
  is_ordered: boolean(row.isordered),
37
38
  is_unique: !boolean(row.allowduplicates),
38
39
  visibility: visibility_from_scope(row.scope),
@@ -64,6 +64,10 @@ module Ea
64
64
  def namespaced_name
65
65
  prefix = inherited_namespace_prefix
66
66
  base = property.name.to_s
67
+ # EA flags derived attributes with a '/' on the NAME (the
68
+ # visibility slot still shows '+'): 096AF2FD/GM_GriddedSurface
69
+ # renders "+ /columns: Integer" / "+ /rows: Integer".
70
+ base = "/#{base}" if property.is_derived
67
71
  prefix && !prefix.empty? ? "#{prefix}::#{base}" : base
68
72
  end
69
73
 
@@ -129,8 +129,11 @@ module Ea
129
129
  foreign_package_name: foreign_package_name_for(classifier),
130
130
  suppress_stereotypes: suppress_stereotypes?) : []
131
131
  is_classifier = classifier.is_a?(Ea::Model::Classifier)
132
+ # Interfaces DO render attribute compartments when they own
133
+ # attribute rows (936AA434/Surface lists its nine 19107
134
+ # attributes); the earlier corpus evidence for
135
+ # header-only interfaces was zero-attribute leaf types.
132
136
  attr_lines = if is_classifier && show_attributes? &&
133
- !classifier.is_a?(Ea::Model::Interface) &&
134
137
  attributes_visible?(element)
135
138
  Element::AttributeRenderer.lines_for(
136
139
  classifier, lookup: attribute_lookup,
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.52"
7
+ VERSION = "0.6.53"
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.52
4
+ version: 0.6.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.