ea 0.6.158 → 0.6.160

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.
data/lib/ea/rules.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ea
4
+ # EA-domain semantic rules shared across input formats (QEA rows and
5
+ # Sparx XMI). Format-specific traversal lives in Qea::Rules.
6
+ module Rules
7
+ autoload :GeneralAttributeMapping, "ea/rules/general_attribute_mapping"
8
+ autoload :Namespacing, "ea/rules/namespacing"
9
+ end
10
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ea
4
+ module Sources
5
+ # Multiplicity-string parsing shared by the QEA and XMI source
6
+ # adapters. EA multiplicity text is "lower..upper", "*" meaning
7
+ # unbounded (parsed as -1); blank or absent text means the
8
+ # multiplicity was never specified (parsed as nil, which renderers
9
+ # use to suppress the label).
10
+ module Multiplicity
11
+ module_function
12
+
13
+ # @param cardinality [String, nil] raw multiplicity text
14
+ # @return [Integer, nil] lower bound, or nil when unspecified
15
+ def lower(cardinality)
16
+ text = raw(cardinality)
17
+ return nil unless text
18
+
19
+ Integer(text.split("..").first, exception: false)
20
+ end
21
+
22
+ # @param cardinality [String, nil] raw multiplicity text
23
+ # @return [Integer, nil] upper bound (-1 unbounded),
24
+ # or nil when unspecified
25
+ def upper(cardinality)
26
+ text = raw(cardinality)
27
+ return nil unless text
28
+
29
+ up = text.split("..").last
30
+ up == "*" ? -1 : Integer(up, exception: false)
31
+ end
32
+
33
+ # @param cardinality [Object] raw value from the source
34
+ # @return [String, nil] stripped text, nil when blank
35
+ def raw(cardinality)
36
+ text = cardinality.to_s.strip
37
+ text.empty? ? nil : text
38
+ end
39
+ end
40
+ end
41
+ end
@@ -72,12 +72,12 @@ module Ea
72
72
  target_id: id_for_object_id(row.end_object_id),
73
73
  source_role_name: row.sourcerole,
74
74
  target_role_name: row.destrole,
75
- source_multiplicity_lower: parse_lower(row.sourcecard),
76
- source_multiplicity_upper: parse_upper(row.sourcecard),
77
- target_multiplicity_lower: parse_lower(row.destcard),
78
- target_multiplicity_upper: parse_upper(row.destcard),
79
- source_multiplicity_raw: raw_card(row.sourcecard),
80
- target_multiplicity_raw: raw_card(row.destcard),
75
+ source_multiplicity_lower: Sources::Multiplicity.lower(row.sourcecard),
76
+ source_multiplicity_upper: Sources::Multiplicity.upper(row.sourcecard),
77
+ target_multiplicity_lower: Sources::Multiplicity.lower(row.destcard),
78
+ target_multiplicity_upper: Sources::Multiplicity.upper(row.destcard),
79
+ source_multiplicity_raw: Sources::Multiplicity.raw(row.sourcecard),
80
+ target_multiplicity_raw: Sources::Multiplicity.raw(row.destcard),
81
81
  source_aggregation: source_aggregation_for(row),
82
82
  target_aggregation: aggregation_from(row.destisaggregate),
83
83
  source_navigable: navigable?(row.sourceisnavigable, row.direction,
@@ -93,40 +93,6 @@ module Ea
93
93
  IdNormalizer.from_guid(obj.ea_guid)
94
94
  end
95
95
 
96
- # Returns nil when cardinality is absent so the renderer can
97
- # distinguish "no multiplicity specified" from an explicit
98
- # "1". EA only renders the "1" label when the modeller set it
99
- # explicitly (SourceCard/DestCard = "1").
100
- # Verbatim cardinality text. Blank cards stay nil so the
101
- # renderer keeps suppressing unspecified multiplicities.
102
- def raw_card(cardinality)
103
- text = cardinality.to_s.strip
104
- text.empty? ? nil : text
105
- end
106
-
107
- def parse_lower(cardinality)
108
- return nil if cardinality.nil? || cardinality.empty?
109
-
110
- begin
111
- Integer(cardinality.split("..").first)
112
- rescue StandardError
113
- nil
114
- end
115
- end
116
-
117
- def parse_upper(cardinality)
118
- return nil if cardinality.nil? || cardinality.empty?
119
-
120
- upper = cardinality.split("..").last
121
- return -1 if upper == "*"
122
-
123
- begin
124
- Integer(upper)
125
- rescue StandardError
126
- nil
127
- end
128
- end
129
-
130
96
  # EA stores the aggregate end in t_connector.SourceIsAggregate/
131
97
  # DestIsAggregate (0 none, 1 shared, 2 composite) — NOT in
132
98
  # DestAccess, which carries the accessibility string
@@ -147,12 +147,12 @@ module Ea
147
147
  target_id: target.idref,
148
148
  source_role_name: source.role&.name,
149
149
  target_role_name: target.role&.name,
150
- source_multiplicity_lower: card_lower(source.type&.multiplicity),
151
- source_multiplicity_upper: card_upper(source.type&.multiplicity),
152
- target_multiplicity_lower: card_lower(target.type&.multiplicity),
153
- target_multiplicity_upper: card_upper(target.type&.multiplicity),
154
- source_multiplicity_raw: raw_card(source.type&.multiplicity),
155
- target_multiplicity_raw: raw_card(target.type&.multiplicity),
150
+ source_multiplicity_lower: Sources::Multiplicity.lower(source.type&.multiplicity),
151
+ source_multiplicity_upper: Sources::Multiplicity.upper(source.type&.multiplicity),
152
+ target_multiplicity_lower: Sources::Multiplicity.lower(target.type&.multiplicity),
153
+ target_multiplicity_upper: Sources::Multiplicity.upper(target.type&.multiplicity),
154
+ source_multiplicity_raw: Sources::Multiplicity.raw(source.type&.multiplicity),
155
+ target_multiplicity_raw: Sources::Multiplicity.raw(target.type&.multiplicity),
156
156
  source_aggregation: source_aggregation(connector),
157
157
  target_aggregation: target.type&.aggregation || "none",
158
158
  source_navigable: navigable?(element.id, :source),
@@ -190,24 +190,6 @@ module Ea
190
190
  }
191
191
  end
192
192
 
193
- def raw_card(cardinality)
194
- text = cardinality.to_s.strip
195
- text.empty? ? nil : text
196
- end
197
-
198
- def card_lower(cardinality)
199
- text = raw_card(cardinality)
200
- Integer(text.split("..").first, exception: false) if text
201
- end
202
-
203
- def card_upper(cardinality)
204
- text = raw_card(cardinality)
205
- return nil unless text
206
-
207
- upper = text.split("..").last
208
- upper == "*" ? -1 : Integer(upper, exception: false)
209
- end
210
-
211
193
  def generalization_args(element)
212
194
  # PackagedElement#generalization is a collection of
213
195
  # AssociationGeneralization rows. The "specific" (child)
data/lib/ea/sources.rb CHANGED
@@ -9,6 +9,7 @@ module Ea
9
9
  # Adapters do not know about each other or about consumer
10
10
  # adapters (Ea::Spa, etc.).
11
11
  module Sources
12
+ autoload :Multiplicity, "ea/sources/multiplicity"
12
13
  autoload :Qea, "ea/sources/qea"
13
14
  autoload :Xmi, "ea/sources/xmi"
14
15
  end
@@ -130,12 +130,23 @@ module Ea
130
130
  end
131
131
 
132
132
  def render_image(image)
133
- svg = Ea::Image::EmfRenderer.render(image.bytes)
133
+ svg = Ea::Image::EmfRenderer.render(blob_for(image))
134
134
  return nil unless svg
135
135
 
