moxml 0.5.126 → 0.5.127

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: 71f2ce65d604babc4d29753cb99b353f6f9fafa4a8379f913d109aa4e3cb1aba
4
- data.tar.gz: bb11508d1a28d87de8b3bcca4a6913ce40d29ac7152dfbee4311db797873ea14
3
+ metadata.gz: 01032e6367e81d2b15512e378e32065aaaeda8e0159ab361b1cce56c853483b6
4
+ data.tar.gz: f7ea3e5da35d715e4c0ee624bd34fa2ed2b0e97114941e19aa623e737935ba8a
5
5
  SHA512:
6
- metadata.gz: bca5457e68b0d51547a72f440097d5203fc469654f9360d6dfb6c3d0f8f8d8a6cf921e3e057e3bd9ef8c6ad86823c80057d5cb171474d27f4ca46e5de329a715
7
- data.tar.gz: c382a8f7eb2e23a116021b47d785e6757e04961576b12f2f452c57d01e946ee121da96ff2b77e77c6d5539e49110dc5af32fcf0a4db208906d5852251ffa978e
6
+ metadata.gz: 5738ff3e0b4b905ec4109aa4ec708885d2d901f322ef819bea1e54af264b7494c7f1fd65f58a83545d5a537175657174677970b584ad971b8c850ca3e37e85f1
7
+ data.tar.gz: 346e74335cc99fc6ade2d2502e6c1f628d6f5cf94fe8ac3e3dbe70e54641aff44b7926e0fb0b389ce501ba82633f71c936f1355ce1607ce71bb1c325fb90d265
data/lib/moxml/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moxml
4
- VERSION = "0.5.126"
4
+ VERSION = "0.5.127"
5
5
  end
@@ -65,6 +65,26 @@ RSpec.describe "Moxml::Document#to_html" do
65
65
  "<body>\n\t\t<div id=\"a\">\n\t\t\t<p>x</p>",
66
66
  )
67
67
  end
68
+
69
+ it "nests a LAST block child (engine 1.9.341, leptris#1647)" do
70
+ doc2 = Moxml.new(:leptris).parse_html(
71
+ "<html><head><title>T</title></head><body>" \
72
+ "<div id=\"a\"><p>x</p><span>y</span></div></body></html>",
73
+ )
74
+ out = doc2.to_html(indent: 2)
75
+ skip "engine predates leptris#1647" unless out.include?("<body>\n <div")
76
+ expect(out).to eq(
77
+ "<html>\n " \
78
+ "<head><title>T</title></head>\n " \
79
+ "<body>\n " \
80
+ "<div id=\"a\">\n " \
81
+ "<p>x</p>\n " \
82
+ "<span>y</span>\n " \
83
+ "</div>\n " \
84
+ "</body>\n" \
85
+ "</html>",
86
+ )
87
+ end
68
88
  end
69
89
 
70
90
  context "when the binding predates the ride" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.126
4
+ version: 0.5.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.