lutaml-model 0.8.139 → 0.8.141

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a027b25146b1db5759062241ef72d4e6cfb7122f4dff800d5683535bf4767c5b
4
- data.tar.gz: 2b49a35df1f800d47d18b2e79737fe58fccc79385a2f38e5e5c9169acae84063
3
+ metadata.gz: 4858164d1b2f6a8a2ef3cf919d7689869e23473c99c12bbf2749985774e981de
4
+ data.tar.gz: acf6cd6e673b31e3ae9a784f6d28ffd24b1b16c4d7a3b535513b1c34d0b5fc93
5
5
  SHA512:
6
- metadata.gz: e66ba7f1fff3188bbe477aa108681b53cfbacaec36f7dfd652a54c6305f083a28fc4992e6586312fc22da9bded0864f5336f848538b755a315f8c4fbdde3d427
7
- data.tar.gz: 8f1039a43171dea42d3bf5f3db295ae4bc44e15d087fc531a9910515d307634410d3a6b102adfff2b5ee30764ff0e19dbefdeb9e1c84618332981bc95f4c67ab
6
+ metadata.gz: 64af40ac45da4c06d2a01ffdcfd90a9cff03c9ceafb11284f407d662770c2d30264021e6a9d8cd1524ad26c392bbc441d79a100996f4f5bce6f05f3159d36a05
7
+ data.tar.gz: ee6e1412255b334bba7507ac54d9b94d98ed64bcf5750b1b0b65cc9dc3eba0c8ff89204a6bf1d1ae289166d136d979e09f2ef231e1c51485c64a2a1fe545eb54
@@ -374,9 +374,6 @@ module Lutaml
374
374
  # compiled seed cannot know about (SchemaRepository's
375
375
  # @parsed_schemas/@namespace_registry/@type_index): construct
376
376
  # through the real constructor for them, exactly as the walk
377
- # did before the compiled seed existed. The seed stays the
378
- # fast path for classes using the standard initializer.
379
- return new(lutaml_register: register) if constructs_through_initialize?
380
377
  # did before the compiled seed existed, register included. The
381
378
  # seed stays the fast path for classes using the standard
382
379
  # initializer.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.8.139"
5
+ VERSION = "0.8.141"
6
6
  end
7
7
  end
@@ -1556,6 +1556,7 @@ module Lutaml
1556
1556
  @attributes
1557
1557
  @elements
1558
1558
  @processing_instruction_mappings
1559
+ @all_attributes_rule
1559
1560
  @register_elements
1560
1561
  @register_attributes
1561
1562
  @register_element_sequences
@@ -86,4 +86,13 @@ RSpec.describe "map_all_attributes" do
86
86
 
87
87
  expect(model.other_attributes).to eq("zeta" => "1")
88
88
  end
89
+
90
+ it "is inherited by a subclass along with the other mappings" do
91
+ stub_const("MapAllAttributesChild", Class.new(stubbed))
92
+
93
+ model = MapAllAttributesChild.from_xml('<mn name="x" data-title="T"/>')
94
+
95
+ expect(model.data_attributes).to eq("data-title" => "T")
96
+ expect(model.to_xml).to include('data-title="T"')
97
+ end
89
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.139
4
+ version: 0.8.141
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.