lutaml-model 0.6.7 → 0.7.2

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.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/dependent-repos-todo.json +7 -0
  3. data/.github/workflows/dependent-repos.json +17 -9
  4. data/.rubocop.yml +1 -1
  5. data/.rubocop_todo.yml +51 -65
  6. data/Gemfile +4 -1
  7. data/README.adoc +5083 -2612
  8. data/RELEASE_NOTES.adoc +346 -0
  9. data/docs/custom_adapters.adoc +144 -0
  10. data/lib/lutaml/model/attribute.rb +101 -16
  11. data/lib/lutaml/model/choice.rb +7 -0
  12. data/lib/lutaml/model/comparable_model.rb +48 -9
  13. data/lib/lutaml/model/config.rb +48 -42
  14. data/lib/lutaml/model/error/collection_count_out_of_range_error.rb +1 -1
  15. data/lib/lutaml/model/error/polymorphic_error.rb +14 -0
  16. data/lib/lutaml/model/error.rb +1 -0
  17. data/lib/lutaml/model/format_registry.rb +41 -0
  18. data/lib/lutaml/model/hash/document.rb +11 -0
  19. data/lib/lutaml/model/hash/mapping.rb +19 -0
  20. data/lib/lutaml/model/hash/mapping_rule.rb +9 -0
  21. data/lib/lutaml/model/hash/standard_adapter.rb +17 -0
  22. data/lib/lutaml/model/hash/transform.rb +8 -0
  23. data/lib/lutaml/model/hash.rb +21 -0
  24. data/lib/lutaml/model/json/document.rb +11 -0
  25. data/lib/lutaml/model/json/mapping.rb +19 -0
  26. data/lib/lutaml/model/json/mapping_rule.rb +9 -0
  27. data/lib/lutaml/model/{json_adapter → json}/multi_json_adapter.rb +4 -5
  28. data/lib/lutaml/model/{json_adapter/standard_json_adapter.rb → json/standard_adapter.rb} +5 -3
  29. data/lib/lutaml/model/json/transform.rb +8 -0
  30. data/lib/lutaml/model/json.rb +21 -0
  31. data/lib/lutaml/model/key_value_document.rb +27 -0
  32. data/lib/lutaml/model/{key_value_mapping.rb → mapping/key_value_mapping.rb} +64 -16
  33. data/lib/lutaml/model/{key_value_mapping_rule.rb → mapping/key_value_mapping_rule.rb} +18 -2
  34. data/lib/lutaml/model/mapping/mapping.rb +13 -0
  35. data/lib/lutaml/model/mapping/mapping_rule.rb +300 -0
  36. data/lib/lutaml/model/schema/xml_compiler.rb +15 -15
  37. data/lib/lutaml/model/sequence.rb +2 -2
  38. data/lib/lutaml/model/serialization_adapter.rb +22 -0
  39. data/lib/lutaml/model/serialize.rb +219 -444
  40. data/lib/lutaml/model/services/logger.rb +54 -0
  41. data/lib/lutaml/model/services/transformer.rb +48 -0
  42. data/lib/lutaml/model/services.rb +2 -0
  43. data/lib/lutaml/model/toml/document.rb +11 -0
  44. data/lib/lutaml/model/toml/mapping.rb +27 -0
  45. data/lib/lutaml/model/toml/mapping_rule.rb +9 -0
  46. data/lib/lutaml/model/{toml_adapter → toml}/toml_rb_adapter.rb +3 -3
  47. data/lib/lutaml/model/toml/tomlib_adapter.rb +19 -0
  48. data/lib/lutaml/model/toml/transform.rb +8 -0
  49. data/lib/lutaml/model/toml.rb +30 -0
  50. data/lib/lutaml/model/transform/key_value_transform.rb +291 -0
  51. data/lib/lutaml/model/transform/xml_transform.rb +239 -0
  52. data/lib/lutaml/model/transform.rb +78 -0
  53. data/lib/lutaml/model/type/date.rb +1 -1
  54. data/lib/lutaml/model/type/date_time.rb +2 -2
  55. data/lib/lutaml/model/type/hash.rb +1 -1
  56. data/lib/lutaml/model/type/time.rb +2 -2
  57. data/lib/lutaml/model/type/time_without_date.rb +2 -2
  58. data/lib/lutaml/model/type/value.rb +6 -9
  59. data/lib/lutaml/model/uninitialized_class.rb +64 -0
  60. data/lib/lutaml/model/utils.rb +44 -0
  61. data/lib/lutaml/model/validation.rb +1 -0
  62. data/lib/lutaml/model/version.rb +1 -1
  63. data/lib/lutaml/model/{xml_adapter → xml}/builder/nokogiri.rb +2 -2
  64. data/lib/lutaml/model/{xml_adapter → xml}/builder/oga.rb +10 -10
  65. data/lib/lutaml/model/{xml_adapter → xml}/builder/ox.rb +1 -1
  66. data/lib/lutaml/model/{xml_adapter/xml_document.rb → xml/document.rb} +41 -21
  67. data/lib/lutaml/model/xml/element.rb +32 -0
  68. data/lib/lutaml/model/xml/mapping.rb +410 -0
  69. data/lib/lutaml/model/xml/mapping_rule.rb +141 -0
  70. data/lib/lutaml/model/xml/nokogiri_adapter.rb +232 -0
  71. data/lib/lutaml/model/{xml_adapter → xml}/oga/document.rb +1 -1
  72. data/lib/lutaml/model/{xml_adapter → xml}/oga/element.rb +3 -1
  73. data/lib/lutaml/model/xml/oga_adapter.rb +171 -0
  74. data/lib/lutaml/model/xml/ox_adapter.rb +215 -0
  75. data/lib/lutaml/model/xml/transform.rb +8 -0
  76. data/lib/lutaml/model/{xml_adapter → xml}/xml_attribute.rb +1 -1
  77. data/lib/lutaml/model/{xml_adapter → xml}/xml_element.rb +23 -10
  78. data/lib/lutaml/model/{xml_adapter → xml}/xml_namespace.rb +1 -1
  79. data/lib/lutaml/model/xml.rb +31 -0
  80. data/lib/lutaml/model/xml_adapter/element.rb +11 -25
  81. data/lib/lutaml/model/xml_adapter/nokogiri_adapter.rb +6 -223
  82. data/lib/lutaml/model/xml_adapter/oga_adapter.rb +13 -163
  83. data/lib/lutaml/model/xml_adapter/ox_adapter.rb +10 -207
  84. data/lib/lutaml/model/yaml/document.rb +10 -0
  85. data/lib/lutaml/model/yaml/mapping.rb +19 -0
  86. data/lib/lutaml/model/yaml/mapping_rule.rb +9 -0
  87. data/lib/lutaml/model/{yaml_adapter/standard_yaml_adapter.rb → yaml/standard_adapter.rb} +4 -3
  88. data/lib/lutaml/model/yaml/transform.rb +8 -0
  89. data/lib/lutaml/model/yaml.rb +21 -0
  90. data/lib/lutaml/model.rb +40 -4
  91. data/lutaml-model.gemspec +0 -4
  92. data/spec/benchmarks/xml_parsing_benchmark_spec.rb +7 -7
  93. data/spec/fixtures/person.rb +5 -5
  94. data/spec/lutaml/model/attribute_spec.rb +37 -1
  95. data/spec/lutaml/model/cdata_spec.rb +9 -9
  96. data/spec/lutaml/model/collection_spec.rb +50 -2
  97. data/spec/lutaml/model/comparable_model_spec.rb +92 -27
  98. data/spec/lutaml/model/custom_bibtex_adapter_spec.rb +598 -0
  99. data/spec/lutaml/model/custom_vobject_adapter_spec.rb +1226 -0
  100. data/spec/lutaml/model/defaults_spec.rb +1 -1
  101. data/spec/lutaml/model/enum_spec.rb +1 -1
  102. data/spec/lutaml/model/group_spec.rb +333 -20
  103. data/spec/lutaml/model/hash/adapter_spec.rb +255 -0
  104. data/spec/lutaml/model/json_adapter_spec.rb +6 -6
  105. data/spec/lutaml/model/key_value_mapping_spec.rb +65 -3
  106. data/spec/lutaml/model/mixed_content_spec.rb +24 -24
  107. data/spec/lutaml/model/multiple_mapping_spec.rb +5 -5
  108. data/spec/lutaml/model/ordered_content_spec.rb +6 -6
  109. data/spec/lutaml/model/polymorphic_spec.rb +526 -0
  110. data/spec/lutaml/model/render_empty_spec.rb +194 -0
  111. data/spec/lutaml/model/render_nil_spec.rb +206 -22
  112. data/spec/lutaml/model/root_mappings_spec.rb +3 -3
  113. data/spec/lutaml/model/schema/xml_compiler_spec.rb +6 -6
  114. data/spec/lutaml/model/serializable_spec.rb +179 -103
  115. data/spec/lutaml/model/simple_model_spec.rb +9 -9
  116. data/spec/lutaml/model/toml_adapter_spec.rb +6 -6
  117. data/spec/lutaml/model/toml_spec.rb +51 -0
  118. data/spec/lutaml/model/transformation_spec.rb +72 -15
  119. data/spec/lutaml/model/uninitialized_class_spec.rb +96 -0
  120. data/spec/lutaml/model/value_map_spec.rb +240 -0
  121. data/spec/lutaml/model/xml/namespace/nested_with_explicit_namespace_spec.rb +85 -0
  122. data/spec/lutaml/model/xml/namespace_spec.rb +57 -0
  123. data/spec/lutaml/model/xml/xml_element_spec.rb +93 -0
  124. data/spec/lutaml/model/xml_adapter/nokogiri_adapter_spec.rb +2 -2
  125. data/spec/lutaml/model/xml_adapter/oga_adapter_spec.rb +2 -2
  126. data/spec/lutaml/model/xml_adapter/ox_adapter_spec.rb +2 -2
  127. data/spec/lutaml/model/xml_adapter/xml_namespace_spec.rb +6 -6
  128. data/spec/lutaml/model/xml_adapter_spec.rb +6 -6
  129. data/spec/lutaml/model/xml_mapping_rule_spec.rb +105 -5
  130. data/spec/lutaml/model/xml_mapping_spec.rb +70 -16
  131. data/spec/lutaml/model/xml_spec.rb +63 -0
  132. data/spec/lutaml/model/yaml_adapter_spec.rb +3 -5
  133. data/spec/sample_model_spec.rb +3 -3
  134. data/spec/spec_helper.rb +3 -3
  135. metadata +76 -59
  136. data/lib/lutaml/model/json_adapter/json_document.rb +0 -20
  137. data/lib/lutaml/model/json_adapter/json_object.rb +0 -28
  138. data/lib/lutaml/model/loggable.rb +0 -15
  139. data/lib/lutaml/model/mapping_rule.rb +0 -109
  140. data/lib/lutaml/model/toml_adapter/toml_document.rb +0 -20
  141. data/lib/lutaml/model/toml_adapter/toml_object.rb +0 -28
  142. data/lib/lutaml/model/toml_adapter/tomlib_adapter.rb +0 -20
  143. data/lib/lutaml/model/toml_adapter.rb +0 -6
  144. data/lib/lutaml/model/xml_mapping.rb +0 -307
  145. data/lib/lutaml/model/xml_mapping_rule.rb +0 -122
  146. data/lib/lutaml/model/yaml_adapter/yaml_document.rb +0 -20
  147. data/lib/lutaml/model/yaml_adapter/yaml_object.rb +0 -28
  148. data/lib/lutaml/model/yaml_adapter.rb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da09d917512e0b5f82b847627920cb874b9bf4506ef568d95b45dd26aefef054
4
- data.tar.gz: c31a188213089b94d752ba6e679ba8ac80f33c9f8e4f36f5bffddebf949b4a10
3
+ metadata.gz: 234ef6d280e81a6527940901d3d94331e167f31e76cb561c3f545cc8648ce59c
4
+ data.tar.gz: d024bcf90be223bf51c10023332258bc7bfbc1c12262faf93f77bb2feab7e8b3
5
5
  SHA512:
6
- metadata.gz: 4b3f701841e4ac8d6b76f1afb7cccf1e2476200e9842ab1c5f3c664b4ec064f79831886963b0b7436ea16a8944158d7d50abe7a1e29b786e08486ad0fb2a0e10
7
- data.tar.gz: c2c4ddb8166ccde0274acc9f38ba36a2058de7b3fc61c88ab82cc8f29cbc046d43e6844da874367720d59b4c35553a9cb5adccbfd17429a1be52a8f623f96992
6
+ metadata.gz: d3a708abec96f64e50126d5b09472ab967c4a70e8ac6e3b6445bf256d5d91d66ee9735bda98c065b94ff09c46ece7e8bfd51f19c13232369880f551858cffc36
7
+ data.tar.gz: 1cdb62a88e31bb3156c6446529686bb68f27476b32aaf20559b6f97c4188b90000ad8109a3ee9d02b04b8cc0f47b1d18cb474f022e6f511bf7bdd484206f4d46
@@ -0,0 +1,7 @@
1
+ {
2
+ "repo": [
3
+ "lutaml/ali",
4
+ "lutaml/oasis-etm",
5
+ "lutaml/reqif"
6
+ ]
7
+ }
@@ -1,17 +1,25 @@
1
1
  {
2
2
  "repo": [
3
+ "glossarist/glossarist-ruby",
4
+ "glossarist/iev",
5
+ "glossarist/termium",
3
6
  "lutaml/genericode",
7
+ "lutaml/lutaml-xsd",
8
+ "lutaml/metaschema",
4
9
  "lutaml/ogc-gml",
10
+ "lutaml/xmi",
11
+ "metanorma/atmospheric",
12
+ "metanorma/metanorma-cli",
5
13
  "metanorma/modspec-ruby",
6
- "metanorma/rfcxml",
7
14
  "metanorma/niso-jats",
15
+ "metanorma/revix",
16
+ "metanorma/rfcxml",
8
17
  "metanorma/sts-ruby",
9
- "lutaml/metaschema",
10
- "glossarist/termium",
11
- "glossarist/glossarist-ruby",
12
- "lutaml/oasis-etm",
13
- "lutaml/ali",
14
- "lutaml/reqif",
15
- "lutaml/lutaml-xsd"
18
+ "plurimath/mml",
19
+ "plurimath/plurimath",
20
+ "relaton/ieee-idams",
21
+ "relaton/loc_mods",
22
+ "relaton/w3c_api",
23
+ "unitsml/unitsml-ruby"
16
24
  ]
17
- }
25
+ }
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_from:
2
2
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
3
3
  - .rubocop_todo.yml
4
4
 
5
- require:
5
+ plugins:
6
6
  - rubocop-performance
7
7
  - rubocop-rake
8
8
  - rubocop-rspec
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-02-21 13:26:38 UTC using RuboCop version 1.71.2.
3
+ # on 2025-04-08 13:11:39 UTC using RuboCop version 1.75.2.
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
@@ -27,7 +27,7 @@ Layout/IndentationWidth:
27
27
  Exclude:
28
28
  - 'lib/lutaml/model/schema/xml_compiler.rb'
29
29
 
30
- # Offense count: 468
30
+ # Offense count: 525
31
31
  # This cop supports safe autocorrection (--autocorrect).
32
32
  # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
33
33
  # URISchemes: http, https
@@ -42,83 +42,73 @@ Lint/ConstantDefinitionInBlock:
42
42
  - 'spec/benchmarks/xml_parsing_benchmark_spec.rb'
43
43
  - 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
44
44
 
45
- # Offense count: 56
45
+ # Offense count: 60
46
46
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
47
47
  Metrics/AbcSize:
48
- Exclude:
49
- - 'lib/lutaml/model/attribute.rb'
50
- - 'lib/lutaml/model/comparable_model.rb'
51
- - 'lib/lutaml/model/key_value_mapping.rb'
52
- - 'lib/lutaml/model/mapping_rule.rb'
53
- - 'lib/lutaml/model/schema/relaxng_schema.rb'
54
- - 'lib/lutaml/model/schema/xml_compiler.rb'
55
- - 'lib/lutaml/model/schema/xsd_schema.rb'
56
- - 'lib/lutaml/model/serialize.rb'
57
- - 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
58
- - 'lib/lutaml/model/xml_adapter/oga/element.rb'
59
- - 'lib/lutaml/model/xml_adapter/oga_adapter.rb'
60
- - 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
61
- - 'lib/lutaml/model/xml_adapter/xml_document.rb'
62
- - 'lib/lutaml/model/xml_mapping.rb'
63
- - 'lib/lutaml/model/xml_mapping_rule.rb'
64
-
65
- # Offense count: 12
48
+ Enabled: false
49
+
50
+ # Offense count: 9
66
51
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
67
52
  # AllowedMethods: refine
