lutaml-model 0.3.16 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9687a8a307de8226b41a87abda56626627eefe47665628c0e9112b97f27385a
4
- data.tar.gz: e819f531048e629d4943ea7b613815a568990f372ef2da93162d0d1b4d8395cd
3
+ metadata.gz: d8df6fb14ce661ef1c54be01a1b21c0f5e35937d701846807f036f2b97fdb06d
4
+ data.tar.gz: 92fcc49f083dcb5def7133c8e643ec17b88fd216150061c2c76bf40183f550d3
5
5
  SHA512:
6
- metadata.gz: f47d1336093db1eb45c5225913a9c63d66681de77d5803a21702baab0ca8e571e882a2d8f6f6dcf7b9180c897c9ae8bfd4b2db6532e9691487d104696657457e
7
- data.tar.gz: 9ec8b8d841606d202acdcca81464761cc0f75e9ae5b35d2c3b8dd01c6e8a122642a348f41de2852b09386d3748eb61b1b2547df8d1ccb146a7d36e5a8ac46257
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.3.16"
5
+ VERSION = "0.3.17"
6
6
  end
7
7
  end
@@ -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.16
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-28 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor