lutaml 0.10.11 → 0.10.12

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: 60815cadb4a74fcb9fcdc3b84a3f6c19b450e5a6f1670d918ffd4d2e66d4a3a5
4
- data.tar.gz: 2e24af4ab233104a171c7cac58a7416e79e5248ce61831d45ba930e44d14685b
3
+ metadata.gz: e6c2a2164de4ea6ec27e076a4724d35d573af91829fa0103fc3e129707597de8
4
+ data.tar.gz: 811651ff02e1b7001d056f70b3f9e96bd52c227a67d9e943134816b3408dc321
5
5
  SHA512:
6
- metadata.gz: 4ebc0be5174ba5dafb1fbda8aa962936d9c8de3b3d909d66844a83f35cf0f353c8131af4d45f945cdd1e9bfdf4975a52b09bbe17a18cf09eae571cc5eb297a83
7
- data.tar.gz: e41165b1694af4e86a4b2373643ec94d6bc6c0a84310c2573ba001ad5dbc278917ba796f9e2a95174fdd1b12607fb68b4fbd487f46032b2a92b8850ff301d3ae
6
+ metadata.gz: '086fe280c4b5555a9e03d3718c5976bfbaaa7dbc9a7d4722fd6557e7779b6a673e372c5ea5e26cf9272c768067a8663672e06a2b3914bc6bbba459568a85faa5'
7
+ data.tar.gz: 49c1c37825b6e3390b696a30584998c29433dd182bb2dfbf733985fc960306913d7ed2706b38959ba9766ec2d6458f2e552180a904fef22d655c409acb276183
data/.rubocop_todo.yml CHANGED
@@ -1,18 +1,33 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-05-11 09:50:12 UTC using RuboCop version 1.86.1.
3
+ # on 2026-05-11 22:46:59 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 154
9
+ # Offense count: 5
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: with_first_argument, with_fixed_indentation
13
+ Layout/ArgumentAlignment:
14
+ Exclude:
15
+ - 'spec/lutaml/xmi/liquid_drops/nil_safety_spec.rb'
16
+
17
+ # Offense count: 159
10
18
  # This cop supports safe autocorrection (--autocorrect).
11
19
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
12
20
  # URISchemes: http, https
13
21
  Layout/LineLength:
14
22
  Enabled: false
15
23
 
24
+ # Offense count: 5
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ # Configuration parameters: AllowInHeredoc.
27
+ Layout/TrailingWhitespace:
28
+ Exclude:
29
+ - 'spec/lutaml/xmi/liquid_drops/nil_safety_spec.rb'
30
+
16
31
  # Offense count: 1
17
32
  Lint/BinaryOperatorWithIdenticalOperands:
18
33
  Exclude:
@@ -112,13 +127,14 @@ Naming/MethodParameterName:
112
127
  - 'lib/lutaml/uml_repository/static_site/generator.rb'
113
128
  - 'spec/lutaml/parsers/serialize_xmi_to_liquid_spec.rb'
114
129
 
115
- # Offense count: 1
130
+ # Offense count: 3
116
131
  # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
117
132
  # AllowedMethods: call
118
133
  # WaywardPredicates: infinite?, nonzero?
119
134
  Naming/PredicateMethod:
120
135
  Exclude:
121
136
  - 'lib/lutaml/qea/factory/document_builder.rb'
137
+ - 'spec/lutaml/xmi/liquid_drops/nil_safety_spec.rb'
122
138
 
123
139
  # Offense count: 3
124
140
  # Configuration parameters: MinSize.
@@ -163,7 +179,7 @@ RSpec/ContextWording:
163
179
  - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
164
180
  - 'spec/lutaml/xml/parsers/xml_spec.rb'
165
181
 
166
- # Offense count: 21
182
+ # Offense count: 22
167
183
  # Configuration parameters: IgnoredMetadata.
168
184
  RSpec/DescribeClass:
169
185
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lutaml
4
- VERSION = "0.10.11"
4
+ VERSION = "0.10.12"
5
5
  end
@@ -20,7 +20,7 @@ module Lutaml
20
20
  end
21
21
 
22
22
  def attributes
23
- @model.attributes.filter_map do |owned_attr|
23
+ Array(@model.attributes).filter_map do |owned_attr|
24
24
  if @options[:with_assoc] || owned_attr.association.nil?
25
25
  ::Lutaml::Xmi::LiquidDrops::AttributeDrop.new(owned_attr,
26
26
  @options)
@@ -29,19 +29,19 @@ module Lutaml
29
29
  end
30
30
 
31
31
  def operations
32
- @model.operations.map do |operation|
32
+ Array(@model.operations).map do |operation|
33
33
  ::Lutaml::Xmi::LiquidDrops::OperationDrop.new(operation)
34
34
  end
35
35
  end
36
36
 
37
37
  def associations
38
- @model.associations.filter_map do |assoc|
38
+ Array(@model.associations).filter_map do |assoc|
39
39
  ::Lutaml::Xmi::LiquidDrops::AssociationDrop.new(assoc, @options)
40
40
  end
41
41
  end
42
42
 
43
43
  def constraints
44
- @model.constraints.map do |constraint|
44
+ Array(@model.constraints).map do |constraint|
45
45
  ::Lutaml::Xmi::LiquidDrops::ConstraintDrop.new(constraint)
46
46
  end
47
47
  end
@@ -19,7 +19,7 @@ module Lutaml
19
19
  end
20
20
 
21
21
  def values
