leptris 1.9.360.0 → 1.9.361.0

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: 9aaf8e77a9d5ad7eaa96189b5a624e88b88b3d6a0df9e7c4ea2d3b54868320da
4
- data.tar.gz: 769c55599f673d0ffc6ab2a1d4d03e42a2891743bd010ca39adfa3cfd108a102
3
+ metadata.gz: df2368e4b5763d51eefc205806e52646774a5f2b5a32ccd3117141a51250358d
4
+ data.tar.gz: 3ee5599d86c4e1ea197cc1af960a7f39950907709b6f772fc147a667a94ab70e
5
5
  SHA512:
6
- metadata.gz: ba6432080b941cbac68d5d53c20fd907271f0eae739bb8551d1e88b87c46d620369eb6583c13293ba95207acecd886acd2fdd75d3de3c029d59a7e649f303d42
7
- data.tar.gz: 425813e7e901217bad458eadf790d4f6d496251a43c42d2f59e0f66fd317ab390a4caac6f97945c99b21797dd03ed8ae7841f39a48de1f91fd212e2eee4428af
6
+ metadata.gz: 320ae276bbcd1f5a053018a3f79b85cbcaf5b9ddd290585fd9cc5920e607f8d61dc8fa6d4bc755ca40fa418ecb535864adcfefac9b7ff03938bb88274effd5a9
7
+ data.tar.gz: fff60acc3a10bc083f7e00107a55959df05dd74a2d774473ca7d19c8e919563b937419604ef1f8e1731737274744df34d5181b4c522095e26a81a5cf4f2c239b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leptris
4
- VERSION = "1.9.360.0"
4
+ VERSION = "1.9.361.0"
5
5
  end
@@ -55,7 +55,14 @@ class Leptris::XML::Declaration
55
55
  # The declaration rides Document#children (ruby#459), and generic
56
56
  # child serializers call to_xml on whatever children exist
57
57
  # (leptris#1732 — moxml's round trip). Same wire bytes as to_s.
58
- alias_method :to_xml, :to_s
58
+ # The serializer's kwargs ride along (moxml passes indent:/
59
+ # encoding:/no_decl:); under no_decl: the answer is EMPTY — the
60
+ # document-level preamble owns the emission and the child must
61
+ # not duplicate it (ruby#477).
62
+ def to_xml(no_decl: false, **_kwargs)
63
+ return "" if no_decl
64
+ to_s
65
+ end
59
66
 
60
67
  def inspect
61
68
  "#<#{self.class.name} version=#{version.inspect} " \
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.360.0
4
+ version: 1.9.361.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.