hyperlang 0.1.1 → 0.1.3

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +1 -1
  3. data/hyperlang.gemspec +1 -1
  4. data/lib/hyperlang/version.rb +1 -1
  5. data/lib/hyperlang/xhtml/a.rb +1 -1
  6. data/lib/hyperlang/xhtml/abbr.rb +1 -1
  7. data/lib/hyperlang/xhtml/acronym.rb +1 -1
  8. data/lib/hyperlang/xhtml/address.rb +1 -1
  9. data/lib/hyperlang/xhtml/applet.rb +1 -1
  10. data/lib/hyperlang/xhtml/b.rb +1 -1
  11. data/lib/hyperlang/xhtml/bdo.rb +1 -1
  12. data/lib/hyperlang/xhtml/big.rb +1 -1
  13. data/lib/hyperlang/xhtml/blockquote.rb +1 -1
  14. data/lib/hyperlang/xhtml/body.rb +1 -1
  15. data/lib/hyperlang/xhtml/button.rb +1 -1
  16. data/lib/hyperlang/xhtml/caption.rb +1 -1
  17. data/lib/hyperlang/xhtml/center.rb +1 -1
  18. data/lib/hyperlang/xhtml/cite.rb +1 -1
  19. data/lib/hyperlang/xhtml/code.rb +1 -1
  20. data/lib/hyperlang/xhtml/dd.rb +1 -1
  21. data/lib/hyperlang/xhtml/del.rb +1 -1
  22. data/lib/hyperlang/xhtml/dfn.rb +1 -1
  23. data/lib/hyperlang/xhtml/div.rb +1 -1
  24. data/lib/hyperlang/xhtml/dt.rb +1 -1
  25. data/lib/hyperlang/xhtml/em.rb +1 -1
  26. data/lib/hyperlang/xhtml/fieldset.rb +1 -1
  27. data/lib/hyperlang/xhtml/font.rb +1 -1
  28. data/lib/hyperlang/xhtml/form.rb +1 -1
  29. data/lib/hyperlang/xhtml/h1.rb +1 -1
  30. data/lib/hyperlang/xhtml/h2.rb +1 -1
  31. data/lib/hyperlang/xhtml/h3.rb +1 -1
  32. data/lib/hyperlang/xhtml/h4.rb +1 -1
  33. data/lib/hyperlang/xhtml/h5.rb +1 -1
  34. data/lib/hyperlang/xhtml/h6.rb +1 -1
  35. data/lib/hyperlang/xhtml/i.rb +1 -1
  36. data/lib/hyperlang/xhtml/iframe.rb +1 -1
  37. data/lib/hyperlang/xhtml/ins.rb +1 -1
  38. data/lib/hyperlang/xhtml/kbd.rb +1 -1
  39. data/lib/hyperlang/xhtml/label.rb +1 -1
  40. data/lib/hyperlang/xhtml/legend.rb +1 -1
  41. data/lib/hyperlang/xhtml/li.rb +1 -1
  42. data/lib/hyperlang/xhtml/noframes.rb +1 -1
  43. data/lib/hyperlang/xhtml/noscript.rb +1 -1
  44. data/lib/hyperlang/xhtml/object.rb +1 -1
  45. data/lib/hyperlang/xhtml/p.rb +1 -1
  46. data/lib/hyperlang/xhtml/pre.rb +1 -1
  47. data/lib/hyperlang/xhtml/q.rb +1 -1
  48. data/lib/hyperlang/xhtml/rb.rb +1 -1
  49. data/lib/hyperlang/xhtml/rt.rb +1 -1
  50. data/lib/hyperlang/xhtml/s.rb +1 -1
  51. data/lib/hyperlang/xhtml/samp.rb +1 -1
  52. data/lib/hyperlang/xhtml/small.rb +1 -1
  53. data/lib/hyperlang/xhtml/span.rb +1 -1
  54. data/lib/hyperlang/xhtml/strike.rb +1 -1
  55. data/lib/hyperlang/xhtml/strong.rb +1 -1
  56. data/lib/hyperlang/xhtml/sub.rb +1 -1
  57. data/lib/hyperlang/xhtml/sup.rb +1 -1
  58. data/lib/hyperlang/xhtml/td.rb +1 -1
  59. data/lib/hyperlang/xhtml/th.rb +1 -1
  60. data/lib/hyperlang/xhtml/tt.rb +1 -1
  61. data/lib/hyperlang/xhtml/u.rb +1 -1
  62. data/lib/hyperlang/xhtml/var.rb +1 -1
  63. data/spec/hyperlang/xhtml/block_spec.rb +4 -4
  64. data/spec/hyperlang/xhtml/inline_spec.rb +5 -5
  65. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4755085f5268fdc25306fe57f9b86c7b8d1d78f13771c7338b9a46cf62c47de
4
- data.tar.gz: 9c5b2c52b2e1e1322a8399b9b3918ee6ccfc5c5326127a95e006a009285952ab
3
+ metadata.gz: 2e75bb79c6036f1906d86bb41081e62746fee525f21bb50a57f76236da2a7a7a
4
+ data.tar.gz: 01b3aaf0e9522dedd4a4ba7f1869c6f4f94e5881de5a8a8b809d7ef0f0c8d087
5
5
  SHA512:
6
- metadata.gz: 94935c5b8444b83e188b03d6ea8e6a92423d3a9d9ba4f524c095370dae2672c78b5018448bffa84647d95f77bfb7e1f1431b4a5353bdb1449efecceb927017b6
7
- data.tar.gz: 509d5b54350b6b86d78f113de1827965a6acbac342a26483eeb235a024330a5c10e7394c71029f37dd7fab39a83be0847b93b25318f0fb4f17faa036c4fee462
6
+ metadata.gz: 286b5aa2e1c9460d88a9f2d1e1bcb5cfc866152ace3c7697688276c99f31f48810d2b123044ee909e78a18a1a48721a277dbbd3349141f226a716072076e09b0
7
+ data.tar.gz: 052ccfb6cf041a1fdd32ba09b7a701edf136b3274b56e05f5f49c952051a1e61d27ef2920ab18aaa869fd38a786837fe49a03c5e0c8c9e813b7896a1b88e62f4
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-03-28 04:02:35 UTC using RuboCop version 1.86.0.
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/hyperlang.gemspec CHANGED
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.required_ruby_version = ">= 3.0.0"
34
34
 
35
- spec.add_dependency "lutaml-model", "~> 0.8.0"
35
+ spec.add_dependency "lutaml-model", "~> 0.8.114"
36
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hyperlang
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class A < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :href, :string
8
8
  attribute :name, :string
9
9
  attribute :hreflang, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Abbr < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :title, :string
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Acronym < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :title, :string
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Applet < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :codebase, :string
8
8
  attribute :archive, :string
9
9
  attribute :code, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class B < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Bdo < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :dir, :string
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Big < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -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
@@ -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 Caption < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Cite < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Code < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -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)
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Del < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :cite, :string
8
8
  attribute :datetime, :string
9
9
  attribute :p, Hyperlang::Xhtml::P, collection: true
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Dfn < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -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
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Em < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Font < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :size, :string
8
8
  attribute :color, :string
9
9
  attribute :face, :string
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class I < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Iframe < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :longdesc, :string
8
8
  attribute :name, :string
9
9
  attribute :src, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Ins < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :cite, :string
8
8
  attribute :datetime, :string
9
9
  attribute :p, Hyperlang::Xhtml::P, collection: true
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Kbd < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Label < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :for, :string
8
8
  attribute :accesskey, :string
9
9
  attribute :id, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Legend < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :accesskey, :string
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -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
@@ -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
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Q < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :cite, :string
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Rb < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Rt < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :rbspan, :integer
8
8
  attribute :id, :string
9
9
  attribute :klass, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class S < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Samp < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Small < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Span < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :style, :string
8
8
  attribute :klass, :string
9
9
  attribute :id, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Strike < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Strong < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
  attribute :style, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Sub < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Sup < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Td < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :abbr, :string
8
8
  attribute :axis, :string
9
9
  attribute :headers, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Th < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :abbr, :string
8
8
  attribute :axis, :string
9
9
  attribute :headers, :string
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Tt < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class U < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Hyperlang
4
4
  module Xhtml
5
5
  class Var < Lutaml::Model::Serializable
6
- attribute :content, :string
6
+ attribute :content, :string, collection: true
7
7
  attribute :id, :string
8
8
  attribute :klass, :string
9
9
 
@@ -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.1
4
+ version: 0.1.3
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-03-28 00:00:00.000000000 Z
11
+ date: 2026-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.8.114
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.0
26
+ version: 0.8.114
27
27
  description: XHTML 1.1 Strict, Transitional, and Frameset element models for Lutaml
28
28
  email:
29
29
  - open.source@ribose.com