lutaml-model 0.3.16 → 0.3.17
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/README.adoc +2 -0
- data/lib/lutaml/model/version.rb +1 -1
- data/lib/lutaml/model/xml_adapter/nokogiri_adapter.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8df6fb14ce661ef1c54be01a1b21c0f5e35937d701846807f036f2b97fdb06d
|
|
4
|
+
data.tar.gz: 92fcc49f083dcb5def7133c8e643ec17b88fd216150061c2c76bf40183f550d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d701f87c169faa98f952f2ce669ae42721462f512b729caab789a120055b90e19507bcad012bb7ecd57b912fc5984b6a70b59f305c58d5b1a0c341a4c035118f
|
|
7
|
+
data.tar.gz: d2c411bd20127d21d1c9183cf485945e28288b54e6a45399b9e20c3eb9ca5157fa42b025f924a0a845d905e9db09de0d6ac28a136d8176e39a2d756b19a4729a
|
data/README.adoc
CHANGED
|
@@ -464,6 +464,7 @@ class Glaze < Lutaml::Model::Serializable
|
|
|
464
464
|
end
|
|
465
465
|
end
|
|
466
466
|
----
|
|
467
|
+
====
|
|
467
468
|
|
|
468
469
|
.Attributes with `render_default: true` are rendered when the value is identical to the default
|
|
469
470
|
[example]
|
|
@@ -741,6 +742,7 @@ end
|
|
|
741
742
|
> Example.new(value: 12).to_xml
|
|
742
743
|
> #<example value="12"></example>
|
|
743
744
|
----
|
|
745
|
+
====
|
|
744
746
|
|
|
745
747
|
The `map_attribute` method does not inherit the root element's namespace.
|
|
746
748
|
To specify a namespace for an attribute, please explicitly declare the
|
data/lib/lutaml/model/version.rb
CHANGED
|
@@ -49,6 +49,7 @@ module Lutaml
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
tag_name = options[:tag_name] || xml_mapping.root_element
|
|
52
|
+
tag_name = "#{tag_name}_" if prefixed_xml.respond_to?(tag_name)
|
|
52
53
|
prefixed_xml.public_send(tag_name, attributes) do
|
|
53
54
|
if options.key?(:namespace_prefix) && !options[:namespace_prefix]
|
|
54
55
|
xml.parent.namespace = nil
|
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.
|
|
4
|
+
version: 0.3.17
|
|
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-10-
|
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|