Skip to content

Commit c6b7e13

Browse files
committed
Add Ruby 3.4
1 parent d5e5a04 commit c6b7e13

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

app/ruby_engine.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,19 @@ def loading(part = nil)
3939
# When you update the engines, ensure that they are tested correctly.
4040
# Update the engine list also in spec/playground_spec.
4141
ENGINES = [
42-
# https://www.jsdelivr.com/package/npm/@ruby/3.3-wasm-wasi?tab=files&path=dist&version=2.4.1
42+
# https://www.jsdelivr.com/package/npm/@ruby/3.4-wasm-wasi?tab=files&path=dist&version=2.7.2
4343
CRubyWASI.new(
44-
"https://cdn.jsdelivr.net/npm/@ruby/[email protected]/dist/ruby.wasm",
44+
"https://cdn.jsdelivr.net/npm/@ruby/[email protected]/dist/ruby.wasm",
45+
"3.4.1"
46+
),
47+
# https://www.jsdelivr.com/package/npm/@ruby/3.3-wasm-wasi?tab=files&path=dist&version=2.7.2
48+
CRubyWASI.new(
49+
"https://cdn.jsdelivr.net/npm/@ruby/[email protected]/dist/ruby.wasm",
4550
"3.3.0"
4651
),
47-
# https://www.jsdelivr.com/package/npm/@ruby/3.2-wasm-wasi?tab=files&path=dist&version=2.4.1
52+
# https://www.jsdelivr.com/package/npm/@ruby/3.2-wasm-wasi?tab=files&path=dist&version=2.7.2
4853
CRubyWASI.new(
49-
"https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@2.4.1/dist/ruby.wasm",
54+
"https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@2.7.2/dist/ruby.wasm",
5055
"3.2.2"
5156
),
5257
# Opal.new,

app/ruby_engine/cruby_wasi.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class RubyEngine
66
class CRubyWASI < RubyEngine
77
REQUIRED_SCRIPTS = [
88
{
9-
# https://www.jsdelivr.com/package/npm/@ruby/wasm-wasi?version=2.4.1&tab=files&path=dist
10-
src: "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.4.1/dist/index.umd.js",
11-
integrity: "sha256-300VwPu5WqY+8LDKdE4RQwDglgJSpMtLFLgyf508bv0=",
9+
# https://www.jsdelivr.com/package/npm/@ruby/wasm-wasi?version=2.7.2&tab=files&path=dist
10+
src: "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.2/dist/index.umd.js",
11+
integrity: "sha256-sxHtVJLn+brnck+saGLUKbu/JEP7pilIBgChJvVdjko=",
1212
crossorigin: "anonymous"
1313
},
1414
{

app/try_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TryRuby
1515
RUBY
1616
INITIAL_TRY_RESULT = 'Welcome ' * 3
1717

18-
DEFAULT_RUBY_ENGINE = "cruby-3.3.0"
18+
DEFAULT_RUBY_ENGINE = "cruby-3.4.1"
1919

2020
def self.start
2121
instance

spec/playground_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe "Playground", type: :feature, js: true do
44
context "engine" do
5-
engines = ["opal-ww-1.8.2", "cruby-3.2.2", "cruby-3.3.0"]
5+
engines = ["opal-ww-1.8.2", "cruby-3.2.2", "cruby-3.3.0", "cruby-3.4.1"]
66
engines.each do |engine|
77
context engine do
88
before :each do

0 commit comments

Comments
 (0)