136
136
  %(<g>#{svg}</g>)
137
137
  end
138
138
  private :render_image
139
+
140
+ # Blob bytes for one image row. Loaded rows carry their blob;
141
+ # blob-free loads (column-level exclusion at load time) hold
142
+ # metadata only, and the blob is fetched from the QEA file on
143
+ # demand via the database's reopen-per-fetch accessor.
144
+ #
145
+ # @param image [Ea::Qea::Models::EaImage]
146
+ # @return [String, nil] raw blob bytes, or nil when unavailable
147
+ def blob_for(image)
148
+ image.bytes || document.image_blob(image.image_id)
149
+ end
139
150
  end
140
151
  end
141
152
  end
@@ -76,7 +76,7 @@ module Ea
76
76
 
77
77
  def to_svg
78
78
  parts = [" #{body_polygon}", " #{tab_polygon}"]
79
- parts += header_text_blocks if has_label?
79
+ parts += header_text_blocks if label?
80
80
  %(<g style="#{group_style}">\n#{parts.join("\n")}\n</g>)
81
81
  end
82
82
 
@@ -85,11 +85,11 @@ module Ea
85
85
  attr_reader :bounds, :fill, :stroke, :stroke_width, :label,
86
86
  :stereotype, :family, :size, :size_unit, :text_fill
87
87
 
88
- def has_label?
88
+ def label?
89
89
  label && !label.empty?
90
90
  end
91
91
 
92
- def has_stereotype?
92
+ def stereotype?
93
93
  stereotype && !stereotype.empty?
94
94
  end
95
95
 
@@ -110,7 +110,7 @@ module Ea
110
110
 
111
111
  def header_text_blocks
112
112
  blocks = []
113
- if has_stereotype?
113
+ if stereotype?
114
114
  blocks << " #{text_at(label_x, stereotype_y, "«#{stereotype}»", weight: 0)}"
115
115
  blocks << " #{text_at(label_x, name_y, label, weight: 700)}"
116
116
  else
@@ -798,7 +798,7 @@ module Ea
798
798
  # actual content below (attributes, operations, literals, or
799
799
  # tagged values). Classes with only a header (no displayed
800
800
  # features) omit the divider entirely.
801
- def has_content_below_header?(attr_lines, op_lines, enum_literals, tagged_values = [])
801
+ def content_below_header?(attr_lines, op_lines, enum_literals, tagged_values = [])
802
802
  !attr_lines.empty? || !op_lines.empty? || enum_literals.any? || tagged_values.any?
803
803
  end
804
804
 
@@ -472,7 +472,9 @@ module Ea
472
472
  # ---- Children of a classifier ------------------------------------
473
473
 
474
474
  def generalizations_for(obj)
475
- inheritance_connectors(obj, "Generalization")
475
+ Qea::Rules::Generalization
476
+ .connectors_from(obj.ea_object_id,
477
+ @context.connectors_for(obj.ea_object_id))
476
478
  .filter_map { |conn| build_generalization(conn) }
477
479
  end
478
480
 
@@ -749,12 +751,6 @@ module Ea
749
751
  value == "in" ? nil : value
750
752
  end
751
753
 
752
- def inheritance_connectors(obj, type)
753
- @context.connectors_for(obj.ea_object_id).select do |conn|
754
- conn.start_object_id == obj.ea_object_id && conn.connector_type == type
755
- end
756
- end
757
-
758
754
  # Realization connectors owned by this class — those where
759
755
  # this object is the source (client). Each emits an
760
756
  # `<interfaceRealization>`. Matched via the model predicate so
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.158"
7
+ VERSION = "0.6.160"
8
8
  end
@@ -45,8 +45,8 @@ module Ea
45
45
  end
46
46
 
47
47
  def recognized?
48
- !!@id_name_mapping[@model.source.idref] &&
49
- !!@id_name_mapping[@model.target.idref]
48
+ !@id_name_mapping[@model.source.idref].nil? &&
49
+ !@id_name_mapping[@model.target.idref].nil?
50
50
  end
51
51
  end
52
52
  end
data/lib/ea/xmi/parser.rb CHANGED
@@ -125,7 +125,7 @@ module Ea
125
125
  @pkg_elements_owned_attributes[id]
126
126
  end
127
127
 
128
- def find_subtype_of_from_generalization(id) # :CyclomaticComplexity,Metrics:MethodLength,Metrics:PerceivedComplexity
128
+ def find_subtype_of_from_generalization(id)
129
129
  matched_element = xmi_index.find_element(id)
130
130
  return unless matched_element&.links&.any?
131
131
 
@@ -381,7 +381,7 @@ module Ea
381
381
  end
382
382
  end
383
383
 
384
- def build_class(klass) # :CyclomaticComplexity,Metrics:PerceivedComplexity
384
+ def build_class(klass)
385
385
  ::Lutaml::Uml::UmlClass.new.tap do |k|
386
386
  k.xmi_id = klass.id
387
387
  k.name = klass.name
@@ -401,7 +401,7 @@ module Ea
401
401
  end
402
402
  end
403
403
 
404
- def build_enums(package) # :MethodLength,Metrics:AbcSize
404
+ def build_enums(package)
405
405
  return [] if package.packaged_element.nil?
406
406
 
407
407
  package.packaged_element
@@ -418,7 +418,7 @@ module Ea
418
418
  end
419
419
  end
420
420
 
421
- def build_data_types(package) # :AbcSize,Metrics:MethodLength
421
+ def build_data_types(package)
422
422
  return [] if package.packaged_element.nil?
423
423
 
424
424
  package.packaged_element
@@ -447,7 +447,7 @@ module Ea
447
447
  end
448
448
  end
449
449
 
450
- def build_diagrams(node_id) # :AbcSize,Metrics:MethodLength
450
+ def build_diagrams(node_id)
451
451
  return [] if @xmi_root_model.extension&.diagrams&.diagram.nil?
452
452
 
453
453
  diagram_lookup[node_id].map do |diagram|
@@ -465,14 +465,14 @@ module Ea
465
465
  end
466
466
  end
467
467
 
468
- def build_class_attributes(klass) # :AbcSize,Metrics:CyclomaticComplexity,Metrics:MethodLength
468
+ def build_class_attributes(klass)
469
469
  return [] if klass.owned_attribute.nil?
470
470
 
471
471
  all_props = klass.owned_attribute.select { |attr| attr.type?("uml:Property") }
472
472
  all_props.filter_map { |oa| build_attribute(oa) }
473
473
  end
474
474
 
475
- def build_attribute(owned_attr) # :AbcSize,Metrics:MethodLength
475
+ def build_attribute(owned_attr)
476
476
  uml_type = owned_attr.uml_type
477
477
  uml_type_idref = uml_type.idref if uml_type
478
478
 
@@ -496,7 +496,7 @@ module Ea
496
496
  end
497
497
  end
498
498
 
499
- def build_associations(xmi_id) # :AbcSize,Metrics:CyclomaticComplexity,Metrics:MethodLength,Metrics:PerceivedComplexity
499
+ def build_associations(xmi_id)
500
500
  matched_element = xmi_index&.find_element(xmi_id)
501
501
  return if !matched_element || !matched_element.links
502
502
 
@@ -510,7 +510,7 @@ module Ea
510
510
  end
511
511
  end
512
512
 
513
- def build_association(assoc, xmi_id) # :AbcSize,Metrics:CyclomaticComplexity,Metrics:MethodLength
513
+ def build_association(assoc, xmi_id)
514
514
  link_member = assoc.start == xmi_id ? "end" : "start"
515
515
  link_owner = link_member == "start" ? "end" : "start"
516
516
 
@@ -551,7 +551,7 @@ module Ea
551
551
  end
552
552
  end
553
553
 
554
- def build_operations(klass) # :MethodLength,Metrics:AbcSize
554
+ def build_operations(klass)
555
555
  return [] if klass.owned_operation.nil?
556
556
 
557
557
  klass.owned_operation.filter_map do |operation|
@@ -569,7 +569,7 @@ module Ea
569
569
  end
570
570
  end
571
571
 
572
- def build_constraints(klass_id) # :MethodLength,Metrics:AbcSize
572
+ def build_constraints(klass_id)
573
573
  connector_node = fetch_connector(klass_id)
574
574
  return [] if connector_node.nil?
575
575
 
@@ -587,7 +587,7 @@ module Ea
587
587
  end
588
588
  end
589
589
 
590
- def build_values(enum) # :MethodLength,Metrics:CyclomaticComplexity,Metrics:AbcSize
590
+ def build_values(enum)
591
591
  return [] if enum.owned_literal.nil?
592
592
 
593
593
  enum.owned_literal
@@ -607,7 +607,7 @@ module Ea
607
607
 
608
608
  # --- Generalization building ---
609
609
 
610
- def build_generalization(klass) # :AbcSize,Metrics:MethodLength,Metrics:CyclomaticComplexity,Metrics:PerceivedComplexity
610
+ def build_generalization(klass)
611
611
  uml_general_obj, next_general_node_id = get_uml_general(klass.id)
612
612
  return uml_general_obj unless next_general_node_id
613
613
 
@@ -626,21 +626,15 @@ module Ea
626
626
  uml_general_obj
627
627
  end
628
628
 
629
- def build_generalization_attributes(uml_general_obj) # :AbcSize,Metrics:MethodLength
629
+ def build_generalization_attributes(uml_general_obj)
630
630
  upper_klass = uml_general_obj.general_upper_klass
631
631
  gen_attrs = uml_general_obj.general_attributes
632
632
  gen_name = uml_general_obj.general_name
633
633
 
634
634
  gen_attrs&.each do |i|
635
- name_ns = case i.type_ns
636
- when "core", "gml"
637
- upper_klass
638
- else
639
- i.type_ns
640
- end
641
- name_ns = upper_klass if name_ns.nil?
642
-
643
- i.name_ns = name_ns
635
+ i.name_ns = Ea::Rules::Namespacing.resolve_name_ns(
636
+ i.type_ns, upper_klass
637
+ )
644
638
  i.gen_name = gen_name
645
639
  i.name = "" if i.name.nil?
646
640
  end
@@ -648,7 +642,7 @@ module Ea
648
642
  gen_attrs
649
643
  end
650
644
 
651
- def get_uml_general(general_id) # :AbcSize,Metrics:MethodLength
645
+ def get_uml_general(general_id)
652
646
  general_node = find_packaged_element_by_id(general_id)
653
647
  return [] unless general_node
654
648
 
@@ -704,22 +698,21 @@ module Ea
704
698
  uml_general.assoc_props = uml_general.attributes.select(&:association)
705
699
  end
706
700
 
707
- def get_uml_general_attributes(general_node) # :AbcSize,Metrics:MethodLength
701
+ def get_uml_general_attributes(general_node)
708
702
  attrs = build_class_attributes(general_node)
709
703
 
710
704
  attrs.map do |attr|
711
- ::Lutaml::Uml::GeneralAttribute.new.tap do |gen_attr|
712
- gen_attr.id = attr.id
713
- gen_attr.name = attr.name
714
- gen_attr.type = attr.type
715
- gen_attr.xmi_id = attr.xmi_id
716
- gen_attr.is_derived = !!attr.is_derived
717
- gen_attr.cardinality = attr.cardinality
718
- gen_attr.definition = get_uml_general_attribute_definition(attr)
719
- gen_attr.association = attr.association
720
- gen_attr.has_association = !!attr.association
721
- gen_attr.type_ns = attr.type_ns
722
- end
705
+ Ea::Rules::GeneralAttributeMapping.build(
706
+ id: attr.id,
707
+ name: attr.name,
708
+ type: attr.type,
709
+ xmi_id: attr.xmi_id,
710
+ cardinality: attr.cardinality,
711
+ definition: get_uml_general_attribute_definition(attr),
712
+ association: attr.association,
713
+ type_ns: attr.type_ns,
714
+ is_derived: attr.is_derived
715
+ )
723
716
  end
724
717
  end
725
718
 
@@ -742,7 +735,7 @@ module Ea
742
735
  uml_general_obj
743
736
  end
744
737
 
745
- def loop_general_item( # :MethodLength,Metrics:AbcSize,Metrics:PerceivedComplexity,Metrics:CyclomaticComplexity
738
+ def loop_general_item(
746
739
  general_item, level, inherited_props, inherited_assoc_props
747
740
  )
748
741
  gen_upper_klass = general_item.general_upper_klass
@@ -768,7 +761,7 @@ module Ea
768
761
  )
769
762
  end
770
763
 
771
- def build_assoc_generalizations(klass) # :AbcSize
764
+ def build_assoc_generalizations(klass)
772
765
  return [] if klass.generalization.nil? || klass.generalization.empty?
773
766
 
774
767
  klass.generalization.map do |gen|
@@ -795,7 +788,7 @@ module Ea
795
788
  lookup_entity_name(xmi_id) || connector_source_name(xmi_id)
796
789
  end
797
790
 
798
- def serialize_member_end(owner_xmi_id, link) # :MethodLength,Metrics:AbcSize,Metrics:CyclomaticComplexity
791
+ def serialize_member_end(owner_xmi_id, link)
799
792
  case link.name
800
793
  when "NoteLink"
801
794
  return
@@ -819,7 +812,7 @@ module Ea
819
812
  [member_end, member_end_type, xmi_id]
820
813
  end
821
814
 
822
- def member_end_name(xmi_id, source_or_target, link) # :MethodLength
815
+ def member_end_name(xmi_id, source_or_target, link)
823
816
  connector_label = connector_labels(xmi_id, source_or_target)
824
817
  entity_name = lookup_entity_name(xmi_id)
825
818
  connector_name = connector_name_by_source_or_target(xmi_id, source_or_target)
@@ -832,7 +825,7 @@ module Ea
832
825
  end
833
826
  end
834
827
 
835
- def serialize_member_type(owner_xmi_id, link, link_member_name) # :MethodLength,Metrics:AbcSize
828
+ def serialize_member_type(owner_xmi_id, link, link_member_name)
836
829
  member_end, member_end_type, xmi_id =
837
830
  serialize_member_end(owner_xmi_id, link)
838
831
 
@@ -883,7 +876,7 @@ module Ea
883
876
  assoc_connector.role ? assoc_connector.model.name : nil
884
877
  end
885
878
 
886
- def generalization_association(owner_xmi_id, link) # :MethodLength
879
+ def generalization_association(owner_xmi_id, link)
887
880
  member_end_type = "generalization"
888
881
  xmi_id = link.start
889
882
  source_or_target = :source
@@ -900,7 +893,7 @@ module Ea
900
893
 
901
894
  def fetch_owned_attribute_node(xmi_id)
902
895
  oa = xmi_index.find_owned_attrs_by_type(xmi_id)
903
- .find { |a| !!a.association }
896
+ .find { |a| !a.association.nil? }
904
897
 
905
898
  if oa
906
899
  cardinality = cardinality_min_max_value(
@@ -966,7 +959,7 @@ module Ea
966
959
  connector_lookup[[source_or_target.to_sym, xmi_id]]
967
960
  end
968
961
 
969
- def connector_name_by_source_or_target(xmi_id, source_or_target) # :AbcSize
962
+ def connector_name_by_source_or_target(xmi_id, source_or_target)
970
963
  node = connector_node_by_id(xmi_id, source_or_target)
971
964
  return node.name if node&.name
972
965
 
@@ -996,7 +989,7 @@ module Ea
996
989
  iterate_tree(items, model, type, method.to_sym)
997
990
  end
998
991
 
999
- def iterate_tree(result, node, type, children_method) # :AbcSize,Metrics:CyclomaticComplexity,Metrics:PerceivedComplexity
992
+ def iterate_tree(result, node, type, children_method)
1000
993
  result << node if type.nil? || node.type == type
1001
994
  return unless node.public_send(children_method)
1002
995
 
data/lib/ea.rb CHANGED
@@ -9,6 +9,7 @@ module Ea
9
9
  class Error < StandardError; end
10
10
 
11
11
  autoload :Qea, "ea/qea"
12
+ autoload :Rules, "ea/rules"
12
13
  autoload :Model, "ea/model"
13
14
  autoload :Sources, "ea/sources"
14
15
  autoload :Spa, "ea/spa"
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.158
4
+ version: 0.6.160
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-11-25 00:00:00.000000000 Z
11
+ date: 2026-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: lutaml-path
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubyzip
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '2.10'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '2.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: liquid
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -126,30 +126,30 @@ dependencies:
126
126
  name: benchmark
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '0.5'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '0.5'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: lutaml-uml
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '1.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: '1.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -435,11 +435,15 @@ files:
435
435
  - lib/ea/render.rb
436
436
  - lib/ea/render/image_converter.rb
437
437
  - lib/ea/rtf.rb
438
+ - lib/ea/rules.rb
439
+ - lib/ea/rules/general_attribute_mapping.rb
440
+ - lib/ea/rules/namespacing.rb
438
441
  - lib/ea/shapescript.rb
439
442
  - lib/ea/shapescript/parser.rb
440
443
  - lib/ea/shapescript/renderer.rb
441
444
  - lib/ea/shapescript/shape.rb
442
445
  - lib/ea/sources.rb
446
+ - lib/ea/sources/multiplicity.rb
443
447
  - lib/ea/sources/qea.rb
444
448
  - lib/ea/sources/qea/adapter.rb
445
449
  - lib/ea/sources/qea/annotation_builder.rb