Skip to content

Commit 5222088

Browse files
Move npm packages under @ruby org
1 parent efdc9e1 commit 5222088

File tree

17 files changed

+97
-92
lines changed

17 files changed

+97
-92
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Create and save `index.html` page with the following contents:
1515

1616
```html
1717
<html>
18-
<script src="https://cdn.jsdelivr.net/npm/ruby-3_2[email protected]/dist/browser.script.iife.js"></script>
18+
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.2[email protected]/dist/browser.script.iife.js"></script>
1919
<script type="text/ruby">
2020
puts "Hello, world!"
2121
</script>
@@ -60,19 +60,19 @@ See the `README.md` of each package for more detail and its usage.
6060
</thead>
6161
<tbody>
6262
<tr>
63-
<td><a href="/packages/npm-packages/ruby-3_2-wasm-wasi">ruby-3_2-wasm-wasi</a></td>
63+
<td><a href="/packages/npm-packages/ruby-3_2-wasm-wasi">@ruby/3.2-wasm-wasi</a></td>
6464
<td>CRuby 3.2 built on WASI with JS interop support</td>
65-
<td><a href="https://badge.fury.io/js/ruby-3_2-wasm-wasi" rel="nofollow"><img src="https://badge.fury.io/js/ruby-3_2-wasm-wasi.svg" alt="npm version" style="max-width: 100%;"></a></td>
65+
<td><a href="https://badge.fury.io/js/@ruby/3.2-wasm-wasi" rel="nofollow"><img src="https://badge.fury.io/js/@ruby/3.2-wasm-wasi.svg" alt="npm version" style="max-width: 100%;"></a></td>
6666
</tr>
6767
<tr>
68-
<td><a href="/packages/npm-packages/ruby-head-wasm-wasi">ruby-head-wasm-wasi</a></td>
68+
<td><a href="/packages/npm-packages/ruby-head-wasm-wasi">@ruby/head-wasm-wasi</a></td>
6969
<td>HEAD CRuby built on WASI with JS interop support</td>
70-
<td><a href="https://badge.fury.io/js/ruby-head-wasm-wasi" rel="nofollow"><img src="https://badge.fury.io/js/ruby-head-wasm-wasi.svg" alt="npm version" style="max-width: 100%;"></a></td>
70+
<td><a href="https://badge.fury.io/js/@ruby/head-wasm-wasi" rel="nofollow"><img src="https://badge.fury.io/js/@ruby/head-wasm-wasi.svg" alt="npm version" style="max-width: 100%;"></a></td>
7171
</tr>
7272
<tr>
73-
<td><a href="/packages/npm-packages/ruby-head-wasm-emscripten">ruby-head-wasm-emscripten</a></td>
73+
<td><a href="/packages/npm-packages/ruby-head-wasm-emscripten">@ruby/head-wasm-emscripten</a></td>
7474
<td>HEAD CRuby built on Emscripten (not well tested)</td>
75-
<td><a href="https://badge.fury.io/js/ruby-head-wasm-emscripten" rel="nofollow"><img src="https://badge.fury.io/js/ruby-head-wasm-emscripten.svg" alt="npm version" style="max-width: 100%;"></a></td>
75+
<td><a href="https://badge.fury.io/js/@ruby/head-wasm-emscripten" rel="nofollow"><img src="https://badge.fury.io/js/@ruby/head-wasm-emscripten.svg" alt="npm version" style="max-width: 100%;"></a></td>
7676
</tr>
7777
</tbody>
7878
</table>

package-lock.json

Lines changed: 48 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/npm-packages/ruby-3_2-wasm-wasi/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# ruby-3_2-wasm-wasi
1+
# @ruby/3.2-wasm-wasi
22

33
WebAssembly port of CRuby with WASI.
44

55
This package distributes the CRuby 3.2.
66

77
## Installation
88

9-
For installing ruby-3_2-wasm-wasi family, just run this command in your shell:
9+
For installing `@ruby/3.2-wasm-wasi` family, just run this command in your shell:
1010

1111
```console
12-
$ npm install --save ruby-3_2-wasm-wasi@latest
12+
$ npm install --save @ruby/3.2-wasm-wasi@latest
1313
# or if you want the nightly snapshot
14-
$ npm install --save ruby-3_2-wasm-wasi@next
14+
$ npm install --save @ruby/3.2-wasm-wasi@next
1515
# or you can specify the exact snapshot version
16-
$ npm install --save ruby-3_2[email protected]
16+
$ npm install --save @ruby/3.2[email protected]
1717
```
1818

1919
## Quick Start (for Node.js)
@@ -28,8 +28,8 @@ const main = async () => {
2828
const binary = await fs.readFile(
2929
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
3030
// (only nightly release for now)
31-
// "./node_modules/ruby-3_2-wasm-wasi/dist/ruby.debug+stdlib.wasm"
32-
"./node_modules/ruby-3_2-wasm-wasi/dist/ruby.wasm"
31+
// "./node_modules/@ruby/3.2-wasm-wasi/dist/ruby.debug+stdlib.wasm"
32+
"./node_modules/@ruby/3.2-wasm-wasi/dist/ruby.wasm"
3333
);
3434
const module = await WebAssembly.compile(binary);
3535
const { vm } = await DefaultRubyVM(module);
@@ -63,8 +63,8 @@ In browser, you need a WASI polyfill. See [the example project](https://github.c
6363
const response = await fetch(
6464
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
6565
// (only nightly release for now)
66-
// "https://cdn.jsdelivr.net/npm/ruby-3_2-wasm-wasi@next/dist/ruby.debug+stdlib.wasm"
67-
"https://cdn.jsdelivr.net/npm/ruby-3_2-wasm-wasi@latest/dist/ruby.wasm"
66+
// "https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@next/dist/ruby.debug+stdlib.wasm"
67+
"https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@latest/dist/ruby.wasm"
6868
);
6969
const buffer = await response.arrayBuffer();
7070
const module = await WebAssembly.compile(buffer);

packages/npm-packages/ruby-3_2-wasm-wasi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ruby-3_2-wasm-wasi",
2+
"name": "@ruby/3.2-wasm-wasi",
33
"version": "2.3.0",
44
"description": "Ruby 3.2 built on WASI",
55
"main": "./dist/index.cjs.js",

packages/npm-packages/ruby-head-wasm-emscripten/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# ruby-head-wasm-emscripten
1+
# @ruby/head-wasm-emscripten
22

33
WebAssembly port of CRuby by Emscripten with a thin JavaScript wrapper.
44

55
This package distributes the latest `master` branch of CRuby.
66

77
## Installation
88

9-
For installing ruby-head-wasm-emscripten, just run this command in your shell:
9+
For installing `@ruby/head-wasm-emscripten`, just run this command in your shell:
1010

1111
```console
12-
$ npm install --save ruby-head-wasm-emscripten@latest
12+
$ npm install --save @ruby/head-wasm-emscripten@latest
1313
# or if you want the nightly snapshot
14-
$ npm install --save ruby-head-wasm-emscripten@next
14+
$ npm install --save @ruby/head-wasm-emscripten@next
1515
# or you can specify the exact snapshot version
16-
$ npm install --save ruby-[email protected]
16+
$ npm install --save @ruby/[email protected]
1717
```
1818

1919
## Quick Start
2020

2121
This quick start is for browsers and Node.js environments. See [the example project](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-wasm-emscripten/example) for more details.
2222

2323
```javascript
24-
import { loadRuby } from "ruby-head-wasm-emscripten";
24+
import { loadRuby } from "@ruby/head-wasm-emscripten";
2525

