Skip to content

Commit

Permalink
ruby: reexpose default vm
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 10, 2024
1 parent 5327429 commit 0d3f0ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ruby/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primate/ruby",
"version": "0.1.2",
"version": "0.1.3",
"description": "Primate Ruby backend",
"homepage": "https://primatejs.com/modules/ruby",
"bugs": "https://github.com/primatejs/primate/issues",
Expand Down
1 change: 1 addition & 0 deletions packages/ruby/src/default-ruby-vm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DefaultRubyVM as default } from "@ruby/wasm-wasi/dist/node";
6 changes: 3 additions & 3 deletions packages/ruby/src/private/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ end`);
return `
import to_response from "@primate/ruby/to-response";
import helpers from "@primate/ruby/helpers";
import { DefaultRubyVM } from "@ruby/wasm-wasi/dist/node";
import default_ruby_vm from "@primate/ruby/default-ruby-vm";
import ruby from "@primate/ruby/ruby";
import file from "@rcompat/fs/file";
import file from "primate/runtime/file";
const { vm } = await DefaultRubyVM(ruby);
const { vm } = await default_ruby_vm(ruby);
const code = await file(${JSON.stringify(path)}).text();
const wrappers = ${JSON.stringify(create_ruby_wrappers(routes))};
const request = ${JSON.stringify(request
Expand Down

0 comments on commit 0d3f0ad

Please sign in to comment.