[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 文件
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- ruby, wasm
研究方向
檢視現有的 FAQ,以及 issue 中所描述的 ruby.wasm gem 支援。確認是否可以透過嵌入的 Ruby 原始碼和 File.read() 安裝或模擬簡單的 gem,然後記錄支援的方法、限制,以及 HelloWorld 情境的範例。
由索引模型根據 Issue 內容生成。
描述
I suggest a new FAQ entry e. g. dealing with ruby gems via ruby.wasm.
Now, I assume right now this is not possible - that is ok. Please mention it in the FAQ.
But ... let's assume that some gems are simple.
Like a hello world gem:
class HelloWorld
def initialize
end
def result?
'Hello world!'
end
end
So we can use the ruby.wasm .write() method onto result? (or any other
method name that is similar, this here is just an example).
Such code should work just fine. Just that it may be stored in a .gem file.
Is there a way to get support for that? In such a simple case we can probably
just embed the text (content of hello_world.rb) into the String that is evaluated,
so just File.read() should suffice. But I wonder whether there is some official
support for this via ruby.wasm. Many simple gems could be made to work
that way. (Of course other gems that are more complicated or require
Thread may not work, but perhaps in the future.)
- 主要語言
- Ruby
- 星號
- 875
- 分支
- 68
- 平均合併
- 9 天 5 小時
- 30 天內合併 PR
- 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/ruby.wasm 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 5/5 一週以上 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 25/100
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
hanami/hanami-cli#449 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
resque/resque-scheduler#826 ·
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 75/100