[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?
まだ誰も着手していません。
- 主要言語
- Ruby
- スター
- 875
- フォーク
- 68
- 平均マージ
- 9日 5時間
- マージ済み PR(30日)
- 1
説明
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.)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
既存の FAQ と、issue で説明されている ruby.wasm gem のサポートを確認してください。埋め込み Ruby ソースと File.read() を使用して単純な gem をインストールまたはシミュレートできるかを確認し、サポートされているアプローチ、制限事項、および HelloWorld のケースの例を文書化してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ruby, wasm
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100