Skip to content

Commit 363092f

Browse files
committed
Update CRuby-WASI to Ruby 3.2.0, add 3.3.0dev too
1 parent 06cc4a5 commit 363092f

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/ruby_engine.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ def run(source, instance)
1313
# Opal.new,
1414
OpalWebWorker.new("1.7.1"),
1515
CRubyWASI.new(
16-
"https://cdn.jsdelivr.net/npm/ruby-wasm-wasi@0.1.2/dist/ruby.wasm",
17-
"3.2.0dev"
16+
"https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5.0-2022-12-25-a/dist/ruby.wasm",
17+
"3.2.0"
18+
),
19+
CRubyWASI.new(
20+
"https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@next/dist/ruby.wasm",
21+
"3.3.0dev"
1822
),
1923
].each_with_object({}) do |engine, hash|
2024
hash[engine.engine_id] = engine

app/ruby_engine/cruby_wasi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class RubyEngine
66
class CRubyWASI < RubyEngine
77
REQUIRED_SCRIPTS = [
88
{
9-
src: "https://cdn.jsdelivr.net/npm/ruby-wasm-wasi@0.1.2/dist/index.umd.js",
10-
integrity: "sha256-cPmKu5S3jkz5j0NnceapOfiWkzhBQqiBovOLjeYXwA0=",
9+
src: "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5.0/dist/index.umd.js",
10+
integrity: "sha256-EVJ2qiXD74E5qZpFm9MMNqOf5Buo+P2VQKiqOzOKGpg=",
1111
crossorigin: "anonymous"
1212
},
1313
{

0 commit comments

Comments
 (0)