ruby_wasm 2.5.2-x86_64-darwin → 2.6.0-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b5de0fea7c3c03e5f7b6db397047e6f756887293460f454584a2b83552ac1da
4
- data.tar.gz: c889a396f64eb2e6bc09e4e85e9f42ce25e93bea5eea985276b1e4ab50f8812e
3
+ metadata.gz: 2f2fea2a56d7fa6c0fef885fbbf8f4ccb4741a30eb9a42dad64861a3cf466563
4
+ data.tar.gz: 17b4e266fd7bf112db801bffbcef96680d8f3053f650623bb384a4b775e7ae31
5
5
  SHA512:
6
- metadata.gz: 5c02666f61fd49aa80f81f6eae1e8ec1ef78ce88fa92af7dd04bdc82576c5e2ac1d206394d857ba68b86f1b1d13a41ea3f21164e4bc7e25d747a6b78d00e81a0
7
- data.tar.gz: 5bcc48c84a39ad1e7bfe33c08f174277469be74e10e8fcd77dc8612871678a7bbb54858b32ee6f939e644ac7d80decf2e38d83a581c2b09035fa73e42cbb05ec
6
+ metadata.gz: fcf59dc0f91ccfe2a134ba340e44612fda6f659565b35e57daeaf97b519e551e2b4d49cbac96f2f95e3afb4882ec093cee430e27097a8a1a94cffb966a068c08
7
+ data.tar.gz: 3c204c791a2532691150e678b74818c4215fc755383fbca3d32292ae2f7e132a574a412d94c02fde487ca0ddce0c28f7e37fc4830761662b566e92ce9669cbe3
data/CONTRIBUTING.md CHANGED
@@ -110,7 +110,8 @@ $ git commit -m"Bump version to 0.6.0"
110
110
  $ git tag 0.6.0
111
111
  $ git push origin 0.6.0
112
112
  $ for pkg in pkg/ruby_wasm-*; do gem push $pkg; done
113
- $ (cd packages/gems/js/ && gem build && gem push js-*.gem)
113
+ $ gem build && gem push ruby_wasm-*.gem && rm ruby_wasm-*.gem
114
+ $ (cd packages/gems/js/ && gem build && gem push js-*.gem && rm js-*.gem)
114
115
  ```
115
116
 
116
117
  ## Release Channels
@@ -124,5 +125,5 @@ $ npm install --save @ruby/wasm-wasi@latest
124
125
  # or if you want the nightly snapshot
125
126
  $ npm install --save @ruby/wasm-wasi@next
126
127
  # or you can specify the exact snapshot version
127
- $ npm install --save @ruby/wasm-wasi@2.5.2-2024-05-04-a
128
+ $ npm install --save @ruby/wasm-wasi@2.6.0-2024-05-05-a
128
129
  ```
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.3-wasm-wasi@2.5.2/dist/browser.script.iife.js"></script>
26
+ <script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/dist/browser.script.iife.js"></script>
27
27
  <script type="text/ruby">
28
28
  require "js"
29
29
 
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.3-wasm-wasi@2.5.2/dist/browser.script.iife.js"></script>
41
+ <script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/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.5.2/dist/browser/+esm";
55
- const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.5.2/dist/ruby+stdlib.wasm");
54
+ import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.0/dist/browser/+esm";
55
+ const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/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.5.2/dist/browser.umd.js"></script>
72
+ <script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.0/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.3-wasm-wasi@2.5.2/dist/ruby+stdlib.wasm");
76
+ const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/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.3-wasm-wasi@2.5.2/dist/browser.script.iife.js"></script>
131
+ <script src="https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/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.5.2/dist/browser/+esm";
147
- const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.5.2/dist/ruby+stdlib.wasm");
146
+ import { DefaultRubyVM } from "https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.6.0/dist/browser/+esm";
147
+ const response = await fetch("https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.6.0/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
Binary file
@@ -34,6 +34,7 @@ module RubyWasm
34
34
  def make_args(crossruby)
35
35
  make_args = []
36
36
  make_args << "CC=#{@toolchain.cc}"
37
+ make_args << "CXX=#{@toolchain.cc}"
37
38
  make_args << "LD=#{@toolchain.ld}"
38
39
  make_args << "AR=#{@toolchain.ar}"
39
40
  make_args << "RANLIB=#{@toolchain.ranlib}"
@@ -26,6 +26,7 @@ module RubyWasm
26
26
  def tools_args
27
27
  args = []
28
28
  args << "CC=#{@toolchain.cc}"
29
+ args << "CXX=#{@toolchain.cxx}"
29
30
  args << "LD=#{@toolchain.ld}"
30
31
  args << "AR=#{@toolchain.ar}"
31
32
  args << "RANLIB=#{@toolchain.ranlib}"
@@ -43,7 +43,7 @@ module RubyWasm
43
43
  tool
44
44
  end
45
45
 
46
- %i[cc ranlib ld ar].each do |name|
46
+ %i[cc cxx ranlib ld ar].each do |name|
47
47
  define_method(name) do
48
48
  @tools_cache ||= {}
49
49
  @tools_cache[name] ||= find_tool(name)
@@ -84,6 +84,7 @@ module RubyWasm
84
84
 
85
85
  @tools = {
86
86
  cc: "#{wasi_sdk_path}/bin/clang",
87
+ cxx: "#{wasi_sdk_path}/bin/clang++",
87
88
  ld: "#{wasi_sdk_path}/bin/clang",
88
89
  ar: "#{wasi_sdk_path}/bin/llvm-ar",
89
90
  ranlib: "#{wasi_sdk_path}/bin/llvm-ranlib"
@@ -178,7 +179,7 @@ module RubyWasm
178
179
 
179
180
  class Emscripten < Toolchain
180
181
  def initialize
181
- @tools = { cc: "emcc", ld: "emcc", ar: "emar", ranlib: "emranlib" }
182
+ @tools = { cc: "emcc", cxx: "em++", ld: "emcc", ar: "emar", ranlib: "emranlib" }
182
183
  @name = "emscripten"
183
184
  end
184
185
 
@@ -1,3 +1,3 @@
1
1
  module RubyWasm
2
- VERSION = "2.5.2"
2
+ VERSION = "2.6.0"
3
3
  end
data/package-lock.json CHANGED
@@ -4783,7 +4783,7 @@
4783
4783
  },
4784
4784
  "packages/npm-packages/ruby-3.2-wasm-wasi": {
4785
4785
  "name": "@ruby/3.2-wasm-wasi",
4786
- "version": "2.5.2",
4786
+ "version": "2.6.0",
4787
4787
  "license": "MIT",
4788
4788
  "dependencies": {
4789
4789
  "@ruby/wasm-wasi": "^2.0.0"
@@ -4791,7 +4791,7 @@
4791
4791
  },
4792
4792
  "packages/npm-packages/ruby-3.3-wasm-wasi": {
4793
4793
  "name": "@ruby/3.3-wasm-wasi",
4794
- "version": "2.5.2",
4794
+ "version": "2.6.0",
4795
4795
  "license": "MIT",
4796
4796
  "dependencies": {
4797
4797
  "@ruby/wasm-wasi": "^2.0.0"
@@ -4799,12 +4799,12 @@
4799
4799
  },
4800
4800
  "packages/npm-packages/ruby-head-wasm-emscripten": {
4801
4801
  "name": "@ruby/head-wasm-emscripten",
4802
- "version": "2.5.2",
4802
+ "version": "2.6.0",
4803
4803
  "license": "MIT"
4804
4804
  },
4805
4805
  "packages/npm-packages/ruby-head-wasm-wasi": {
4806
4806
  "name": "@ruby/head-wasm-wasi",
4807
- "version": "2.5.2",
4807
+ "version": "2.6.0",
4808
4808
  "license": "MIT",
4809
4809
  "dependencies": {
4810
4810
  "@ruby/wasm-wasi": "^2.0.0"
@@ -4820,7 +4820,7 @@
4820
4820
  },
4821
4821
  "packages/npm-packages/ruby-wasm-wasi": {
4822
4822
  "name": "@ruby/wasm-wasi",
4823
- "version": "2.5.2",
4823
+ "version": "2.6.0",
4824
4824
  "license": "MIT",
4825
4825
  "dependencies": {
4826
4826
  "tslib": "^2.6.1"
@@ -242,6 +242,7 @@ module RubyWasm
242
242
  def self.find_path: (String command) -> String?
243
243
  def self.check_executable: (String command) -> String
244
244
  def cc: -> String
245
+ def cxx: -> String
245
246
  def ranlib: -> String
246
247
  def ld: -> String
247
248
  def ar: -> String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_wasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.6.0
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Yuta Saito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-04 00:00:00.000000000 Z
11
+ date: 2024-05-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby to WebAssembly toolkit. This gem takes Ruby code and Gemfile, and
14
14
  packages them with Ruby runtime into a WebAssembly binary.