Skip to content

Commit

Permalink
Bump version to 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed May 22, 2024
1 parent f3e6c73 commit 759bccf
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,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.0-2024-05-05-a
$ npm install --save @ruby/wasm-wasi@2.6.1-2024-05-22-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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/dist/ruby+stdlib.wasm");
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.1/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0/dist/browser.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.1/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.0/dist/ruby+stdlib.wasm");
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/dist/ruby+stdlib.wasm");
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.1/dist/browser/+esm";
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.1/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.0"
VERSION = "2.6.1"
end
10 changes: 5 additions & 5 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.0"
VERSION = "2.6.1"
end
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.0",
"version": "2.6.1",
"description": "Ruby 3.2 built on WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
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.0",
"version": "2.6.1",
"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.0",
"version": "2.6.1",
"description": "Ruby head built on Emscripten",
"type": "commonjs",
"main": "dist/index.js",
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.0",
"version": "2.6.1",
"description": "Ruby head built on WASI",
"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.0-2024-05-05-a
$ npm install --save @ruby/head-wasm-emscripten@2.6.1-2024-05-22-a
```

## Quick Start
Expand Down
4 changes: 2 additions & 2 deletions packages/npm-packages/ruby-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.0)
ruby_wasm (2.6.1)

PATH
remote: ../../gems/js
specs:
js (2.6.0)
js (2.6.1)

GEM
remote: https://rubygems.org/
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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.1/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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.1/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.0/dist/browser.script.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@2.6.1/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.0",
"version": "2.6.1",
"description": "WebAssembly port of CRuby with WASI",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down

0 comments on commit 759bccf

Please sign in to comment.