homura-runtime 0.3.21 → 0.3.23

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: c727de4d506e1d4f3f850fcf02a24471670bb003451910db9d5043c88f481df6
4
- data.tar.gz: 89e23c95e901eb6232687e9da34d0a4aa402c03418617a1828b933a6eb840499
3
+ metadata.gz: 3a5659f0bfd92228407a2e0e15dd56ee5e0312289cb96f26a9960fedf5b6b157
4
+ data.tar.gz: fefd3fbf629529ac2b959b77860917ecc14b384d28f5d6933b770c5af8c2cfa4
5
5
  SHA512:
6
- metadata.gz: '096b5e42136d862cbd3d66a8c16a194e26df0d54e508b06072753563558f63bd2e1c85a3c16bca23407ae4d3479776199e8d122b1af6d86adce85abe32b26fe1'
7
- data.tar.gz: dff29ea05788f0e8b7bcf3d4a9ba92594d43dc5deb2dc5318a2699045d268e08c94b0e16e409237b179092a9545956539f97ac52b83a5acf9d4ca2c6cd4e6799
6
+ metadata.gz: fe4fa0f002fce65c874da54a276786953c35e480e681648e64dd1962206a01fbdecd404b533e716e2890ba7ad457363abfdf0c051512c2029d7b2a469bf0a21d
7
+ data.tar.gz: 39881750bd31c90b61279569b9cfeaec2533b7c5045d99da288eff17becef3daf7c68b59a1b86aab20ebc5bd951f8e8e033c7a1f61a2a9200e5b729df88224c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.23 (2026-06-25)
4
+
5
+ - Load Phlex SGML before SGML extension modules and bootstrap the HTML/SVG
6
+ class namespaces before loading their element modules.
7
+
8
+ ## 0.3.22 (2026-06-25)
9
+
10
+ - Define the Phlex namespace before preloading Phlex FIFO. The FIFO file uses
11
+ `class Phlex::FIFO`, so the namespace must exist before the root file runs.
12
+
3
13
  ## 0.3.21 (2026-06-25)
4
14
 
5
15
  - Preload Phlex's FIFO dependency before Phlex root setup and explicitly load
@@ -266,6 +266,7 @@ module HomuraRuntime
266
266
  root_file = lib.join("#{spec.name}.rb")
267
267
  next unless root_file.file?
268
268
 
269
+ lines << "module Phlex; end unless defined?(Phlex)" if spec.name == "phlex"
269
270
  OPAL_ENTRY_PRELOAD_REQUIRES.fetch(spec.name, []).each do |require_path|
270
271
  lines << "require #{require_path.inspect}"
271
272
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HomuraRuntime
4
- VERSION = "0.3.21"
4
+ VERSION = "0.3.23"
5
5
  end
@@ -9,12 +9,23 @@ require "phlex/errors/double_render_error"
9
9
  require "phlex/errors/name_error"
10
10
  require "phlex/errors/runtime_error"
11
11
  require "phlex/helpers"
12
+ require "phlex/sgml"
12
13
  require "phlex/sgml/safe_object"
13
14
  require "phlex/sgml/safe_value"
14
15
  require "phlex/sgml/state"
15
16
  require "phlex/sgml/attributes"
16
17
  require "phlex/sgml/elements"
17
- require "phlex/sgml"
18
+
19
+ unless defined?(Phlex::HTML)
20
+ class Phlex::HTML < Phlex::SGML
21
+ end
22
+ end
23
+
24
+ unless defined?(Phlex::SVG)
25
+ class Phlex::SVG < Phlex::SGML
26
+ end
27
+ end
28
+
18
29
  require "phlex/html/void_elements"
19
30
  require "phlex/html/standard_elements"
20
31
  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.21
4
+ version: 0.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma