Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Embeddable IRB, for use on websites

Aperta
#1,223 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
rails, ruby

Direzione di ricerca

Inizia mappando le interfacce attuali di IRB e come potrebbe essere utilizzato con Opal, Rack, Rails, Sinatra, CGI e semplici pagine HTML. Definisci cosa significa integrabile, inclusi la personalizzazione e il controllo su operazioni come rm ed eval. Done dovrebbe includere un percorso di integrazione funzionante, oltre a documentazione ed esempi per i casi d’uso web richiesti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hey there folks,

Many years ago, _why wrote a shell, I think, in ruby, that was sandboxed and could
be used on the www. Shortly after that, BasicObject was added (I think), based on an
old discussion.

Since then I have seen some embedded uses of ruby shells, but I tend to forget where.

Could IRB itself get the ability to be "embeddable", for use on the world wide web,
including local websites and simple .html pages too, perhaps via opal?

Let me explain the use case.

I'd love to be able to use IRB via the web as primary interface, but I don't know what
has to be done to do so. My hope is that this could happen via IRB itself, and then
also be documented, with some examples, e. g. showcasing how to do so via a
simple .html page, perhaps via opal, but also more advanced use cases, rack,
rails, sinatra, oldschool .cgi files, you name it. Enough information to be able to
cover these use cases. That way I can e. g. have irb as a small "widget" on a
webpage, loaded with my own custom code, or restricted, and then allow
things to be done there (possibly sandboxed, e. g. "rm" probably should be
controllable and probably eval() too).

Lingua principale
Ruby
Stelle
477
Fork
160
Merge medio
1g 7h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ruby/irb

Tutte le issue di ruby/irb

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.