leptris 1.9.359.0-arm-linux → 1.9.360.0-arm-linux

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: 446b489ed4e8998031c2beef2cbdeba48b1039e81f95b5deafdba667cfd92495
4
- data.tar.gz: cf0af6644518dc71142e0e5b580b92cbd68ca3c708ca43924be5f4d7eac71593
3
+ metadata.gz: 5447d0963d769677ad9156eb3adf78feba1cd21e83fded7d770697d98b06e42b
4
+ data.tar.gz: 85862ef4d8124b3749763d30aefc2783c1478044546005d113dd00eccf0248f4
5
5
  SHA512:
6
- metadata.gz: e0c019e17a75dcc2851e8c4bc9c28951676ef66e975bbc40d0aa4e77f5c98ccf0064e17283263ffc7f563f63693ef56df3b16991ccea244efdc4f2cceb26b295
7
- data.tar.gz: c384f1f4059aeb9931188e849513ed3efdf9bd419504af160678938eff79c7cf5adb5d30f99deec65e7e8fc90139a8efc1ea2084c9692505affb272ec44aa460
6
+ metadata.gz: 801829bbd4c6f0f8677ef2ce1929f29e2c3f02a9c906343207701f04fc562eb240b32b2c6773ab535b359573c2254b550800146c7ca637bbfe8672a4450cd83a
7
+ data.tar.gz: 015b53393470552bdd8d6aae4613db9768f68e8b3c891457dd0a3df70865d4fa0e881e586c9fadb84637a2feb427e9b327d39feb09e08d43db12d00d06813a08
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leptris
4
- VERSION = "1.9.359.0"
4
+ VERSION = "1.9.360.0"
5
5
  end
@@ -52,6 +52,11 @@ class Leptris::XML::Declaration
52
52
  parts.join(" ") + "?>"
53
53
  end
54
54
 
55
+ # The declaration rides Document#children (ruby#459), and generic
56
+ # child serializers call to_xml on whatever children exist
57
+ # (leptris#1732 — moxml's round trip). Same wire bytes as to_s.
58
+ alias_method :to_xml, :to_s
59
+
55
60
  def inspect
56
61
  "#<#{self.class.name} version=#{version.inspect} " \
57
62
  "encoding=#{encoding.inspect} standalone=#{standalone.inspect}>"
@@ -354,7 +354,10 @@ class Leptris::XML::Document
354
354
  def children
355
355
  base = document_child_nodes
356
356
  return base if declaration.nil?
357
- list = base.to_a
357
+ # .dup: NodeSet#to_a hands back the LIVE memoized array — unshifting
358
+ # into it would inject the Declaration into the underlying child
359
+ # list and poison every later children call (leptris#1732 class).
360
+ list = base.to_a.dup
358
361
  list.unshift(declaration)
359
362
  Leptris::XML::NodeSet.new(self, list)
360
363
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.359.0
4
+ version: 1.9.360.0
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - Ribose Inc.