File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff 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-head-wasm-wasi@0.4 .0/dist/browser.script.iife.js" ></script >
18+ <script src =" https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5 .0/dist/browser.script.iife.js" ></script >
1919 <script type =" text/ruby" >
2020 puts " Hello, world!"
2121 </script >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $ npm install --save ruby-head-wasm-wasi@latest
1313# or if you want the nightly snapshot
1414$ npm install --save ruby-head-wasm-wasi@next
1515# or you can specify the exact snapshot version
16- $ npm install --save ruby-head-wasm-wasi@0.4 .0-2022-11-04 -a
16+ $ npm install --save ruby-head-wasm-wasi@0.5 .0-2022-11-12 -a
1717```
1818
1919## Quick Start (for Node.js)
Original file line number Diff line number Diff line change 11{
22 "name" : " ruby-head-wasm-wasi" ,
3- "version" : " 0.4 .0" ,
3+ "version" : " 0.5 .0" ,
44 "description" : " Ruby head built on WASI" ,
55 "main" : " ./dist/index.cjs.js" ,
66 "umd:main" : " ./dist/index.umd.js" ,
Original file line number Diff line number Diff line change 11< html >
2- < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.4 .0/dist/browser.script.iife.js "> </ script >
2+ < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5 .0/dist/browser.script.iife.js "> </ script >
33 < script type ="text/ruby ">
44 puts "Hello, world!"
55 </ script >
Original file line number Diff line number Diff line change 11< html >
2- < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.4 .0/dist/browser.script.iife.js "> </ script >
2+ < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5 .0/dist/browser.script.iife.js "> </ script >
33 < button id ="draw "> Draw Omikuji</ button >
44 < div id ="result "> </ div >
55 < script type ="text/ruby ">
Original file line number Diff line number Diff line change 11< html >
2- < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.4 .0/dist/browser.script.iife.js "> </ script >
2+ < script src ="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@0.5 .0/dist/browser.script.iife.js "> </ script >
33 < script type ="text/ruby " src ="hello.rb "> </ script >
44</ html >
You can’t perform that action at this time.
0 commit comments