homura-runtime 0.3.18 → 0.3.19

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: 759c2bd72883b30ec71409f28b5758557700c8e82c85b4eac9f22ca8c8b50322
4
- data.tar.gz: adcf716353d3da4c2f2a491a70c70a41a36f6899c3a8352f717c210a74ece8bb
3
+ metadata.gz: e2ec4413e68dc202a174622d8b3d1877363ed8eaf76d5420269395879b8f6a25
4
+ data.tar.gz: f6ca4025bd4fa017110f116db7afc743c4325c4daa2471ba1c8f5bb5df0eab52
5
5
  SHA512:
6
- metadata.gz: 811e444d1f269aeff5ad9d18997f16271c58123ac4021653e8a01535be59459b3f5d5af086c988e9396286066827949c03cdff7bc1399834f9c824faa073b814
7
- data.tar.gz: f328f43a8df03c8d3b82c76bf9603631a0fe4a0481e658edd957ca12a7b9077fe7da8addf356a0e057ecd220e6562a7398a326f100199722f1bbd98e0c0ca010
6
+ metadata.gz: 70e34d8b4e75fd1caa28c4eb3964c7cd45d2f2b9a94b2fd0d44f2b58d306bbefb3d95dfb4719082257267fa5b723018ee8303f168774379951a74599ecb13cc7
7
+ data.tar.gz: 6aab77ff725e260081623242a035eb552e11d4840d59fb933790821065b7068beaf9668547306d3da099cc0e186c02a246c50eaa7c1414734e84878f298f2c59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.19 (2026-06-25)
4
+
5
+ - Add an Opal `ERB::Escape.html_escape` shim before loading Phlex. Ruby 3.4
6
+ exposes this API, while Opal's ERB currently exposes the same behavior via
7
+ `ERB::Util.html_escape`.
8
+
3
9
  ## 0.3.18 (2026-06-25)
4
10
 
5
11
  - Return a no-op Zeitwerk loader for Phlex/Literal when the generated bundle
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "erb"
4
+
5
+ unless
6
+ ERB.const_defined?(:Escape, false)
7
+ module ERB
8
+ module Escape
9
+ def self.html_escape(value)
10
+ ERB::Util.html_escape(value)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -253,6 +253,7 @@ module HomuraRuntime
253
253
  end
254
254
 
255
255
  lines << ""
256
+ lines << "require \"erb/opal_compat\""
256
257
  lines << "require \"zeitwerk/opal_compat\""
257
258
  entry_specs.each do |spec|
258
259
  compat = OPAL_ENTRY_COMPAT_REQUIRES[spec.name]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HomuraRuntime
4
- VERSION = "0.3.18"
4
+ VERSION = "0.3.19"
5
5
  end
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.18
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma
@@ -53,6 +53,7 @@ files:
53
53
  - exe/compile-assets
54
54
  - exe/compile-erb
55
55
  - exe/homura-build
56
+ - lib/erb/opal_compat.rb
56
57
  - lib/homura/runtime.rb
57
58
  - lib/homura/runtime/ai.rb
58
59
  - lib/homura/runtime/async_registry.rb