lutaml-model 0.8.191 → 0.8.193
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/.github/workflows/dependent-tests.yml +12 -0
- data/README.adoc +9 -0
- data/docs/_guides/xml-guide-0.8.0.adoc +1547 -0
- data/docs/_guides/xml_mappings/05_common_patterns.adoc +365 -1
- data/docs/missing_xml_features.adoc +35 -0
- data/docs/xml_1.0.adoc +1989 -0
- data/docs/xml_base.adoc +718 -0
- data/docs/xml_data_types.adoc +263 -0
- data/docs/xml_namespace.adoc +129 -0
- data/docs/xml_schema.adoc +500 -0
- data/docs/xml_xlink.adoc +539 -0
- data/lib/compat/opal/generate_boot.rb +5 -4
- data/lib/compat/opal/lutaml_model_boot.rb +0 -7
- data/lib/lutaml/model/attribute.rb +55 -0
- data/lib/lutaml/model/serialize/format_conversion.rb +4 -6
- data/lib/lutaml/model/version.rb +1 -1
- data/lib/lutaml/xml/adapter/adapter_helpers.rb +3 -3
- data/lib/lutaml/xml/adapter/base_adapter.rb +13 -29
- data/lib/lutaml/xml/adapter/moxml_adapter.rb +113 -22
- data/lib/lutaml/xml/adapter/xml_parser.rb +6 -8
- data/lib/lutaml/xml/adapter/xml_serializer.rb +3 -1
- data/lib/lutaml/xml/adapter.rb +0 -4
- data/lib/lutaml/xml/adapter_element.rb +19 -9
- data/lib/lutaml/xml/adapter_loader.rb +26 -11
- data/lib/lutaml/xml/builder/base.rb +6 -7
- data/lib/lutaml/xml/document.rb +1 -1
- data/lib/lutaml/xml/format.rb +0 -10
- data/lib/lutaml/xml/leptris/plan_hydrator.rb +2 -2
- data/spec/lutaml/model/cdata_spec.rb +11 -27
- data/spec/lutaml/model/encoding_spec.rb +6 -6
- data/spec/lutaml/model/except_spec.rb +5 -7
- data/spec/lutaml/model/mixed_content_spec.rb +22 -25
- data/spec/lutaml/model/multiple_mapping_spec.rb +8 -10
- data/spec/lutaml/model/namespace_autoload_spec.rb +86 -0
- data/spec/lutaml/model/ordered_content_spec.rb +5 -8
- data/spec/lutaml/model/processing_instruction_spec.rb +6 -9
- data/spec/lutaml/model/serialize/attribute_definition_block_form_spec.rb +1 -1
- data/spec/lutaml/model/serialize/builder_spec.rb +1 -1
- data/spec/lutaml/xml/adapter/base_adapter_regression_spec.rb +5 -8
- data/spec/lutaml/xml/adapter/empty_document_diagnostics_spec.rb +3 -4
- data/spec/lutaml/xml/adapter/nokogiri_adapter_spec.rb +2 -2
- data/spec/lutaml/xml/adapter/oga_adapter_spec.rb +2 -2
- data/spec/lutaml/xml/adapter/order_spec.rb +8 -22
- data/spec/lutaml/xml/adapter/over_cap_parse_spec.rb +2 -2
- data/spec/lutaml/xml/adapter/ox_adapter_spec.rb +2 -2
- data/spec/lutaml/xml/adapter/rexml_adapter_spec.rb +2 -2
- data/spec/lutaml/xml/adapter/xml_namespace_spec.rb +5 -8
- data/spec/lutaml/xml/adapter_loader_spec.rb +15 -3
- data/spec/lutaml/xml/adapter_metadata_default_spec.rb +1 -1
- data/spec/lutaml/xml/adapter_moxml_engine_spec.rb +1 -2
- data/spec/lutaml/xml/builder/builder_spec.rb +28 -20
- data/spec/lutaml/xml/default_namespace_spec.rb +4 -5
- data/spec/lutaml/xml/entity_fragmentation_spec.rb +2 -2
- data/spec/lutaml/xml/mapping_rule_spec.rb +1 -2
- data/spec/lutaml/xml/mapping_spec.rb +12 -14
- data/spec/lutaml/xml/namespace_missing_prefix_spec.rb +1 -1
- data/spec/lutaml/xml/namespace_preservation_spec.rb +11 -11
- data/spec/lutaml/xml/namespace_scope_vcard_spec.rb +5 -8
- data/spec/lutaml/xml/prefix_control_spec.rb +5 -8
- data/spec/lutaml/xml/type_namespace_prefix_spec.rb +2 -2
- data/spec/lutaml/xml/xml_adapter_spec.rb +5 -8
- data/spec/lutaml/xml/xml_declaration_spec.rb +19 -19
- data/spec/spec_helper.rb +2 -2
- data/spec/support/test_adapter_config.rb +9 -25
- metadata +10 -21
- data/lib/lutaml/xml/adapter/leptris_adapter.rb +0 -16
- data/lib/lutaml/xml/adapter/nokogiri_adapter.rb +0 -16
- data/lib/lutaml/xml/adapter/oga_adapter.rb +0 -20
- data/lib/lutaml/xml/adapter/ox_adapter.rb +0 -16
- data/lib/lutaml/xml/adapter/rexml_adapter.rb +0 -25
- data/lib/lutaml/xml/builder/leptris.rb +0 -13
- data/lib/lutaml/xml/builder/nokogiri.rb +0 -13
- data/lib/lutaml/xml/builder/oga.rb +0 -13
- data/lib/lutaml/xml/builder/ox.rb +0 -13
- data/lib/lutaml/xml/builder/rexml.rb +0 -13
- data/lib/lutaml/xml/leptris/element.rb +0 -34
- data/lib/lutaml/xml/nokogiri/element.rb +0 -34
- data/lib/lutaml/xml/nokogiri.rb +0 -10
- data/lib/lutaml/xml/oga/element.rb +0 -15
- data/lib/lutaml/xml/oga.rb +0 -10
- data/lib/lutaml/xml/ox/element.rb +0 -15
- data/lib/lutaml/xml/ox.rb +0 -10
- data/lib/lutaml/xml/rexml/element.rb +0 -15
- data/lib/lutaml/xml/rexml.rb +0 -10
- data/lib/tasks/xml_optimization_benchmark.rb +0 -178
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99755041e2cdcee7e2777adf40ee6daf8536e1a19b3b36846623540acee4ff0a
|
|
4
|
+
data.tar.gz: 28671ed2a5571e602922e2b1adb62436caaea00eb1cc5dada6e6414dd5f16722
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d420ea3adbb5d1de70150bff255837cb963aa0048ce285be2234b57ff322aad3d3257a1dd9526207891024c9307a152ea0aaae159bec1b88fb3ee6a03b4fab93
|
|
7
|
+
data.tar.gz: 8cce65af057a12bce97f178d6a188ce92ee7c505a7c0203c4d94f6c532d5e7536ee971d788e31ff93139814b25d18c4cfa8e054bfba45bdeaf8daaf79601860b
|
|
@@ -22,6 +22,15 @@ jobs:
|
|
|
22
22
|
# raw-interpolated into the reusable workflow's jq program, hence the
|
|
23
23
|
# JSON array literal (metanorma/ci#462 supplies the input). Today's
|
|
24
24
|
# default slice is 3.3-only.
|
|
25
|
+
#
|
|
26
|
+
# macOS sits out of pull_request runs: 31 macOS cells per push ×
|
|
27
|
+
# 1–2 h dependent suites on the repository's small macOS runner pool
|
|
28
|
+
# queued each PR for hours before running (plurimath: 2.5 h queue +
|
|
29
|
+
# 2 h10 m suite). Pull requests validate on ubuntu + windows; every
|
|
30
|
+
# merge to main runs the full three-OS matrix, so macOS coverage
|
|
31
|
+
# lands before any release. matrix_os composes with matrix_ruby
|
|
32
|
+
# through the same jq program (the os key joins the repo × ruby
|
|
33
|
+
# cross product).
|
|
25
34
|
rake:
|
|
26
35
|
uses: metanorma/ci/.github/workflows/dependent-rake.yml@main
|
|
27
36
|
with:
|
|
@@ -37,6 +46,7 @@ jobs:
|
|
|
37
46
|
command: set +e; echo "spec-files=$(find spec -name '*_spec.rb' 2>/dev/null | wc -l)"; echo "lutaml-model-under-test:"; bundle info lutaml-model 2>/dev/null | sed -n '1,4p'; bundle exec rspec > rspec-run.log 2>&1; code=$?; echo "rspec-exit=$code"; tail -25 rspec-run.log; grep -B2 -A14 "Failure/Error" rspec-run.log | head -160; exit $code
|
|
38
47
|
repos-json-file: .github/workflows/dependent-repos.json
|
|
39
48
|
matrix_ruby: '[{"version":"4.0","rubygems":"latest","bundler":"default","experimental":false}]'
|
|
49
|
+
matrix_os: ${{ github.event_name == 'pull_request' && '["ubuntu-latest","windows-latest"]' || '' }}
|
|
40
50
|
after-setup-ruby: |
|
|
41
51
|
if [ -f frontend/package.json ]; then cd frontend && npm install && npm run build; fi
|
|
42
52
|
secrets:
|
|
@@ -59,6 +69,7 @@ jobs:
|
|
|
59
69
|
repos-json-file: .github/workflows/dependent-repos-tools.json
|
|
60
70
|
setup-tools: 'inkscape,ghostscript,exiftool,ffmpeg,imagemagick,yq'
|
|
61
71
|
matrix_ruby: '[{"version":"4.0","rubygems":"latest","bundler":"default","experimental":false}]'
|
|
72
|
+
matrix_os: ${{ github.event_name == 'pull_request' && '["ubuntu-latest","windows-latest"]' || '' }}
|
|
62
73
|
after-setup-ruby: |
|
|
63
74
|
if [ -f frontend/package.json ]; then cd frontend && npm install && npm run build; fi
|
|
64
75
|
secrets:
|
|
@@ -77,6 +88,7 @@ jobs:
|
|
|
77
88
|
repos-json-file: .github/workflows/dependent-repos-tools-informational.json
|
|
78
89
|
setup-tools: 'inkscape,ghostscript,exiftool,ffmpeg,imagemagick,yq'
|
|
79
90
|
matrix_ruby: '[{"version":"4.0","rubygems":"latest","bundler":"default","experimental":false}]'
|
|
91
|
+
matrix_os: ${{ github.event_name == 'pull_request' && '["ubuntu-latest","windows-latest"]' || '' }}
|
|
80
92
|
after-setup-ruby: |
|
|
81
93
|
if [ -f frontend/package.json ]; then cd frontend && npm install && npm run build; fi
|
|
82
94
|
secrets:
|
data/README.adoc
CHANGED
|
@@ -70,6 +70,15 @@ link:docs/migration-guides/0-1-0-migrate-from-shale.adoc[Migrating from Shale to
|
|
|
70
70
|
* Opt-in caching of repeated serialization/deserialization, backed by the `lutaml-store` gem (see <<conversion-caching>>)
|
|
71
71
|
* Document-level validation framework with composable rules, profiles, and remediation (see <<document-validation-framework>>)
|
|
72
72
|
|
|
73
|
+
== Missing XML Features
|
|
74
|
+
|
|
75
|
+
Lutaml::Model aims for broad XML compatibility, but some advanced XML features are not yet fully supported. For a detailed overview of missing or partially implemented XML features—including XML 1.0, XML Base, XML Schema datatypes and structures, XML Namespaces, and XLink—see:
|
|
76
|
+
|
|
77
|
+
link:docs/missing_xml_features.adoc[Missing XML Features in lutaml-model]
|
|
78
|
+
|
|
79
|
+
This document summarizes gaps in XML support, such as DTD validation, advanced schema constraints, xml:base resolution, XLink, and more.
|
|
80
|
+
|
|
81
|
+
|
|
73
82
|
|
|
74
83
|
== Data modeling in a nutshell
|
|
75
84
|
|