From ca6534fdc6ad84cd90f404e9ab9ba67ac2a1643b Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Sun, 28 Jan 2024 13:08:09 -0800 Subject: [PATCH] chore: upgrade ruby_wasm and ruby-next --- Gemfile | 4 ++-- Gemfile.lock | 24 +++++++++++------------- README.md | 7 ------- ruby-next.rb | 3 --- src/vm.js | 2 -- 5 files changed, 13 insertions(+), 27 deletions(-) diff --git a/Gemfile b/Gemfile index 1955986..300bb18 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "js", "~> 2.4.1.pre.1" unless ENV["JS"] == "false" -gem "ruby_wasm", github: "ruby/ruby.wasm" +gem "js", "~> 2.5" unless ENV["JS"] == "false" +gem "ruby_wasm", "~> 2.5" gem "ruby-next", "~> 1.0" diff --git a/Gemfile.lock b/Gemfile.lock index c7bb17a..ff780bb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,30 +1,28 @@ -GIT - remote: https://github.com/ruby/ruby.wasm.git - revision: 95255203f208e18e6356be6a898e55f2002b49ec - specs: - ruby_wasm (2.4.1) - GEM remote: https://rubygems.org/ specs: ast (2.4.2) diff-lcs (1.5.0) - js (2.4.1.pre.1) + js (2.5.0) paco (0.2.3) - parser (3.3.0.4) + parser (3.3.0.5) ast (~> 2.4.1) racc racc (1.7.3) require-hooks (0.2.2) - ruby-next (1.0.0) + ruby-next (1.0.1) paco (~> 0.2) require-hooks (~> 0.2) - ruby-next-core (= 1.0.0) + ruby-next-core (= 1.0.1) ruby-next-parser (>= 3.2.2.0) unparser (~> 0.6.0) - ruby-next-core (1.0.0) + ruby-next-core (1.0.1) ruby-next-parser (3.2.2.0) parser (>= 3.0.3.1) + ruby_wasm (2.5.0) + ruby_wasm (2.5.0-aarch64-linux) + ruby_wasm (2.5.0-arm64-darwin) + ruby_wasm (2.5.0-x86_64-linux) unparser (0.6.12) diff-lcs (~> 1.3) parser (>= 3.2.2.4) @@ -36,9 +34,9 @@ PLATFORMS x86_64-linux DEPENDENCIES - js (~> 2.4.1.pre.1) + js (~> 2.5) ruby-next (~> 1.0) - ruby_wasm! + ruby_wasm (~> 2.5) BUNDLED WITH 2.5.3 diff --git a/README.md b/README.md index 8ab9bb7..f9caeb4 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,6 @@ Play with Ruby Next right in the browser (powered by [ruby.wasm](https://github. ### Prerequisites -- Install [wasi-vfs](https://github.com/kateinoigakukun/wasi-vfs): - - ```sh - brew tap kateinoigakukun/wasi-vfs https://github.com/kateinoigakukun/wasi-vfs.git - brew install kateinoigakukun/wasi-vfs/wasi-vfs - ``` - - Install Rust toolchain: ```sh diff --git a/ruby-next.rb b/ruby-next.rb index ca2640f..f411b7a 100644 --- a/ruby-next.rb +++ b/ruby-next.rb @@ -1,8 +1,5 @@ require "/bundle/setup" -# Make gem no-op -define_singleton_method(:gem) { |*| nil } - require "ruby-next/language" SOURCE = <<~'RUBY' diff --git a/src/vm.js b/src/vm.js index 734117a..3556924 100644 --- a/src/vm.js +++ b/src/vm.js @@ -18,8 +18,6 @@ export default async function initVM() { vm.eval(` require "/bundle/setup" require "rubygems" - # Make gem no-op - define_singleton_method(:gem) { |*| nil } require "js"