hyperlang 0.1.1 → 0.1.2
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 +4 -4
- data/.rubocop_todo.yml +1 -1
- data/lib/hyperlang/version.rb +1 -1
- data/lib/hyperlang/xhtml/a.rb +1 -1
- data/lib/hyperlang/xhtml/abbr.rb +1 -1
- data/lib/hyperlang/xhtml/acronym.rb +1 -1
- data/lib/hyperlang/xhtml/address.rb +1 -1
- data/lib/hyperlang/xhtml/applet.rb +1 -1
- data/lib/hyperlang/xhtml/b.rb +1 -1
- data/lib/hyperlang/xhtml/bdo.rb +1 -1
- data/lib/hyperlang/xhtml/big.rb +1 -1
- data/lib/hyperlang/xhtml/blockquote.rb +1 -1
- data/lib/hyperlang/xhtml/body.rb +1 -1
- data/lib/hyperlang/xhtml/button.rb +1 -1
- data/lib/hyperlang/xhtml/caption.rb +1 -1
- data/lib/hyperlang/xhtml/center.rb +1 -1
- data/lib/hyperlang/xhtml/cite.rb +1 -1
- data/lib/hyperlang/xhtml/code.rb +1 -1
- data/lib/hyperlang/xhtml/dd.rb +1 -1
- data/lib/hyperlang/xhtml/del.rb +1 -1
- data/lib/hyperlang/xhtml/dfn.rb +1 -1
- data/lib/hyperlang/xhtml/div.rb +1 -1
- data/lib/hyperlang/xhtml/dt.rb +1 -1
- data/lib/hyperlang/xhtml/em.rb +1 -1
- data/lib/hyperlang/xhtml/fieldset.rb +1 -1
- data/lib/hyperlang/xhtml/font.rb +1 -1
- data/lib/hyperlang/xhtml/form.rb +1 -1
- data/lib/hyperlang/xhtml/h1.rb +1 -1
- data/lib/hyperlang/xhtml/h2.rb +1 -1
- data/lib/hyperlang/xhtml/h3.rb +1 -1
- data/lib/hyperlang/xhtml/h4.rb +1 -1
- data/lib/hyperlang/xhtml/h5.rb +1 -1
- data/lib/hyperlang/xhtml/h6.rb +1 -1
- data/lib/hyperlang/xhtml/i.rb +1 -1
- data/lib/hyperlang/xhtml/iframe.rb +1 -1
- data/lib/hyperlang/xhtml/ins.rb +1 -1
- data/lib/hyperlang/xhtml/kbd.rb +1 -1
- data/lib/hyperlang/xhtml/label.rb +1 -1
- data/lib/hyperlang/xhtml/legend.rb +1 -1
- data/lib/hyperlang/xhtml/li.rb +1 -1
- data/lib/hyperlang/xhtml/noframes.rb +1 -1
- data/lib/hyperlang/xhtml/noscript.rb +1 -1
- data/lib/hyperlang/xhtml/object.rb +1 -1
- data/lib/hyperlang/xhtml/p.rb +1 -1
- data/lib/hyperlang/xhtml/pre.rb +1 -1
- data/lib/hyperlang/xhtml/q.rb +1 -1
- data/lib/hyperlang/xhtml/rb.rb +1 -1
- data/lib/hyperlang/xhtml/rt.rb +1 -1
- data/lib/hyperlang/xhtml/s.rb +1 -1
- data/lib/hyperlang/xhtml/samp.rb +1 -1
- data/lib/hyperlang/xhtml/small.rb +1 -1
- data/lib/hyperlang/xhtml/span.rb +1 -1
- data/lib/hyperlang/xhtml/strike.rb +1 -1
- data/lib/hyperlang/xhtml/strong.rb +1 -1
- data/lib/hyperlang/xhtml/sub.rb +1 -1
- data/lib/hyperlang/xhtml/sup.rb +1 -1
- data/lib/hyperlang/xhtml/td.rb +1 -1
- data/lib/hyperlang/xhtml/th.rb +1 -1
- data/lib/hyperlang/xhtml/tt.rb +1 -1
- data/lib/hyperlang/xhtml/u.rb +1 -1
- data/lib/hyperlang/xhtml/var.rb +1 -1
- data/spec/hyperlang/xhtml/block_spec.rb +4 -4
- data/spec/hyperlang/xhtml/inline_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 254a00a67e021bd6205d784481805a5f78a4e448c8c1136a7cf125e0b4174d60
|
|
4
|
+
data.tar.gz: 87f03523acef31cd1b48078ed4ee8f3aa46c6c9d883535dbe7c1d5cd83e10014
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c0e68fb483411b06797a72dc79804594d5294773bcfe278258d183fb840a2546c8018b8cec0c77158a1ca3436b30b52c7d6644affd044c262e057fbe1e2e19b
|
|
7
|
+
data.tar.gz: d9ee22c5c858a44e85975aeeefd99cbe2fdd3503fc030036929202ea4780e5b60ddcdfdcb36e4c19d45184012f72678a4a5f1c147e0a1f630146895028ee8775
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-
|
|
3
|
+
# on 2026-04-20 22:53:56 UTC using RuboCop version 1.86.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
data/lib/hyperlang/version.rb
CHANGED
data/lib/hyperlang/xhtml/a.rb
CHANGED
data/lib/hyperlang/xhtml/abbr.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Address < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
9
9
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
data/lib/hyperlang/xhtml/b.rb
CHANGED
data/lib/hyperlang/xhtml/bdo.rb
CHANGED
data/lib/hyperlang/xhtml/big.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Blockquote < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :cite, :string
|
|
8
8
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
9
9
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
data/lib/hyperlang/xhtml/body.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Body < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
|
8
8
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
9
9
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Button < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
|
9
9
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Center < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
|
9
9
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
data/lib/hyperlang/xhtml/cite.rb
CHANGED
data/lib/hyperlang/xhtml/code.rb
CHANGED
data/lib/hyperlang/xhtml/dd.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Dd < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
9
9
|
# div omitted: creates circular dd→div→li→dd (div→li cycle, div is Phase 4, dd is Phase 3)
|
data/lib/hyperlang/xhtml/del.rb
CHANGED
data/lib/hyperlang/xhtml/dfn.rb
CHANGED
data/lib/hyperlang/xhtml/div.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Div < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
9
9
|
attribute :br, Hyperlang::Xhtml::Br, collection: true
|
data/lib/hyperlang/xhtml/dt.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Dt < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/em.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Fieldset < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :legend, Hyperlang::Xhtml::Legend
|
|
8
8
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
9
9
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
data/lib/hyperlang/xhtml/font.rb
CHANGED
data/lib/hyperlang/xhtml/form.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Form < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
# fieldset omitted: creates circular dependency form↔fieldset
|
|
8
8
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
9
9
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
data/lib/hyperlang/xhtml/h1.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H1 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/h2.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H2 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/h3.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H3 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/h4.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H4 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/h5.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H5 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/h6.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class H6 < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/i.rb
CHANGED
data/lib/hyperlang/xhtml/ins.rb
CHANGED
data/lib/hyperlang/xhtml/kbd.rb
CHANGED
data/lib/hyperlang/xhtml/li.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Li < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
9
9
|
# div omitted: creates circular dependency div↔li
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Noframes < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :body, Hyperlang::Xhtml::Body
|
|
8
8
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
|
9
9
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Noscript < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :p, Hyperlang::Xhtml::P, collection: true
|
|
8
8
|
attribute :div, Hyperlang::Xhtml::Div, collection: true
|
|
9
9
|
attribute :ul, Hyperlang::Xhtml::Ul, collection: true
|
|
@@ -4,7 +4,7 @@ module Hyperlang
|
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Object < Lutaml::Model::Serializable
|
|
6
6
|
attribute :param, Hyperlang::Xhtml::Param, collection: true
|
|
7
|
-
attribute :content, :string
|
|
7
|
+
attribute :content, :string, collection: true
|
|
8
8
|
attribute :declare, :string
|
|
9
9
|
attribute :classid, :string
|
|
10
10
|
attribute :codebase, :string
|
data/lib/hyperlang/xhtml/p.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class P < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
8
8
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/pre.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Hyperlang
|
|
4
4
|
module Xhtml
|
|
5
5
|
class Pre < Lutaml::Model::Serializable
|
|
6
|
-
attribute :content, :string
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
7
|
attribute :a, Hyperlang::Xhtml::A, collection: true
|
|
8
8
|
attribute :span, Hyperlang::Xhtml::Span, collection: true
|
|
9
9
|
attribute :strong, Hyperlang::Xhtml::Strong, collection: true
|
data/lib/hyperlang/xhtml/q.rb
CHANGED
data/lib/hyperlang/xhtml/rb.rb
CHANGED
data/lib/hyperlang/xhtml/rt.rb
CHANGED
data/lib/hyperlang/xhtml/s.rb
CHANGED
data/lib/hyperlang/xhtml/samp.rb
CHANGED
data/lib/hyperlang/xhtml/span.rb
CHANGED
data/lib/hyperlang/xhtml/sub.rb
CHANGED
data/lib/hyperlang/xhtml/sup.rb
CHANGED
data/lib/hyperlang/xhtml/td.rb
CHANGED
data/lib/hyperlang/xhtml/th.rb
CHANGED
data/lib/hyperlang/xhtml/tt.rb
CHANGED
data/lib/hyperlang/xhtml/u.rb
CHANGED
data/lib/hyperlang/xhtml/var.rb
CHANGED
|
@@ -12,7 +12,7 @@ RSpec.describe Hyperlang::Xhtml::Ul do
|
|
|
12
12
|
XML
|
|
13
13
|
ul = described_class.from_xml(xml)
|
|
14
14
|
expect(ul.li.length).to eq(2)
|
|
15
|
-
expect(ul.li.first.content).to eq("Item 1")
|
|
15
|
+
expect(ul.li.first.content).to eq(["Item 1"])
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -29,7 +29,7 @@ RSpec.describe Hyperlang::Xhtml::Table do
|
|
|
29
29
|
table = described_class.from_xml(xml)
|
|
30
30
|
expect(table.tr.length).to eq(1)
|
|
31
31
|
expect(table.tr.first.td.length).to eq(2)
|
|
32
|
-
expect(table.tr.first.td.first.content).to eq("Cell 1")
|
|
32
|
+
expect(table.tr.first.td.first.content).to eq(["Cell 1"])
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
it "parses a table with thead and tbody" do
|
|
@@ -49,8 +49,8 @@ RSpec.describe Hyperlang::Xhtml::Table do
|
|
|
49
49
|
XML
|
|
50
50
|
table = described_class.from_xml(xml)
|
|
51
51
|
expect(table.thead).not_to be_nil
|
|
52
|
-
expect(table.thead.tr.first.th.first.content).to eq("Header")
|
|
52
|
+
expect(table.thead.tr.first.th.first.content).to eq(["Header"])
|
|
53
53
|
expect(table.tbody.length).to eq(1)
|
|
54
|
-
expect(table.tbody.first.tr.first.td.first.content).to eq("Data")
|
|
54
|
+
expect(table.tbody.first.tr.first.td.first.content).to eq(["Data"])
|
|
55
55
|
end
|
|
56
56
|
end
|
|
@@ -6,7 +6,7 @@ RSpec.describe Hyperlang::Xhtml::Span do
|
|
|
6
6
|
it "parses a span with text content" do
|
|
7
7
|
xml = '<xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml">Hello</xhtml:span>'
|
|
8
8
|
span = described_class.from_xml(xml)
|
|
9
|
-
expect(span.content).to eq("Hello")
|
|
9
|
+
expect(span.content).to eq(["Hello"])
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
it "round-trips a span with style attribute" do
|
|
@@ -21,7 +21,7 @@ RSpec.describe Hyperlang::Xhtml::P do
|
|
|
21
21
|
it "parses a paragraph with text content" do
|
|
22
22
|
xml = '<xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">Hello world</xhtml:p>'
|
|
23
23
|
p = described_class.from_xml(xml)
|
|
24
|
-
expect(p.content).to eq("Hello world")
|
|
24
|
+
expect(p.content).to eq(["Hello world"])
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
it "parses a paragraph with nested spans" do
|
|
@@ -32,7 +32,7 @@ RSpec.describe Hyperlang::Xhtml::P do
|
|
|
32
32
|
XML
|
|
33
33
|
p = described_class.from_xml(xml)
|
|
34
34
|
expect(p.span.length).to eq(1)
|
|
35
|
-
expect(p.span.first.content).to eq("world")
|
|
35
|
+
expect(p.span.first.content).to eq(["world"])
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
it "round-trips a paragraph with class attribute" do
|
|
@@ -54,7 +54,7 @@ RSpec.describe Hyperlang::Xhtml::Div do
|
|
|
54
54
|
XML
|
|
55
55
|
div = described_class.from_xml(xml)
|
|
56
56
|
expect(div.p.length).to eq(2)
|
|
57
|
-
expect(div.p.first.content).to eq("First")
|
|
58
|
-
expect(div.p.last.content).to eq("Second")
|
|
57
|
+
expect(div.p.first.content).to eq(["First"])
|
|
58
|
+
expect(div.p.last.content).to eq(["Second"])
|
|
59
59
|
end
|
|
60
60
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hyperlang
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|