homura-runtime 0.3.18 → 0.3.20

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: 7d2c5985c2d93790c2db2d7330e357fac34c995357dc2ea101b9e55253eba9b6
4
+ data.tar.gz: 8b90cb2b8e31453272740def626d0428eb7b26cedcd2c8757698951a84a59217
5
5
  SHA512:
6
- metadata.gz: 811e444d1f269aeff5ad9d18997f16271c58123ac4021653e8a01535be59459b3f5d5af086c988e9396286066827949c03cdff7bc1399834f9c824faa073b814
7
- data.tar.gz: f328f43a8df03c8d3b82c76bf9603631a0fe4a0481e658edd957ca12a7b9077fe7da8addf356a0e057ecd220e6562a7398a326f100199722f1bbd98e0c0ca010
6
+ metadata.gz: eb860d3119cbbbeef4961e7c78d46d60464813b049cd27a7cff408b153ed143afc2a7d0d1e02ea0217717ab74d3b268f52f04b333ff178047257640f9a0bbeec
7
+ data.tar.gz: 4f75550dd89c458efb49b08ca5044c53b9750857453038538b2a98dfb79c8444453affba70c7f36643ea4a581ba93e2dc2eba5704eda7a013ed86fe1b4ebee7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.20 (2026-06-25)
4
+
5
+ - Define the Opal `ERB::Escape` shim under `class ERB`, matching Opal and
6
+ Ruby's ERB constant shape.
7
+
8
+ ## 0.3.19 (2026-06-25)
9
+
10
+ - Add an Opal `ERB::Escape.html_escape` shim before loading Phlex. Ruby 3.4
11
+ exposes this API, while Opal's ERB currently exposes the same behavior via
12
+ `ERB::Util.html_escape`.
13
+
3
14
  ## 0.3.18 (2026-06-25)
4
15
 
5
16
  - Return a no-op Zeitwerk loader for Phlex/Literal when the generated bundle
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "erb"
4
+
5
+ unless ERB.const_defined?(:Escape, false)
6
+ class ERB
7
+ module Escape
8
+ def self.html_escape(value)
9
+ ERB::Util.html_escape(value)
10
+ end
11
+ end
12
+ end
13
+ 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.20"
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.20
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