homura-runtime 0.3.22 → 0.3.24

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: c5f55310be45f2c74447186bb11ed970247925dd5c826b417f815d580f6d8da0
4
- data.tar.gz: 568c1cad017678edc3f81c8adc49b92f183ff29f7e8db0ec585e53e4d34adcf0
3
+ metadata.gz: 15f29c823a5ee92dbb02ebe0077fc886edfdbb090eb7d7b582b9e22e869bd865
4
+ data.tar.gz: 6bcf7628ae0f110004fc35a0ca797cf3e5b62aae9141dc09ab3844501e0f33dc
5
5
  SHA512:
6
- metadata.gz: 6c897c968ea643fa895aa977d6c0a72ed480796cc74d93853716e1828f8174deda6bc9bdc4e3618b3aa39df5805ab6e0225c4b7f8dac4b7a4a72256a9ab388a2
7
- data.tar.gz: 0124e0b823f5b38c508934f42127d034fa0d1c2ebdb487ecb7f2095112b953992ac7f49925386fdaf084324257982d915b95d26892d9626b2eb7548936787028
6
+ metadata.gz: ef8beda77132a6d8adeb1527ec4036fc4fb5d636b55ea9419c90d382e52a23588992a28ba24615a4af8da42f5dabd39176a853212006cd9461463982b64d411b
7
+ data.tar.gz: 2933b6ec1729bd796ad2c938121735bef2c19d5f95c41affafbd9702df888fa3b80d7bf7fbe8968596542dddb1553cb24266b2fd907f2ed80a741c0ff8a75014
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.24 (2026-06-25)
4
+
5
+ - Add a Phlex Opal compatibility shim for `String#name`. Phlex's element
6
+ registration receives method names as symbols on MRI, but Opal reports them
7
+ as strings in this path.
8
+
9
+ ## 0.3.23 (2026-06-25)
10
+
11
+ - Load Phlex SGML before SGML extension modules and bootstrap the HTML/SVG
12
+ class namespaces before loading their element modules.
13
+
3
14
  ## 0.3.22 (2026-06-25)
4
15
 
5
16
  - Define the Phlex namespace before preloading Phlex FIFO. The FIFO file uses
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HomuraRuntime
4
- VERSION = "0.3.22"
4
+ VERSION = "0.3.24"
5
5
  end
@@ -3,18 +3,39 @@
3
3
  require "corelib/pattern_matching"
4
4
  require "zeitwerk/opal_compat"
5
5
  require "phlex" unless defined?(Phlex)
6
+
7
+ unless
8
+ String.method_defined?(:name)
9
+ class String
10
+ def name
11
+ self
12
+ end
13
+ end
14
+ end
15
+
6
16
  require "phlex/error"
7
17
  require "phlex/errors/argument_error"
8
18
  require "phlex/errors/double_render_error"
9
19
  require "phlex/errors/name_error"
10
20
  require "phlex/errors/runtime_error"
11
21
  require "phlex/helpers"
22
+ require "phlex/sgml"
12
23
  require "phlex/sgml/safe_object"
13
24
  require "phlex/sgml/safe_value"
14
25
  require "phlex/sgml/state"
15
26
  require "phlex/sgml/attributes"
16
27
  require "phlex/sgml/elements"
17
- require "phlex/sgml"
28
+
29
+ unless defined?(Phlex::HTML)
30
+ class Phlex::HTML < Phlex::SGML
31
+ end
32
+ end
33
+
34
+ unless defined?(Phlex::SVG)
35
+ class Phlex::SVG < Phlex::SGML
36
+ end
37
+ end
38
+
18
39
  require "phlex/html/void_elements"
19
40
  require "phlex/html/standard_elements"
20
41
  require "phlex/html"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homura-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.22
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma