Skip to content

Commit

Permalink
chore: upgrade ruby_wasm and ruby-next
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jan 28, 2024
1 parent f28383a commit ca6534f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
24 changes: 11 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions ruby-next.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
require "/bundle/setup"

# Make gem no-op
define_singleton_method(:gem) { |*| nil }

require "ruby-next/language"

SOURCE = <<~'RUBY'
Expand Down
2 changes: 0 additions & 2 deletions src/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ca6534f

Please sign in to comment.