ruby_wasm 2.7.1-x86_64-linux → 2.7.2-x86_64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/docs/cheat_sheet.md +8 -8
- data/lib/ruby_wasm/3.2/ruby_wasm.so +0 -0
- data/lib/ruby_wasm/3.4/ruby_wasm.so +0 -0
- data/lib/ruby_wasm/build/toolchain.rb +1 -1
- data/lib/ruby_wasm/cli.rb +1 -1
- data/lib/ruby_wasm/packager/component_adapter.rb +1 -3
- data/lib/ruby_wasm/version.rb +1 -1
- data/package-lock.json +2400 -1849
- data/package.json +4 -4
- data/rakelib/ci.rake +34 -0
- data/sig/ruby_wasm/cli.rbs +4 -0
- data/sig/ruby_wasm/packager.rbs +4 -0
- metadata +18 -6
- data/lib/ruby_wasm/3.1/ruby_wasm.so +0 -0
- data/lib/ruby_wasm/3.3/ruby_wasm.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dba712de265137347381c0dda60772f2bdcaaa7f86d8533f5daa6fe87827473
|
4
|
+
data.tar.gz: 8a1bff1fc0ef806eab846953cc236244b0a38ccb98e08839c92b22bf6f8685a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6463461470868c81e52bb7740c76095fbb50dcddca8f07d895cd259a6e819f55824cbaa5ba9ebe550a711bd12d422cb644922172eeefdb1acf41eca56e6369dd
|
7
|
+
data.tar.gz: 1805cc8ec28ee3a0e80f33e13d8f21825a073b0d252b2a0d14fe93f14a3a538ffb0cd0be509b9e505899ef8c7194c15487412b1f09ac704cba58f299690076d7
|
data/CONTRIBUTING.md
CHANGED
@@ -112,7 +112,7 @@ $ git push origin 0.6.0
|
|
112
112
|
# After GitHub Actions "Build gems" is done
|
113
113
|
# https://github.com/ruby/ruby.wasm/actions/workflows/build-gems.yml
|
114
114
|
$ gh run download <run-id>
|
115
|
-
$ for pkg in cross-gem
|
115
|
+
$ for pkg in cross-gem-*/ruby_wasm-*; do gem push $pkg; done
|
116
116
|
$ gem build && gem push ruby_wasm-*.gem && rm ruby_wasm-*.gem
|
117
117
|
$ (cd packages/gems/js/ && gem build && gem push js-*.gem && rm js-*.gem)
|
118
118
|
$ rake bump_dev_version
|
@@ -129,7 +129,7 @@ $ npm install --save @ruby/wasm-wasi@latest
|
|
129
129
|
# or if you want the nightly snapshot
|
130
130
|
$ npm install --save @ruby/wasm-wasi@next
|
131
131
|
# or you can specify the exact snapshot version
|
132
|
-
$ npm install --save @ruby/wasm-wasi@2.7.
|
132
|
+
$ npm install --save @ruby/wasm-wasi@2.7.2-2025-10-03-a
|
133
133
|
```
|
134
134
|
|
135
135
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Create and save `index.html` page with the following contents:
|
|
23
23
|
|
24
24
|
```html
|
25
25
|
<html>
|
26
|
-
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/browser.script.iife.js"></script>
|
27
27
|
<script type="text/ruby">
|
28
28
|
require "js"
|
29
29
|
|
data/Rakefile
CHANGED
data/docs/cheat_sheet.md
CHANGED
@@ -38,7 +38,7 @@ The easiest way to run Ruby on browser is to use `browser.script.iife.js` script
|
|
38
38
|
|
39
39
|
```html
|
40
40
|
<html>
|
41
|
-
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
41
|
+
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/browser.script.iife.js"></script>
|
42
42
|
<script type="text/ruby">
|
43
43
|
require "js"
|
44
44
|
JS.global[:document].write "Hello, world!"
|
@@ -51,8 +51,8 @@ If you want to control Ruby VM from JavaScript, you can use `@ruby/wasm-wasi` pa
|
|
51
51
|
```html
|
52
52
|
<html>
|
53
53
|
<script type="module">
|
54
|
-
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.
|
55
|
-
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
54
|
+
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.2/dist/browser/+esm";
|
55
|
+
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/ruby+stdlib.wasm");
|
56
56
|
const module = await WebAssembly.compileStreaming(response);
|
57
57
|
const { vm } = await DefaultRubyVM(module);
|
58
58
|
|
@@ -69,11 +69,11 @@ If you want to control Ruby VM from JavaScript, you can use `@ruby/wasm-wasi` pa
|
|
69
69
|
|
70
70
|
```html
|
71
71
|
<html>
|
72
|
-
<script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.
|
72
|
+
<script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.2/dist/browser.umd.js"></script>
|
73
73
|
<script>
|
74
74
|
const main = async () => {
|
75
75
|
const { DefaultRubyVM } = window["ruby-wasm-wasi"];
|
76
|
-
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
76
|
+
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/ruby+stdlib.wasm");
|
77
77
|
const module = await WebAssembly.compileStreaming(response);
|
78
78
|
const { vm } = await DefaultRubyVM(module);
|
79
79
|
|
@@ -128,7 +128,7 @@ end
|
|
128
128
|
|
129
129
|
```html
|
130
130
|
<html>
|
131
|
-
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
131
|
+
<script src="https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/browser.script.iife.js"></script>
|
132
132
|
<script type="text/ruby" data-eval="async">
|
133
133
|
require "js"
|
134
134
|
|
@@ -143,8 +143,8 @@ Or using `@ruby/wasm-wasi` package API `RubyVM#evalAsync`:
|
|
143
143
|
```html
|
144
144
|
<html>
|
145
145
|
<script type="module">
|
146
|
-
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.
|
147
|
-
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.
|
146
|
+
import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.2/dist/browser/+esm";
|
147
|
+
const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.2/dist/ruby+stdlib.wasm");
|
148
148
|
const module = await WebAssembly.compileStreaming(response);
|
149
149
|
const { vm } = await DefaultRubyVM(module);
|
150
150
|
|
Binary file
|
Binary file
|
@@ -46,7 +46,7 @@ module RubyWasm
|
|
46
46
|
%i[cc cxx ranlib ld ar].each do |name|
|
47
47
|
define_method(name) do
|
48
48
|
@tools_cache ||= {} #: Hash[String, String]
|
49
|
-
@tools_cache[name] ||= find_tool(name)
|
49
|
+
__skip__ = @tools_cache[name] ||= find_tool(name)
|
50
50
|
@tools_cache[name]
|
51
51
|
end
|
52
52
|
end
|
data/lib/ruby_wasm/cli.rb
CHANGED
@@ -266,7 +266,7 @@ module RubyWasm
|
|
266
266
|
source[:patches] = patches_dirs.flat_map do |patches_dir|
|
267
267
|
Dir[File.join(patches_dir, name, "*.patch")]
|
268
268
|
.map { |p| File.expand_path(p) }
|
269
|
-
end
|
269
|
+
end.uniq
|
270
270
|
end
|
271
271
|
|
272
272
|
build_manifest = File.join(root, "build_manifest.json")
|
@@ -1,10 +1,8 @@
|
|
1
1
|
module RubyWasm::Packager::ComponentAdapter
|
2
|
-
module_function
|
3
|
-
|
4
2
|
# The path to the component adapter for the given WASI execution model.
|
5
3
|
#
|
6
4
|
# @param exec_model [String] "command" or "reactor"
|
7
|
-
def wasi_snapshot_preview1(exec_model)
|
5
|
+
def self.wasi_snapshot_preview1(exec_model)
|
8
6
|
File.join(
|
9
7
|
File.dirname(__FILE__),
|
10
8
|
"component_adapter",
|
data/lib/ruby_wasm/version.rb
CHANGED