lutaml-model 0.3.29 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/dependent-repos.json +15 -0
  3. data/.github/workflows/dependent-tests.yml +14 -0
  4. data/.rubocop_todo.yml +15 -7
  5. data/README.adoc +6 -0
  6. data/lib/lutaml/model/attribute.rb +6 -2
  7. data/lib/lutaml/model/json_adapter/json_document.rb +1 -1
  8. data/lib/lutaml/model/json_adapter/multi_json_adapter.rb +1 -1
  9. data/lib/lutaml/model/json_adapter/standard_json_adapter.rb +1 -1
  10. data/lib/lutaml/model/serialize.rb +133 -33
  11. data/lib/lutaml/model/toml_adapter/toml_document.rb +1 -1
  12. data/lib/lutaml/model/toml_adapter/toml_rb_adapter.rb +1 -1
  13. data/lib/lutaml/model/toml_adapter/tomlib_adapter.rb +1 -1
  14. data/lib/lutaml/model/type/time.rb +4 -4
  15. data/lib/lutaml/model/utils.rb +1 -1
  16. data/lib/lutaml/model/validation.rb +6 -2
  17. data/lib/lutaml/model/version.rb +1 -1
  18. data/lib/lutaml/model/xml_adapter/builder/nokogiri.rb +10 -0
  19. data/lib/lutaml/model/xml_adapter/builder/ox.rb +5 -1
  20. data/lib/lutaml/model/xml_adapter/nokogiri_adapter.rb +5 -3
  21. data/lib/lutaml/model/xml_adapter/oga_adapter.rb +1 -1
  22. data/lib/lutaml/model/xml_adapter/ox_adapter.rb +25 -10
  23. data/lib/lutaml/model/xml_adapter/xml_document.rb +12 -24
  24. data/lib/lutaml/model/yaml_adapter/standard_yaml_adapter.rb +1 -1
  25. data/lib/lutaml/model/yaml_adapter/yaml_document.rb +1 -1
  26. data/spec/fixtures/xml/latin_encoding.xml +5 -0
  27. data/spec/fixtures/xml/shift_jis.xml +4 -0
  28. data/spec/lutaml/model/custom_serialization_spec.rb +16 -0
  29. data/spec/lutaml/model/defaults_spec.rb +74 -0
  30. data/spec/lutaml/model/enum_spec.rb +131 -0
  31. data/spec/lutaml/model/mixed_content_spec.rb +190 -7
  32. data/spec/lutaml/model/render_nil_spec.rb +0 -2
  33. data/spec/lutaml/model/serializable_spec.rb +2 -2
  34. data/spec/lutaml/model/xml_mapping_spec.rb +679 -543
  35. metadata +7 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.29
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-28 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -34,6 +34,8 @@ executables:
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
+ - ".github/workflows/dependent-repos.json"
38
+ - ".github/workflows/dependent-tests.yml"
37
39
  - ".github/workflows/rake.yml"
38
40
  - ".github/workflows/release.yml"
39
41
  - ".gitignore"
@@ -126,6 +128,8 @@ files:
126
128
  - spec/fixtures/person.rb
127
129
  - spec/fixtures/sample_model.rb
128
130
  - spec/fixtures/vase.rb
131
+ - spec/fixtures/xml/latin_encoding.xml
132
+ - spec/fixtures/xml/shift_jis.xml
129
133
  - spec/fixtures/xml/special_char.xml
130
134
  - spec/lutaml/model/attribute_spec.rb
131
135
  - spec/lutaml/model/cdata_spec.rb
@@ -135,6 +139,7 @@ files:
135
139
  - spec/lutaml/model/custom_serialization_spec.rb
136
140
  - spec/lutaml/model/defaults_spec.rb
137
141
  - spec/lutaml/model/delegation_spec.rb
142
+ - spec/lutaml/model/enum_spec.rb
138
143
  - spec/lutaml/model/inheritance_spec.rb
139
144
  - spec/lutaml/model/json_adapter_spec.rb
140
145
  - spec/lutaml/model/key_value_mapping_spec.rb