68
53
  Metrics/BlockLength:
69
- Max: 46
54
+ Max: 35
70
55
 
71
- # Offense count: 47
56
+ # Offense count: 43
72
57
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
73
58
  Metrics/CyclomaticComplexity:
74
59
  Exclude:
75
60
  - 'lib/lutaml/model/attribute.rb'
76
61
  - 'lib/lutaml/model/comparable_model.rb'
77
- - 'lib/lutaml/model/key_value_mapping.rb'
78
- - 'lib/lutaml/model/mapping_rule.rb'
79
62
  - 'lib/lutaml/model/schema/xml_compiler.rb'
80
63
  - 'lib/lutaml/model/serialize.rb'
64
+ - 'lib/lutaml/model/transform/xml_transform.rb'
81
65
  - 'lib/lutaml/model/type/integer.rb'
82
- - 'lib/lutaml/model/xml_adapter/builder/oga.rb'
83
- - 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
84
- - 'lib/lutaml/model/xml_adapter/oga_adapter.rb'
85
- - 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
86
- - 'lib/lutaml/model/xml_adapter/xml_document.rb'
66
+ - 'lib/lutaml/model/xml/builder/oga.rb'
67
+ - 'lib/lutaml/model/xml/document.rb'
68
+ - 'lib/lutaml/model/xml/nokogiri_adapter.rb'
69
+ - 'lib/lutaml/model/xml/oga_adapter.rb'
70
+ - 'lib/lutaml/model/xml/ox_adapter.rb'
87
71
 
88
- # Offense count: 86
72
+ # Offense count: 93
89
73
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
90
74
  Metrics/MethodLength:
91
- Max: 45
75
+ Max: 44
92
76
 
93
- # Offense count: 8
77
+ # Offense count: 11
94
78
  # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
95
79
  Metrics/ParameterLists:
96
- Max: 15
80
+ Max: 22
97
81
 
98
- # Offense count: 36
82
+ # Offense count: 33
99
83
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
100
84
  Metrics/PerceivedComplexity:
101
85
  Exclude:
102
86
  - 'lib/lutaml/model/attribute.rb'
103
87
  - 'lib/lutaml/model/comparable_model.rb'
104
- - 'lib/lutaml/model/key_value_mapping.rb'
105
- - 'lib/lutaml/model/mapping_rule.rb'
106
88
  - 'lib/lutaml/model/schema/xml_compiler.rb'
107
89
  - 'lib/lutaml/model/serialize.rb'
90
+ - 'lib/lutaml/model/transform/xml_transform.rb'
108
91
  - 'lib/lutaml/model/type/integer.rb'
109
- - 'lib/lutaml/model/xml_adapter/builder/oga.rb'
110
- - 'lib/lutaml/model/xml_adapter/nokogiri_adapter.rb'
111
- - 'lib/lutaml/model/xml_adapter/oga_adapter.rb'
112
- - 'lib/lutaml/model/xml_adapter/ox_adapter.rb'
113
- - 'lib/lutaml/model/xml_adapter/xml_document.rb'
92
+ - 'lib/lutaml/model/xml/builder/oga.rb'
93
+ - 'lib/lutaml/model/xml/document.rb'
94
+ - 'lib/lutaml/model/xml/nokogiri_adapter.rb'
95
+ - 'lib/lutaml/model/xml/oga_adapter.rb'
96
+ - 'lib/lutaml/model/xml/ox_adapter.rb'
114
97
 
115
98
  # Offense count: 1
116
- # This cop supports unsafe autocorrection (--autocorrect-all).
117
- Performance/MapCompact:
99
+ # Configuration parameters: MinSize.
100
+ Performance/CollectionLiteralInLoop:
118
101
  Exclude:
119
- - 'lib/lutaml/model/serialize.rb'
102
+ - 'spec/lutaml/model/custom_bibtex_adapter_spec.rb'
120
103
 
121
104
  # Offense count: 2
105
+ # Configuration parameters: Prefixes, AllowedPatterns.
106
+ # Prefixes: when, with, without
107
+ RSpec/ContextWording:
108
+ Exclude:
109
+ - 'spec/lutaml/model/group_spec.rb'
110
+
111
+ # Offense count: 3
122
112
  # Configuration parameters: IgnoredMetadata.
123
113
  RSpec/DescribeClass:
124
114
  Exclude:
@@ -128,9 +118,10 @@ RSpec/DescribeClass:
128
118
  - '**/spec/system/**/*'
129
119
  - '**/spec/views/**/*'
130
120
  - 'spec/benchmarks/xml_parsing_benchmark_spec.rb'
121
+ - 'spec/lutaml/model/custom_bibtex_adapter_spec.rb'
131
122
  - 'spec/lutaml/model/transformation_spec.rb'
132
123
 
133
- # Offense count: 1
124
+ # Offense count: 2
134
125
  # This cop supports unsafe autocorrection (--autocorrect-all).
135
126
  # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
136
127
  # SupportedStyles: described_class, explicit
@@ -138,7 +129,7 @@ RSpec/DescribedClass:
138
129
  Exclude:
139
130
  - 'spec/lutaml/model/xml_mapping_spec.rb'
140
131
 
141
- # Offense count: 157
132
+ # Offense count: 174
142
133
  # Configuration parameters: CountAsOne.
143
134
  RSpec/ExampleLength:
144
135
  Max: 54
@@ -149,16 +140,16 @@ RSpec/LeakyConstantDeclaration:
149
140
  - 'spec/benchmarks/xml_parsing_benchmark_spec.rb'
150
141
  - 'spec/lutaml/model/xml_adapter/xml_namespace_spec.rb'
151
142
 
152
- # Offense count: 208
143
+ # Offense count: 251
153
144
  RSpec/MultipleExpectations:
154
- Max: 14
145
+ Max: 21
155
146
 
156
- # Offense count: 29
147
+ # Offense count: 30
157
148
  # Configuration parameters: AllowSubject.
158
149
  RSpec/MultipleMemoizedHelpers:
159
150
  Max: 9
160
151
 
161
- # Offense count: 109
152
+ # Offense count: 121
162
153
  # Configuration parameters: AllowedGroups.
163
154
  RSpec/NestedGroups:
164
155
  Max: 4
@@ -170,7 +161,7 @@ RSpec/PendingWithoutReason:
170
161
  - 'spec/lutaml/model/type/time_spec.rb'
171
162
  - 'spec/lutaml/model/type/time_without_date_spec.rb'
172
163
 
173
- # Offense count: 3
164
+ # Offense count: 8
174
165
  # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
175
166
  # Include: **/*_spec.rb
176
167
  RSpec/SpecFilePathFormat:
@@ -179,11 +170,17 @@ RSpec/SpecFilePathFormat:
179
170
  - 'spec/lutaml/model/collection_spec.rb'
180
171
  - 'spec/lutaml/model/defaults_spec.rb'
181
172
  - 'spec/lutaml/model/type/decimal_spec.rb'
173
+ - 'spec/lutaml/model/xml_adapter/nokogiri_adapter_spec.rb'
174
+ - 'spec/lutaml/model/xml_adapter/oga_adapter_spec.rb'
175
+ - 'spec/lutaml/model/xml_adapter/ox_adapter_spec.rb'
176
+ - 'spec/lutaml/model/xml_mapping_rule_spec.rb'
177
+ - 'spec/lutaml/model/xml_mapping_spec.rb'
182
178
 
183
179
  # Offense count: 1
184
- Security/CompoundHash:
180
+ # This cop supports unsafe autocorrection (--autocorrect-all).
181
+ Style/CommentedKeyword:
185
182
  Exclude:
186
- - 'lib/lutaml/model/comparable_model.rb'
183
+ - 'spec/lutaml/model/custom_bibtex_adapter_spec.rb'
187
184
 
188
185
  # Offense count: 1
189
186
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -193,11 +190,6 @@ Style/HashEachMethods:
193
190
  Exclude:
194
191
  - 'lib/lutaml/model/schema/xml_compiler.rb'
195
192
 
196
- # Offense count: 1
197
- Style/MissingRespondToMissing:
198
- Exclude:
199
- - 'lib/lutaml/model/serialize.rb'
200
-
201
193
  # Offense count: 1
202
194
  # Configuration parameters: AllowedMethods.
203
195
  # AllowedMethods: respond_to_missing?
@@ -211,9 +203,3 @@ Style/RedundantStringEscape:
211
203
  Exclude:
212
204
  - 'lib/lutaml/model/schema/templates/simple_type.rb'
213
205
  - 'lib/lutaml/model/schema/xml_compiler.rb'
214
-
215
- # Offense count: 1
216
- # Configuration parameters: Max.
217
- Style/SafeNavigationChainLength:
218
- Exclude:
219
- - 'lib/lutaml/model/serialize.rb'
data/Gemfile CHANGED
@@ -8,7 +8,10 @@ gemspec
8
8
  gem "benchmark-ips"
9
9
  gem "bigdecimal"
10
10
  gem "equivalent-xml"
11
- gem "liquid"
11
+ # TODO: remove once https://github.com/Shopify/liquid/issues/1772 is fixed
12
+ # needed for liquid with ruby 3.4
13
+ gem "base64"
14
+ gem "liquid", "~> 5"
12
15
  gem "lutaml-xsd"
13
16
  gem "multi_json"
14
17
  gem "nokogiri"