22
- @model.values.map do |value|
22
+ Array(@model.values).map do |value|
23
23
  ::Lutaml::Xmi::LiquidDrops::EnumOwnedLiteralDrop.new(value)
24
24
  end
25
25
  end
@@ -81,7 +81,7 @@ module Lutaml
81
81
  end
82
82
 
83
83
  def attributes
84
- @model.attributes.filter_map do |owned_attr|
84
+ Array(@model.attributes).filter_map do |owned_attr|
85
85
  if @options[:with_assoc] || owned_attr.association.nil?
86
86
  ::Lutaml::Xmi::LiquidDrops::AttributeDrop.new(owned_attr,
87
87
  @options)
@@ -90,44 +90,44 @@ module Lutaml
90
90
  end
91
91
 
92
92
  def owned_attributes
93
- @model.attributes.filter_map do |owned_attr|
93
+ Array(@model.attributes).filter_map do |owned_attr|
94
94
  ::Lutaml::Xmi::LiquidDrops::AttributeDrop.new(owned_attr, @options)
95
95
  end
96
96
  end
97
97
 
98
98
  def suppliers_dependencies
99
- @suppliers_dependencies.filter_map do |dependency|
99
+ Array(@suppliers_dependencies).filter_map do |dependency|
100
100
  ::Lutaml::Xmi::LiquidDrops::DependencyDrop.new(dependency, @options)
101
101
  end
102
102
  end
103
103
 
104
104
  def clients_dependencies
105
- @clients_dependencies.filter_map do |dependency|
105
+ Array(@clients_dependencies).filter_map do |dependency|
106
106
  ::Lutaml::Xmi::LiquidDrops::DependencyDrop.new(dependency, @options)
107
107
  end
108
108
  end
109
109
 
110
110
  def inheritances
111
- @inheritance_ids.filter_map do |inheritance_id|
111
+ Array(@inheritance_ids).filter_map do |inheritance_id|
112
112
  connector = @lookup.fetch_connector(inheritance_id)
113
113
  ::Lutaml::Xmi::LiquidDrops::ConnectorDrop.new(connector, @options)
114
114
  end
115
115
  end
116
116
 
117
117
  def associations
118
- @model.associations.filter_map do |assoc|
118
+ Array(@model.associations).filter_map do |assoc|
119
119
  ::Lutaml::Xmi::LiquidDrops::AssociationDrop.new(assoc, @options)
120
120
  end
121
121
  end
122
122
 
123
123
  def operations
124
- @model.operations.map do |operation|
124
+ Array(@model.operations).map do |operation|
125
125
  ::Lutaml::Xmi::LiquidDrops::OperationDrop.new(operation)
126
126
  end
127
127
  end
128
128
 
129
129
  def constraints
130
- @model.constraints.map do |constraint|
130
+ Array(@model.constraints).map do |constraint|
131
131
  ::Lutaml::Xmi::LiquidDrops::ConstraintDrop.new(constraint)
132
132
  end
133
133
  end
@@ -35,7 +35,7 @@ module Lutaml
35
35
  end
36
36
 
37
37
  def klasses
38
- @model.classes.map do |klass|
38
+ Array(@model.classes).map do |klass|
39
39
  ::Lutaml::Xmi::LiquidDrops::KlassDrop.new(
40
40
  klass,
41
41
  @guidance,
@@ -50,25 +50,25 @@ module Lutaml
50
50
  alias classes klasses
51
51
 
52
52
  def enums
53
- @model.enums.map do |enum|
53
+ Array(@model.enums).map do |enum|
54
54
  ::Lutaml::Xmi::LiquidDrops::EnumDrop.new(enum, @options)
55
55
  end
56
56
  end
57
57
 
58
58
  def data_types
59
- @model.data_types.map do |data_type|
59
+ Array(@model.data_types).map do |data_type|
60
60
  ::Lutaml::Xmi::LiquidDrops::DataTypeDrop.new(data_type, @options)
61
61
  end
62
62
  end
63
63
 
64
64
  def diagrams
65
- @model.diagrams.map do |diagram|
65
+ Array(@model.diagrams).map do |diagram|
66
66
  ::Lutaml::Xmi::LiquidDrops::DiagramDrop.new(diagram, @options)
67
67
  end
68
68
  end
69
69
 
70
70
  def packages
71
- @model.packages.map do |package|
71
+ Array(@model.packages).map do |package|
72
72
  ::Lutaml::Xmi::LiquidDrops::PackageDrop.new(
73
73
  package,
74
74
  @guidance,
@@ -82,7 +82,7 @@ module Lutaml
82
82
  end
83
83
 
84
84
  def children_packages
85
- @model.children_packages.map do |package|
85
+ Array(@model.children_packages).map do |package|
86
86
  ::Lutaml::Xmi::LiquidDrops::PackageDrop.new(
87
87
  package,
88
88
  @guidance,
@@ -19,14 +19,14 @@ module Lutaml
19
19
  end
20
20
 
21
21
  def packages
22
- @model.packages.map do |package|
22
+ Array(@model.packages).map do |package|
23
23
  ::Lutaml::Xmi::LiquidDrops::PackageDrop.new(package, @guidance,
24
24
  @options)
25
25
  end
26
26
  end
27
27
 
28
28
  def children_packages
29
- @model.packages.flat_map(&:children_packages).uniq
29
+ Array(@model.packages).flat_map(&:children_packages).uniq
30
30
  end
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.11
4
+ version: 0.10.12
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-05-11 00:00:00.000000000 Z
11
+ date: 2026-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir