lutaml-model 0.3.8 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +47 -38
- data/README.adoc +323 -65
- data/lib/lutaml/model/attribute.rb +114 -3
- data/lib/lutaml/model/error/collection_count_out_of_range_error.rb +29 -0
- data/lib/lutaml/model/error/validation_error.rb +21 -0
- data/lib/lutaml/model/error.rb +2 -0
- data/lib/lutaml/model/schema_location.rb +59 -0
- data/lib/lutaml/model/serialize.rb +53 -34
- data/lib/lutaml/model/validation.rb +24 -0
- data/lib/lutaml/model/version.rb +1 -1
- data/lib/lutaml/model/xml_adapter/builder/ox.rb +13 -3
- data/lib/lutaml/model/xml_adapter/ox_adapter.rb +3 -0
- data/lib/lutaml/model/xml_adapter/xml_document.rb +26 -14
- data/lib/lutaml/model/xml_mapping.rb +1 -3
- data/lutaml-model.gemspec +2 -0
- metadata +22 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5140f93f22f4b05222edc408aeca50552082e447b71fddd724b34ba9e6b82d55
|
4
|
+
data.tar.gz: 0aa44a3c72b65cca0ed2b7411614d8cdb0c44b4e8293e183935cb45ba7818d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69e4d0d0a3a5bd19e11a43fd33e03566ca035d18cf948a0a2fc5abe5f880489e4a6ad347d8118a04c35c8c95be5b7eb29ca93d426643c7790ab045db2b34721c
|
7
|
+
data.tar.gz: df1699ba6647f53f97735d0986b92bf8f76d6bf44430117406100b257f5934ac4a7baa6a4243bb8384db277ecb975bf64efe2f1a16b293739b245150e800cb15
|
data/.rubocop_todo.yml
CHANGED
@@ -1,40 +1,26 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-
|
3
|
+
# on 2024-09-10 23:53:08 UTC using RuboCop version 1.66.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:
|
10
|
-
# This cop supports safe autocorrection (--autocorrect).
|
11
|
-
# Configuration parameters: Severity, Include.
|
12
|
-
# Include: **/*.gemspec
|
13
|
-
Gemspec/RequireMFA:
|
14
|
-
Exclude:
|
15
|
-
- 'lutaml-model.gemspec'
|
16
|
-
|
17
|
-
# Offense count: 57
|
9
|
+
# Offense count: 88
|
18
10
|
# This cop supports safe autocorrection (--autocorrect).
|
19
11
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
20
12
|
# URISchemes: http, https
|
21
13
|
Layout/LineLength:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
18
|
+
# Configuration parameters: AllowInHeredoc.
|
19
|
+
Layout/TrailingWhitespace:
|
22
20
|
Exclude:
|
23
|
-
- 'lib/lutaml/model/
|
24
|
-
- 'lib/lutaml/model/comparable_model.rb'
|
25
|
-
- 'lib/lutaml/model/serialize.rb'
|
26
|
-
- 'lib/lutaml/model/type.rb'
|
27
|
-
- 'lib/lutaml/model/utils.rb'
|
28
|
-
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
29
|
-
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
30
|
-
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
31
|
-
- 'spec/lutaml/model/comparable_model_spec.rb'
|
32
|
-
- 'spec/lutaml/model/custom_serialization_spec.rb'
|
33
|
-
- 'spec/lutaml/model/delegation_spec.rb'
|
34
|
-
- 'spec/lutaml/model/schema/json_schema_spec.rb'
|
35
|
-
- 'spec/lutaml/model/serializable_spec.rb'
|
21
|
+
- 'lib/lutaml/model/schema_location.rb'
|
36
22
|
|
37
|
-
# Offense count:
|
23
|
+
# Offense count: 11
|
38
24
|
# Configuration parameters: AllowedMethods.
|
39
25
|
# AllowedMethods: enums
|
40
26
|
Lint/ConstantDefinitionInBlock:
|
@@ -43,11 +29,19 @@ Lint/ConstantDefinitionInBlock:
|
|
43
29
|
- 'spec/lutaml/model/schema/relaxng_schema_spec.rb'
|
44
30
|
- 'spec/lutaml/model/schema/xsd_schema_spec.rb'
|
45
31
|
- 'spec/lutaml/model/schema/yaml_schema_spec.rb'
|
32
|
+
- 'spec/lutaml/model/validation_spec.rb'
|
33
|
+
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
46
34
|
|
47
|
-
# Offense count:
|
35
|
+
# Offense count: 1
|
36
|
+
Lint/DuplicateMethods:
|
37
|
+
Exclude:
|
38
|
+
- 'lib/lutaml/model/attribute.rb'
|
39
|
+
|
40
|
+
# Offense count: 31
|
48
41
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
49
42
|
Metrics/AbcSize:
|
50
43
|
Exclude:
|
44
|
+
- 'lib/lutaml/model/attribute.rb'
|
51
45
|
- 'lib/lutaml/model/comparable_model.rb'
|
52
46
|
- 'lib/lutaml/model/schema/relaxng_schema.rb'
|
53
47
|
- 'lib/lutaml/model/schema/xsd_schema.rb'
|
@@ -57,13 +51,13 @@ Metrics/AbcSize:
|
|
57
51
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
58
52
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
59
53
|
|
60
|
-
# Offense count:
|
54
|
+
# Offense count: 6
|
61
55
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
62
56
|
# AllowedMethods: refine
|
63
57
|
Metrics/BlockLength:
|
64
|
-
Max:
|
58
|
+
Max: 42
|
65
59
|
|
66
|
-
# Offense count:
|
60
|
+
# Offense count: 25
|
67
61
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
68
62
|
Metrics/CyclomaticComplexity:
|
69
63
|
Exclude:
|
@@ -75,17 +69,17 @@ Metrics/CyclomaticComplexity:
|
|
75
69
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
76
70
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
77
71
|
|
78
|
-
# Offense count:
|
72
|
+
# Offense count: 39
|
79
73
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
80
74
|
Metrics/MethodLength:
|
81
|
-
Max:
|
75
|
+
Max: 49
|
82
76
|
|
83
77
|
# Offense count: 4
|
84
78
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
85
79
|
Metrics/ParameterLists:
|
86
80
|
Max: 9
|
87
81
|
|
88
|
-
# Offense count:
|
82
|
+
# Offense count: 21
|
89
83
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
90
84
|
Metrics/PerceivedComplexity:
|
91
85
|
Exclude:
|
@@ -96,7 +90,7 @@ Metrics/PerceivedComplexity:
|
|
96
90
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
97
91
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
98
92
|
|
99
|
-
# Offense count:
|
93
|
+
# Offense count: 7
|
100
94
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
101
95
|
# Prefixes: when, with, without
|
102
96
|
RSpec/ContextWording:
|
@@ -104,8 +98,9 @@ RSpec/ContextWording:
|
|
104
98
|
- 'spec/lutaml/model/xml_adapter/nokogiri_adapter_spec.rb'
|
105
99
|
- 'spec/lutaml/model/xml_adapter/oga_adapter_spec.rb'
|
106
100
|
- 'spec/lutaml/model/xml_adapter/ox_adapter_spec.rb'
|
101
|
+
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
107
102
|
|
108
|
-
# Offense count:
|
103
|
+
# Offense count: 101
|
109
104
|
# Configuration parameters: CountAsOne.
|
110
105
|
RSpec/ExampleLength:
|
111
106
|
Max: 57
|
@@ -116,13 +111,15 @@ RSpec/IndexedLet:
|
|
116
111
|
Exclude:
|
117
112
|
- 'spec/address_spec.rb'
|
118
113
|
|
119
|
-
# Offense count:
|
114
|
+
# Offense count: 19
|
120
115
|
RSpec/LeakyConstantDeclaration:
|
121
116
|
Exclude:
|
122
117
|
- 'spec/lutaml/model/schema/json_schema_spec.rb'
|
123
118
|
- 'spec/lutaml/model/schema/relaxng_schema_spec.rb'
|
124
119
|
- 'spec/lutaml/model/schema/xsd_schema_spec.rb'
|
125
120
|
- 'spec/lutaml/model/schema/yaml_schema_spec.rb'
|
121
|
+
- 'spec/lutaml/model/validation_spec.rb'
|
122
|
+
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
126
123
|
|
127
124
|
# Offense count: 4
|
128
125
|
RSpec/MultipleDescribes:
|
@@ -132,22 +129,29 @@ RSpec/MultipleDescribes:
|
|
132
129
|
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
133
130
|
- 'spec/lutaml/model/xml_adapter_spec.rb'
|
134
131
|
|
135
|
-
# Offense count:
|
132
|
+
# Offense count: 88
|
136
133
|
RSpec/MultipleExpectations:
|
137
|
-
Max:
|
134
|
+
Max: 11
|
138
135
|
|
139
|
-
# Offense count:
|
136
|
+
# Offense count: 17
|
140
137
|
# Configuration parameters: AllowSubject.
|
141
138
|
RSpec/MultipleMemoizedHelpers:
|
142
139
|
Max: 9
|
143
140
|
|
144
|
-
# Offense count:
|
141
|
+
# Offense count: 7
|
145
142
|
RSpec/PendingWithoutReason:
|
146
143
|
Exclude:
|
144
|
+
- 'spec/lutaml/model/mixed_content_spec.rb'
|
145
|
+
- 'spec/lutaml/model/validation_spec.rb'
|
147
146
|
- 'spec/lutaml/model/xml_adapter/oga_adapter_spec.rb'
|
148
147
|
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
149
148
|
- 'spec/lutaml/model/xml_adapter_spec.rb'
|
150
149
|
|
150
|
+
# Offense count: 2
|
151
|
+
RSpec/RepeatedExampleGroupDescription:
|
152
|
+
Exclude:
|
153
|
+
- 'spec/lutaml/model/collection_spec.rb'
|
154
|
+
|
151
155
|
# Offense count: 1
|
152
156
|
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
|
153
157
|
# Include: **/*_spec.rb
|
@@ -161,6 +165,11 @@ Security/CompoundHash:
|
|
161
165
|
Exclude:
|
162
166
|
- 'lib/lutaml/model/comparable_model.rb'
|
163
167
|
|
168
|
+
# Offense count: 1
|
169
|
+
Style/MissingRespondToMissing:
|
170
|
+
Exclude:
|
171
|
+
- 'lib/lutaml/model/serialize.rb'
|
172
|
+
|
164
173
|
# Offense count: 1
|
165
174
|
# Configuration parameters: AllowedMethods.
|
166
175
|
# AllowedMethods: respond_to_missing?
|