lutaml-model 0.3.2 → 0.3.4
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 +49 -9
- data/README.adoc +331 -55
- 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 +23 -7
- 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 +4 -2
- data/lib/lutaml/model/xml_adapter/ox_adapter.rb +6 -4
- data/lib/lutaml/model/xml_adapter/xml_document.rb +1 -0
- data/lib/lutaml/model/xml_mapping.rb +6 -6
- 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: d80c5eb43638cf5d690c6c59db2fba76ddb8e2fc7252117a3c7933bc566b2607
|
4
|
+
data.tar.gz: d75c694c330c017500dcceb604aaa889633dadb53c7766a4b6310ee3aef1725e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc9ed09d01c0c19b4038af7de38c3c458f7c200f7b5ae509f4e4cfc2d3abe116ad862168b7d2ffef16e0d5205c67b3a54226b8b826f9859a72ec5d32da00545e
|
7
|
+
data.tar.gz: b4b8348522112cce9236dc7989f30b42df22ac04d6a7459b2fff6ad6c6dc7018d4bd88e97ec9f83ab8b2dcf6d92938d18fcdc882914240d3d53fb16e0ba116d3
|
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-16 11:07:41 UTC using RuboCop version 1.65.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,23 +14,41 @@ Gemspec/RequireMFA:
|
|
14
14
|
Exclude:
|
15
15
|
- 'lutaml-model.gemspec'
|
16
16
|
|
17
|
-
# Offense count:
|
17
|
+
# Offense count: 76
|
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'
|
33
|
+
- 'spec/lutaml/model/serializable_spec.rb'
|
29
34
|
|
30
|
-
# 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
|
31
46
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
32
47
|
Metrics/AbcSize:
|
33
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'
|
34
52
|
- 'lib/lutaml/model/serialize.rb'
|
35
53
|
- 'lib/lutaml/model/type.rb'
|
36
54
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
@@ -43,17 +61,18 @@ Metrics/AbcSize:
|
|
43
61
|
Metrics/BlockLength:
|
44
62
|
Max: 30
|
45
63
|
|
46
|
-
# Offense count:
|
64
|
+
# Offense count: 23
|
47
65
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
48
66
|
Metrics/CyclomaticComplexity:
|
49
67
|
Exclude:
|
68
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
50
69
|
- 'lib/lutaml/model/serialize.rb'
|
51
70
|
- 'lib/lutaml/model/type.rb'
|
52
71
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
53
72
|
- 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
|
54
73
|
- 'lib/lutaml/model/xml_adapter/xml_document.rb'
|
55
74
|
|
56
|
-
# Offense count:
|
75
|
+
# Offense count: 38
|
57
76
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
58
77
|
Metrics/MethodLength:
|
59
78
|
Max: 41
|
@@ -63,10 +82,11 @@ Metrics/MethodLength:
|
|
63
82
|
Metrics/ParameterLists:
|
64
83
|
Max: 9
|
65
84
|
|
66
|
-
# Offense count:
|
85
|
+
# Offense count: 20
|
67
86
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
68
87
|
Metrics/PerceivedComplexity:
|
69
88
|
Exclude:
|
89
|
+
- 'lib/lutaml/model/comparable_model.rb'
|
70
90
|
- 'lib/lutaml/model/serialize.rb'
|
71
91
|
- 'lib/lutaml/model/type.rb'
|
72
92
|
- 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
|
@@ -82,10 +102,10 @@ RSpec/ContextWording:
|
|
82
102
|
- 'spec/lutaml/model/xml_adapter/oga_adapter_spec.rb'
|
83
103
|
- 'spec/lutaml/model/xml_adapter/ox_adapter_spec.rb'
|
84
104
|
|
85
|
-
# Offense count:
|
105
|
+
# Offense count: 70
|
86
106
|
# Configuration parameters: CountAsOne.
|
87
107
|
RSpec/ExampleLength:
|
88
|
-
Max:
|
108
|
+
Max: 57
|
89
109
|
|
90
110
|
# Offense count: 2
|
91
111
|
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
|
@@ -93,6 +113,14 @@ RSpec/IndexedLet:
|
|
93
113
|
Exclude:
|
94
114
|
- 'spec/address_spec.rb'
|
95
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
|
+
|
96
124
|
# Offense count: 4
|
97
125
|
RSpec/MultipleDescribes:
|
98
126
|
Exclude:
|
@@ -101,7 +129,7 @@ RSpec/MultipleDescribes:
|
|
101
129
|
- 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
|
102
130
|
- 'spec/lutaml/model/xml_adapter_spec.rb'
|
103
131
|
|
104
|
-
# Offense count:
|
132
|
+
# Offense count: 69
|
105
133
|
RSpec/MultipleExpectations:
|
106
134
|
Max: 15
|
107
135
|
|
@@ -124,3 +152,15 @@ RSpec/SpecFilePathFormat:
|
|
124
152
|
Exclude:
|
125
153
|
- '**/spec/routing/**/*'
|
126
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'
|