Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Embeddable IRB, for use on websites

未关闭
#1,223 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
rails, ruby

调研方向

首先梳理 IRB 当前的接口,以及它可以如何与 Opal、Rack、Rails、Sinatra、CGI 和简单的 HTML 页面配合使用。定义可嵌入的含义,包括自定义以及对 rm 和 eval 等操作的控制。Done 应包括一条可正常工作的集成路径,以及针对所请求 Web 用例的文档和示例。

由索引模型根据 Issue 内容生成。

描述

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).

主要语言
Ruby
星标
477
派生
160
平均合并
1 天 7 小时
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ruby/irb 的其他 Issue

查看 ruby/irb 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。