sinatra-inertia 0.1.2 → 0.1.3

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: 52d1f4d245c4bc1d97964a1b6b92a8dc091cde035738df4b8fc1b8bcf8017b8f
4
- data.tar.gz: 7237b568ccdb58addccffbcb20a51da0ade11d49ab2fa4dc35acc9c698444c1d
3
+ metadata.gz: 3e51ad95f421e2dc7d2eadc72b2c17b06377e2a72748a591e09d48106500786e
4
+ data.tar.gz: 3f110beacd7e7eb6778440a800e6f31768d0cb44ff75546607a94ee22c50e066
5
5
  SHA512:
6
- metadata.gz: 868d4070d399099ff8e31643d90aa8488dcd34dacf1e2e580c579547d0d599e4a3c117cf91e23e70cff58684be566ed4cd6c42857aae19f7c21bc0d3109a0c33
7
- data.tar.gz: ff829335676a68745d9a2c450d24f53ac08798b089e547619a416e63e9695ca2f4038d5c5b8b2646acefa3a82d8ef9c94ce4a6241eb13ad9dbd2196998acf61f
6
+ metadata.gz: 3ab6eda91b4f83b63d90d3cd56281edb83222e99692396748544497dd5c4637aedaf8f557bf7777b3f03c743ab15c1ec483d50f8b88e415d15aef071aade9a47
7
+ data.tar.gz: 4d1b984e23f72254fad4e1a6da82498cb35ca8f26f5270c5ab1ddaa4149118926a1c9a00ce5c7c061318e9d9da7693d412b50c4952432ba9d909a82394376914
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3 — 2026-04-29
4
+
5
+ - `lib/sinatra/inertia/async_sources.rb` registers under
6
+ `HomuraRuntime::AsyncRegistry` (was `CloudflareWorkers::AsyncRegistry`)
7
+ to follow the homura-runtime 0.3.0 module rename. Pure-Sinatra MRI
8
+ consumers are unaffected (the registration block is gated on
9
+ `defined?(::HomuraRuntime)`). Pin homura-runtime ≥ 0.3.0 if you
10
+ want sinatra-inertia 0.1.3's auto-await registration to fire.
11
+
3
12
  ## 0.1.2 — 2026-04-29
4
13
 
5
14
  - Fix: under Opal/Workers, the Inertia visit JSON body shipped with
@@ -10,8 +10,8 @@
10
10
  # Loaded only when the homura runtime is present (MRI / pure-Sinatra
11
11
  # environments don't need this; their `to_h` is fully synchronous).
12
12
 
13
- if defined?(::CloudflareWorkers) && defined?(::CloudflareWorkers::AsyncRegistry)
14
- ::CloudflareWorkers::AsyncRegistry.register_async_source do
13
+ if defined?(::HomuraRuntime) && defined?(::HomuraRuntime::AsyncRegistry)
14
+ ::HomuraRuntime::AsyncRegistry.register_async_source do
15
15
  async_method 'Sinatra::Inertia::Response', :to_h
16
16
  async_method 'Sinatra::Inertia::Response', :to_json
17
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sinatra
4
4
  module Inertia
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-inertia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma