Skip to content

Commit f63d9e4

Browse files
Add Ruby 3.4
1 parent 13570db commit f63d9e4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

bin/build.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function makeBuildOptions(config) {
3030
}
3131

3232
async function downloadBuiltinRuby(version, rubyVersion) {
33-
const tarball = `ruby-${rubyVersion}-wasm32-unknown-wasi-full.tar.gz`
33+
const tarball = `ruby-${rubyVersion}-wasm32-unknown-wasip1-full.tar.gz`
3434
const url = `https://github.com/ruby/ruby.wasm/releases/download/${version}/${tarball}`
3535
const destination = `./dist/build/ruby-${rubyVersion}/install.tar.gz`
3636
const zipDest = `./dist/build/ruby-${rubyVersion}.zip`
@@ -68,8 +68,9 @@ async function downloadBuiltinRuby(version, rubyVersion) {
6868
}
6969
}
7070

71-
await downloadBuiltinRuby("2.4.1", "3.2")
72-
await downloadBuiltinRuby("2.4.1", "3.3")
71+
await downloadBuiltinRuby("2.7.1", "3.2")
72+
await downloadBuiltinRuby("2.7.1", "3.3")
73+
await downloadBuiltinRuby("2.7.1", "3.4")
7374

7475
async function devFrontend(config) {
7576
const ctx = await esbuild.context(makeBuildOptions(config))

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function rubySourceFromURL(): RubySource | null {
307307
return { type: "builtin", version: value }
308308
}
309309
}
310-
return { type: "builtin", version: "3.3" }
310+
return { type: "builtin", version: "3.4" }
311311
}
312312

313313
type Options = {

0 commit comments

Comments
 (0)