[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- ruby, wasm
- Ambito
- documentation
Direzione di ricerca
Esamina la FAQ esistente e il supporto per il gem ruby.wasm descritto nell’issue. Verifica se è possibile installare o simulare gem semplici tramite codice sorgente Ruby incorporato e File.read(), quindi documenta l’approccio supportato, le limitazioni e un esempio per il caso HelloWorld.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.)
- Lingua principale
- Ruby
- Stelle
- 875
- Fork
- 68
- Merge medio
- 9g 5h
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ruby/ruby.wasm
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Using gems with Node WASI Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di ruby/ruby.wasm
Issue simili
-
SyncEm always forwards a dummy block, so wrapped methods lose their no-block/Enumerator behavior Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
endoflife-date/endoflife.date#11086 ·
-
internal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Kong/developer.konghq.com#7322 ·
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100