Skip to content

Commit

Permalink
Bump version to 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Nov 11, 2024
1 parent b1dbae5 commit 432434b
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,5 @@ $ npm install --save @ruby/wasm-wasi@latest
# or if you want the nightly snapshot
$ npm install --save @ruby/wasm-wasi@next
# or you can specify the exact snapshot version
$ npm install --save @ruby/wasm-wasi@2.6.2-2024-06-29-a
$ npm install --save @ruby/wasm-wasi@2.7.0-2024-11-11-a
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Create and save `index.html` page with the following contents:

```html
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<script type="text/ruby">
require "js"
Expand Down
16 changes: 8 additions & 8 deletions docs/cheat_sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The easiest way to run Ruby on browser is to use `browser.script.iife.js` script

```html
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<script type="text/ruby">
require "js"
JS.global[:document].write "Hello, world!"
Expand All @@ -51,8 +51,8 @@ If you want to control Ruby VM from JavaScript, you can use `@ruby/wasm-wasi` pa
```html
<html>
<script type="module">
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.2/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/ruby+stdlib.wasm");
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.0/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/ruby+stdlib.wasm");
const module = await WebAssembly.compileStreaming(response);
const { vm } = await DefaultRubyVM(module);
Expand All @@ -69,11 +69,11 @@ If you want to control Ruby VM from JavaScript, you can use `@ruby/wasm-wasi` pa

```html
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.2/dist/browser.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.0/dist/browser.umd.js"></script>
<script>
const main = async () => {
const { DefaultRubyVM } = window["ruby-wasm-wasi"];
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/ruby+stdlib.wasm");
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/ruby+stdlib.wasm");
const module = await WebAssembly.compileStreaming(response);
const { vm } = await DefaultRubyVM(module);
Expand Down Expand Up @@ -128,7 +128,7 @@ end

```html
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<script type="text/ruby" data-eval="async">
require "js"
Expand All @@ -143,8 +143,8 @@ Or using `@ruby/wasm-wasi` package API `RubyVM#evalAsync`:
```html
<html>
<script type="module">
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.2/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.2/dist/ruby+stdlib.wasm");
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.0/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/ruby+stdlib.wasm");
const module = await WebAssembly.compileStreaming(response);
const { vm } = await DefaultRubyVM(module);
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_wasm/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubyWasm
VERSION = "2.6.2.dev"
VERSION = "2.7.0"
end
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/gems/js/lib/js/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JS
VERSION = "2.6.2.dev"
VERSION = "2.7.0"
end
4 changes: 2 additions & 2 deletions packages/npm-packages/ruby-3.2-wasm-wasi/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: ../../..
specs:
ruby_wasm (2.6.2.dev)
ruby_wasm (2.7.0)

PATH
remote: ../../gems/js
specs:
js (2.6.2.dev)
js (2.7.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-3.2-wasm-wasi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/3.2-wasm-wasi",
"version": "2.6.2",
"version": "2.7.0",
"description": "Ruby 3.2 built on WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/npm-packages/ruby-3.3-wasm-wasi/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: ../../..
specs:
ruby_wasm (2.6.2.dev)
ruby_wasm (2.7.0)

PATH
remote: ../../gems/js
specs:
js (2.6.2.dev)
js (2.7.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-3.3-wasm-wasi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/3.3-wasm-wasi",
"version": "2.6.2",
"version": "2.7.0",
"description": "Ruby 3.3 built on WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/head-wasm-emscripten",
"version": "2.6.2",
"version": "2.7.0",
"description": "Ruby head built on Emscripten",
"type": "commonjs",
"main": "dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/npm-packages/ruby-head-wasm-wasi/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: ../../..
specs:
ruby_wasm (2.6.2.dev)
ruby_wasm (2.7.0)

GEM
remote: https://rubygems.org/
specs:
js (2.6.2.dev)
js (2.7.0)
power_assert (2.0.3)
test-unit (3.6.2)
power_assert
Expand All @@ -16,7 +16,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
js (= 2.6.2.dev)
js (= 2.7.0)
power_assert
ruby_wasm!
test-unit
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-head-wasm-wasi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/head-wasm-wasi",
"version": "2.6.2",
"version": "2.7.0",
"description": "Ruby head built on WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/npm-packages/ruby-head-wasm-wasip2/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: ../../..
specs:
ruby_wasm (2.6.2.dev)
ruby_wasm (2.7.0)

GEM
remote: https://rubygems.org/
specs:
js (2.6.2.dev)
js (2.7.0)
power_assert (2.0.3)
test-unit (3.6.2)
power_assert
Expand All @@ -16,7 +16,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
js (= 2.6.2.dev)
js (= 2.7.0)
power_assert
ruby_wasm!
test-unit
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-head-wasm-wasip2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/head-wasm-wasip2",
"version": "2.6.2",
"version": "2.7.0",
"description": "Ruby head built on WASI Preview 2",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-emscripten/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install --save @ruby/wasm-emscripten@latest @ruby/head-wasm-emscripten@lat
# or if you want the nightly snapshot
$ npm install --save @ruby/head-wasm-emscripten@next
# or you can specify the exact snapshot version
$ npm install --save @ruby/head-wasm-emscripten@2.6.2-2024-06-29-a
$ npm install --save @ruby/head-wasm-emscripten@2.7.0-2024-11-11-a
```

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/example/hello.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<script type="text/ruby">
puts "Hello, world!"
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/example/lucky.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<button id="draw">Draw Omikuji</button>
<div id="result"></div>
<script type="text/ruby">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.2/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.7.0/dist/browser.script.iife.js"></script>
<script type="text/ruby" src="hello.rb"></script>
</html>
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruby/wasm-wasi",
"version": "2.6.2",
"version": "2.7.0",
"description": "WebAssembly port of CRuby with WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down

0 comments on commit 432434b

Please sign in to comment.