lutaml-model 0.3.3 → 0.3.5
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 +4 -4
- data/.rubocop_todo.yml +51 -12
- data/README.adoc +317 -57
- data/exe/lutaml-model +7 -0
- data/lib/lutaml/model/cli.rb +131 -0
- data/lib/lutaml/model/comparable_model.rb +528 -0
- data/lib/lutaml/model/comparable_nil.rb +11 -0
- data/lib/lutaml/model/comparison.rb +15 -0
- data/lib/lutaml/model/schema/json_schema.rb +23 -7
- data/lib/lutaml/model/schema/json_schema_parser.rb +91 -0
- data/lib/lutaml/model/schema/relaxng_schema.rb +42 -12
- data/lib/lutaml/model/schema/xsd_schema.rb +29 -11
- data/lib/lutaml/model/schema/yaml_schema.rb +21 -6
- data/lib/lutaml/model/serializable.rb +2 -0
- data/lib/lutaml/model/serialize.rb +44 -12
- data/lib/lutaml/model/type.rb +0 -8
- data/lib/lutaml/model/version.rb +1 -1
- data/lib/lutaml/model/xml_adapter/nokogiri_adapter.rb +10 -2
- data/lib/lutaml/model/xml_adapter/ox_adapter.rb +9 -1
- data/lutaml-model.gemspec +2 -5
- metadata +26 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55348c33e2e23ce7c53c33e588621b8e73df49c5ca4e82e70c8216ad8f0cc6ab
|
4
|
+
data.tar.gz: dd39d10a7f036596de8bce7f154197d446d065c76deee5a0b334522b8bbfdcea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d78508e5cd397bf19c79c4dfba9bb49835945ae6ae83744588bc134c7809988716ea83c2f83485efdf50bf4a31e8be4daafbf6ada78a22dbfa90e14def72ba
|
7
|
+
data.tar.gz: 05005dc4d4e6309913e706f38bf925c0ac77533728b34b89f8a69c901ea728d53bddf163e377ec7638be145ebf7bf7eb77f2d3c3ff078d7e7feb9ad6e52ff14f
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-08-
|
3
|
+
# on 2024-08-17 14:46:05 UTC using RuboCop version 1.64.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
|
@@ -14,60 +14,79 @@ Gemspec/RequireMFA:
|
|
14
14
|
Exclude:
|
15
15
|
- 'lutaml-model.gemspec'
|
16
16
|
|
17
|
-
# Offense count:
|
17
|
+
# Offense count: 77
|
18
18
|
# This cop supports safe autocorrection (--autocorrect).
|
19
19
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
20
20
|
# URISchemes: http, https
|
21
21
|
Layout/LineLength:
|
22
22
|
Exclude:
|
23
|
+
- 'lib/lutaml/model/cli.rb'
|
24
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
23
25
|
- 'lib/lutaml/model/serialize.rb'
|
24
26
|
- 'lib/lutaml/model/type.rb'
|
25
27
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
26
28
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
27
29
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
30
|
+
- 'spec/lutaml/model/comparable_model_spec.rb'
|
28
31
|
- 'spec/lutaml/model/delegation_spec.rb'
|
32
|
+
- 'spec/lutaml/model/schema/json_schema_spec.rb'
|
29
33
|
- 'spec/lutaml/model/serializable_spec.rb'
|
30
34
|
|
31
|
-
# Offense count:
|
35
|
+
# Offense count: 4
|
36
|
+
# Configuration parameters: AllowedMethods.
|
37
|
+
# AllowedMethods: enums
|
38
|
+
Lint/ConstantDefinitionInBlock:
|
39
|
+
Exclude:
|
40
|
+
- 'spec/lutaml/model/schema/json_schema_spec.rb'
|
41
|
+
- 'spec/lutaml/model/schema/relaxng_schema_spec.rb'
|
42
|
+
- 'spec/lutaml/model/schema/xsd_schema_spec.rb'
|
43
|
+
- 'spec/lutaml/model/schema/yaml_schema_spec.rb'
|
44
|
+
|
45
|
+
# Offense count: 31
|
32
46
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
33
47
|
Metrics/AbcSize:
|
34
48
|
Exclude:
|
49
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
50
|
+
- 'lib/lutaml/model/schema/relaxng_schema.rb'
|
51
|
+
- 'lib/lutaml/model/schema/xsd_schema.rb'
|
35
52
|
- 'lib/lutaml/model/serialize.rb'
|
36
53
|
- 'lib/lutaml/model/type.rb'
|
37
54
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
38
55
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
39
56
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
40
57
|
|
41
|
-
# Offense count:
|
58
|
+
# Offense count: 4
|
42
59
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
43
60
|
# AllowedMethods: refine
|
44
61
|
Metrics/BlockLength:
|
45
|
-
Max:
|
62
|
+
Max: 31
|
46
63
|
|
47
|
-
# Offense count:
|
64
|
+
# Offense count: 23
|
48
65
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
49
66
|
Metrics/CyclomaticComplexity:
|
50
67
|
Exclude:
|
68
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
51
69
|
- 'lib/lutaml/model/serialize.rb'
|
52
70
|
- 'lib/lutaml/model/type.rb'
|
53
71
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
54
72
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
55
73
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
56
74
|
|
57
|
-
# Offense count:
|
75
|
+
# Offense count: 38
|
58
76
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
59
77
|
Metrics/MethodLength:
|
60
|
-
Max:
|
78
|
+
Max: 52
|
61
79
|
|
62
80
|
# Offense count: 4
|
63
81
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
64
82
|
Metrics/ParameterLists:
|
65
83
|
Max: 9
|
66
84
|
|
67
|
-
# Offense count:
|
85
|
+
# Offense count: 20
|
68
86
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
69
87
|
Metrics/PerceivedComplexity:
|
70
88
|
Exclude:
|
89
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
71
90
|
- 'lib/lutaml/model/serialize.rb'
|
72
91
|
- 'lib/lutaml/model/type.rb'
|
73
92
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
@@ -83,10 +102,10 @@ RSpec/ContextWording:
|
|
83
102
|
- 'spec/lutaml/model/xml_adapter/oga_adapter_spec.rb'
|
84
103
|
- 'spec/lutaml/model/xml_adapter/ox_adapter_spec.rb'
|
85
104
|
|
86
|
-
# Offense count:
|
105
|
+
# Offense count: 72
|
87
106
|
# Configuration parameters: CountAsOne.
|
88
107
|
RSpec/ExampleLength:
|
89
|
-
Max:
|
108
|
+
Max: 57
|
90
109
|
|
91
110
|
# Offense count: 2
|
92
111
|
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
|
@@ -94,6 +113,14 @@ RSpec/IndexedLet:
|
|
94
113
|
Exclude:
|
95
114
|
- 'spec/address_spec.rb'
|
96
115
|
|
116
|
+
# Offense count: 12
|
117
|
+
RSpec/LeakyConstantDeclaration:
|
118
|
+
Exclude:
|
119
|
+
- 'spec/lutaml/model/schema/json_schema_spec.rb'
|
120
|
+
- 'spec/lutaml/model/schema/relaxng_schema_spec.rb'
|
121
|
+
- 'spec/lutaml/model/schema/xsd_schema_spec.rb'
|
122
|
+
- 'spec/lutaml/model/schema/yaml_schema_spec.rb'
|
123
|
+
|
97
124
|
# Offense count: 4
|
98
125
|
RSpec/MultipleDescribes:
|
99
126
|
Exclude:
|
@@ -102,7 +129,7 @@ RSpec/MultipleDescribes:
|
|
102
129
|
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
103
130
|
- 'spec/lutaml/model/xml_adapter_spec.rb'
|
104
131
|
|
105
|
-
# Offense count:
|
132
|
+
# Offense count: 70
|
106
133
|
RSpec/MultipleExpectations:
|
107
134
|
Max: 15
|
108
135
|
|
@@ -125,3 +152,15 @@ RSpec/SpecFilePathFormat:
|
|
125
152
|
Exclude:
|
126
153
|
- '**/spec/routing/**/*'
|
127
154
|
- 'spec/lutaml/model/collection_spec.rb'
|
155
|
+
|
156
|
+
# Offense count: 1
|
157
|
+
Security/CompoundHash:
|
158
|
+
Exclude:
|
159
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
160
|
+
|
161
|
+
# Offense count: 1
|
162
|
+
# Configuration parameters: AllowedMethods.
|
163
|
+
# AllowedMethods: respond_to_missing?
|
164
|
+
Style/OptionalBooleanParameter:
|
165
|
+
Exclude:
|
166
|
+
- 'lib/lutaml/model/comparable_model.rb'
|