wasmify-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67904120ba3d147d07ad14d5e15c6f9faf06eb43f3c93d132326407581be4ad7
4
- data.tar.gz: c88da10a277060fcda66faa34f1334dc246870d4ab0d32655772d0b05ed534a2
3
+ metadata.gz: 683d693ae789d6a5681cbab9e6f66f8a8fbd52a23d4dc440ff78d14e13c3085d
4
+ data.tar.gz: e8c18abb0382cbec70d562debbf4f16d82eeece71c9dcdb0a82f916216c3f7a5
5
5
  SHA512:
6
- metadata.gz: 78a1328a1ee3339968a6715b1482012f77dff692b69a55062a7c0eb1c460a7c631c617149a863eac7771c5dcccbd3673fa4fb18ca916005e215615db50bea210
7
- data.tar.gz: f128859e3c1f7e5ab2eee405afe71e7a5bd9fd593cfe88dae69cf6dd91f70b837c2bfe42364b95da2a1d60507776e28123dc7389a48231f720a5b9acbd599f80
6
+ metadata.gz: d7aafd09c3e716080f96efa987aeb1825ab5307be9cc1dae32e657f30a4f40314fd65e4ec610b8f271c40b3cd7ad0c951eff9be5cc9e3cd80456edaedec19a6c
7
+ data.tar.gz: 44619a0600d773ecd96e9f012b0245d6567e5d140b04397577560665ae5b49a9f7983755431f644274ebdb6dc76a3e33c91bf37eee5da56d8e4bfdc8f70a9e9b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.3
6
+
7
+ - Check if `cookieStore` is available and only manipulate cookies if it is.
8
+
9
+ - Add `skipWaiting()` to the server worker to force the new version to take over.
10
+
5
11
  ## 0.1.2
6
12
 
7
13
  - Add cache support to Rack handler.
data/README.md CHANGED
@@ -155,6 +155,8 @@ Here is an example app:
155
155
 
156
156
  This gem provides a variety of _adapters_ and plugins to make your Rails application Wasm-compatible:
157
157
 
158
+ - `Kernel#on_wasm?`: a convenient predicate method to check if the code is running in the Wasm environment.
159
+
158
160
  - Active Record
159
161
 
160
162
  - `sqlite3_wasm` adapter: work with `sqlite3` Wasm just like with a regular SQLite database.
@@ -71,7 +71,7 @@ self.addEventListener("activate", (event) => {
71
71
 
72
72
  self.addEventListener("install", (event) => {
73
73
  console.log("[rails-web] Install Service Worker");
74
- event.waitUntil(installApp());
74
+ event.waitUntil(installApp().then(() => self.skipWaiting()));
75
75
  });
76
76
 
77
77
  const rackHandler = new RackHandler(initVM, { assumeSSL: true });
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Wasmify
4
4
  module Rails # :nodoc:
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wasmify-rails
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
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties