homura-runtime 0.2.2 → 0.2.4

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: ea45c6e9833a7fd1489e25d5a7fb7b27227542a0aaeb56ca975a86caff02db55
4
- data.tar.gz: 8f79055ebb7c2340abae33e64dfac9fa8610c0917e58317f7e0e9a02718d89e7
3
+ metadata.gz: a7e0278919623ca0bd4057dd685cc0a6121efa0d36e0f0a7eeb8bc9e404938a8
4
+ data.tar.gz: 3896ecbe9174de362fd6e9dc4d24ec015adf495bce80b045bd61d2c4a305791d
5
5
  SHA512:
6
- metadata.gz: 0005f047fe200e3cf8743be898508420fc128d22ff0def9e0da35cac637e83218ec185e0512e5cc237593c951bc073d7de7a5bbb1af1f31d2238540be3fa25d9
7
- data.tar.gz: 04444cea8eadfdcf6d0210667aef11730c3e67e3601e06f141f923761b2c395674560d899dcca5bc81284d10bcfa5d815d0722dad7e967d3e9bbc330649c58c1
6
+ metadata.gz: 2607d862746d48cad7eb8c28a8e1cb39477c95fab45c6f90ea0cc8e773dadfca54d1e2d3cb0842774cec3bddbe7216ce0efd433f147f48c86a97a2118f29edd4
7
+ data.tar.gz: 14a8a0faca16aa7f1f8ed9a49c2bbc194afd4417a2d4b808519d1d144a94b9ac2a75a01fbdbceb385e732228f3b0bba91667f3d17d5004cec8f3d17ccf72f380
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.2 (2026-04-23)
3
+ ## 0.2.4 (2026-04-23)
4
4
 
5
- - Bump the exact `opal-homura` dependency to `1.8.3.rc1.1` so published gems pick up the corrected author metadata.
5
+ - Guard the Rack body close hook against raw JS `undefined` so Workers request teardown
6
+ does not crash when a response body is absent or non-Ruby.
7
+
8
+ ## 0.2.3 (2026-04-23)
9
+
10
+ - Bump the exact `opal-homura` dependency to `1.8.3.rc1.2` for the release retry after the
11
+ previous tag push failed to trigger RubyGems publication.
6
12
  - Preserve async Sinatra responses that resolve to `[status, body]` or `[status, headers, body]`
7
13
  so `# await: true` routes can still express `halt` / `redirect` outcomes after awaiting.
8
14
 
data/README.md CHANGED
@@ -14,7 +14,7 @@ Core Ruby + Module Worker glue for [Opal](https://opalrb.com/) on [Cloudflare Wo
14
14
 
15
15
  ## Quick start (homura monorepo)
16
16
 
17
- 1. `Gemfile`: `gem 'homura-runtime', path: 'gems/homura-runtime'` and `gem 'opal-homura', '= 1.8.3.rc1.1', require: 'opal'` (path or exact pin).
17
+ 1. `Gemfile`: `gem 'homura-runtime', path: 'gems/homura-runtime'` and `gem 'opal-homura', '= 1.8.3.rc1.2', require: 'opal'` (path or exact pin).
18
18
  2. `bundle exec homura build` — writes `build/hello.no-exit.mjs` and `build/worker.entrypoint.mjs`.
19
19
  3. `wrangler.toml`: `main = "build/worker.entrypoint.mjs"`, `compatibility_flags = ["nodejs_compat"]`.
20
20
 
@@ -25,7 +25,7 @@ Core Ruby + Module Worker glue for [Opal](https://opalrb.com/) on [Cloudflare Wo
25
25
  | Ruby | 3.4.x |
26
26
  | Node | ≥ 20 |
27
27
  | Wrangler | ^3.99 |
28
- | Opal | = 1.8.3.rc1.1 |
28
+ | Opal | = 1.8.3.rc1.2 |
29
29
 
30
30
  ## Wrangler config
31
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudflareWorkers
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.4'
5
5
  end
@@ -147,7 +147,7 @@ module Rack
147
147
  status, headers, body = @app.call(env)
148
148
  build_js_response(status, headers, body)
149
149
  ensure
150
- body.close if body.respond_to?(:close) && body
150
+ body.close if body && body.respond_to?(:close)
151
151
  end
152
152
 
153
153
  class << self
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.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 1.8.3.rc1.1
18
+ version: 1.8.3.rc1.2
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 1.8.3.rc1.1
25
+ version: 1.8.3.rc1.2
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: parser
28
28
  requirement: !ruby/object:Gem::Requirement