[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/ruby.wasm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TheOdinProject/curriculum#31408 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
notch8/utk_knapsack#148 ·
-
Documentation issues オープン
難易度 2/5 1〜2日 初心者へのやさしさ 72/100
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
betagouv/acces-cible#722 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
foobara/empty-ruby-project-generator#10 · コメント 2 件 ·