2626
const main = async () => {
2727
const args = ["--disable-gems", "-e", "puts 'Hello :)'"];
2828
console.log(`$ ruby.wasm ${args.join(" ")}`);
2929

3030
const defaultModule = {
31-
locateFile: (path) => "./node_modules/ruby-head-wasm-emscripten/dist/" + path,
31+
locateFile: (path) => "./node_modules/@ruby/head-wasm-emscripten/dist/" + path,
3232
setStatus: (msg) => console.log(msg),
3333
print: (line) => console.log(line),
3434
arguments: args,

packages/npm-packages/ruby-head-wasm-emscripten/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ruby-head-wasm-emscripten",
2+
"name": "@ruby/head-wasm-emscripten",
33
"version": "2.3.0",
44
"description": "Ruby head built on Emscripten",
55
"type": "commonjs",

packages/npm-packages/ruby-head-wasm-wasi/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# ruby-head-wasm-wasi
1+
# @ruby/head-wasm-wasi
22

33
WebAssembly port of CRuby with WASI.
44

55
This package distributes the latest `master` branch of CRuby.
66

77
## Installation
88

9-
For installing ruby-head-wasm-wasi family, just run this command in your shell:
9+
For installing `@ruby/head-wasm-wasi` family, just run this command in your shell:
1010

1111
```console
12-
$ npm install --save ruby-head-wasm-wasi@latest
12+
$ npm install --save @ruby/head-wasm-wasi@latest
1313
# or if you want the nightly snapshot
14-
$ npm install --save ruby-head-wasm-wasi@next
14+
$ npm install --save @ruby/head-wasm-wasi@next
1515
# or you can specify the exact snapshot version
16-
$ npm install --save ruby-[email protected]
16+
$ npm install --save @ruby/[email protected]
1717
```
1818

1919
## Quick Start (for Node.js)
@@ -28,8 +28,8 @@ const main = async () => {
2828
const binary = await fs.readFile(
2929
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
3030
// (only nightly release for now)
31-
// "./node_modules/ruby-head-wasm-wasi/dist/ruby.debug+stdlib.wasm"
32-
"./node_modules/ruby-head-wasm-wasi/dist/ruby.wasm"
31+
// "./node_modules/@ruby/head-wasm-wasi/dist/ruby.debug+stdlib.wasm"
32+
"./node_modules/@ruby/head-wasm-wasi/dist/ruby.wasm"
3333
);
3434
const module = await WebAssembly.compile(binary);
3535
const { vm } = await DefaultRubyVM(module);
@@ -63,8 +63,8 @@ In browser, you need a WASI polyfill. See [the example project](https://github.c
6363
const response = await fetch(
6464
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
6565
// (only nightly release for now)
66-
// "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@next/dist/ruby.debug+stdlib.wasm"
67-
"https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.wasm"
66+
// "https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@next/dist/ruby.debug+stdlib.wasm"
67+
"https://cdn.jsdelivr.net/npm/@ruby/head-wasm-wasi@latest/dist/ruby.wasm"
6868
);
6969
const buffer = await response.arrayBuffer();
7070
const module = await WebAssembly.compile(buffer);

packages/npm-packages/ruby-head-wasm-wasi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ruby-head-wasm-wasi",
2+
"name": "@ruby/head-wasm-wasi",
33
"version": "2.3.0",
44
"description": "Ruby head built on WASI",
55
"main": "./dist/index.cjs.js",

packages/npm-packages/ruby-wasm-emscripten/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ruby-wasm-emscripten",
2+
"name": "@ruby/wasm-emscripten",
33
"version": "0.1.0",
44
"description": "WebAssembly port of CRuby by Emscripten",
55
"type": "commonjs",

packages/npm-packages/ruby-wasm-wasi/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ This package is a template for each channel-specific package.
44

55
| Channel | Package |
66
| ------- | ------------------------------------------------- |
7-
| `head` | [`ruby-head-wasm-wasi`](./../ruby-head-wasm-wasi) |
7+
| `head` | [`@ruby/head-wasm-wasi`](./../ruby-head-wasm-wasi) |
8+
| `3.2` | [`@ruby/3.2-wasm-wasi`](./../ruby-3_2-wasm-wasi) |

0 commit comments

Comments
 (0)