ea 0.6.88 → 0.6.89

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: fbe22f7a331d0a4785835dc942b2c14a1a50d582494d284310b155deb14e95e8
4
- data.tar.gz: 31bca9c2e54461cd2da07d75f92d3db79c0fc610a7ab9eb3a9273cfd9ade56ac
3
+ metadata.gz: bbd238ad74b281cd5cb44ae2df2b49edd56eec8ab0001f8cf1694259a974c385
4
+ data.tar.gz: 978f6880bb2ffa3a9fd308047c62dd21e0869305ea832ac64b91de9f1c8303e9
5
5
  SHA512:
6
- metadata.gz: 48f42070549a8b34e6cf125431675092834b990052e669f56e00ad291b16cf166b7c302d90be870cf440a80f14a5264a6c22191d8aeff15fa91320c10989fc24
7
- data.tar.gz: b83c90fb2b516341ac1ca1621482f9ae1438e339a242170d5cccb6144f6e15eb37188499dbe102697d22843794a349d25980236ef5302abff96d0da7bd8f2efb
6
+ metadata.gz: 44a797e58abb32b6434cb83eec2d84270a6499dc3c8d986a6da1a68da1074982a9217655d20e835bd5fe8812c8780a7a9775a9495d970cf0eb849694b0d6d9d3
7
+ data.tar.gz: 0c410271301a481b5085d7be62a2f45de58eb7fe46cad199e69e0f0f017f7648f4646305f2853ce248c5f6c62979f31c8d7087b7526945234315b8b6b6f63833
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.88"
7
+ VERSION = "0.6.89"
8
8
  end
@@ -89,7 +89,7 @@ module Ea
89
89
  def guidance
90
90
  return unless @guidance
91
91
 
92
- col_name = "#{name_ns}:#{name}"
92
+ col_name = name
93
93
  attr = @guidance["attributes"].find { |a| a["name"] == col_name }
94
94
 
95
95
  attr["guidance"] if attr
@@ -65,8 +65,8 @@ module Ea
65
65
 
66
66
  links.flat_map do |link|
67
67
  link.generalization
68
- .select { |gen| gen.end == @model.xmi_id }
69
- .map(&:id)
68
+ .select { |gen| gen.end == @model.xmi_id }
69
+ .map(&:id)
70
70
  end.compact
71
71
  end
72
72
 
@@ -79,7 +79,7 @@ module Ea
79
79
  ::Ea::Xmi::LiquidDrops::PackageDrop.new(
80
80
  build_uml_package(xmi_pkg),
81
81
  @guidance,
82
- @options.merge(absolute_path: "#{@options[:absolute_path]}::#{name}"),
82
+ @options.merge(absolute_path: "#{@options[:absolute_path]}::#{name}")
83
83
  )
84
84
  end
85
85
 
@@ -104,14 +104,16 @@ module Ea
104
104
  def attributes
105
105
  Array(@model.attributes).filter_map do |owned_attr|
106
106
  if @options[:with_assoc] || owned_attr.association.nil?
107
- ::Ea::Xmi::LiquidDrops::AttributeDrop.new(owned_attr, @options)
107
+ ::Ea::Xmi::LiquidDrops::AttributeDrop
108
+ .new(owned_attr, @options, @klass_guidance)
108
109
  end
109
110
  end
110
111
  end
111
112
 
112
113
  def owned_attributes
113
114
  Array(@model.attributes).filter_map do |owned_attr|
114
- ::Ea::Xmi::LiquidDrops::AttributeDrop.new(owned_attr, @options)
115
+ ::Ea::Xmi::LiquidDrops::AttributeDrop
116
+ .new(owned_attr, @options, @klass_guidance)
115
117
  end
116
118
  end
117
119
 
@@ -153,18 +155,18 @@ module Ea
153
155
  end
154
156
 
155
157
  def generalization
156
- if @options[:with_gen] && @model.generalization
157
- ::Ea::Xmi::LiquidDrops::GeneralizationDrop.new(
158
- @model.generalization, @klass_guidance, @options
159
- )
160
- end
158
+ return unless @options[:with_gen] && @model.generalization
159
+
160
+ ::Ea::Xmi::LiquidDrops::GeneralizationDrop.new(
161
+ @model.generalization, @klass_guidance, @options
162
+ )
161
163
  end
162
164
 
163
165
  def upper_packaged_element
164
- if @options[:with_gen]
165
- e = @lookup.find_upper_level_packaged_element(@model.xmi_id)
166
- e&.name
167
- end
166
+ return unless @options[:with_gen]
167
+
168
+ e = @lookup.find_upper_level_packaged_element(@model.xmi_id)
169
+ e&.name
168
170
  end
169
171
 
170
172
  def subtype_of
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.88
4
+ version: 0.6.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.