Allow rdoc to be an optional dependency?

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先检查 IRB 中的 rdoc 集成,以及其依赖项在 Gemfile 中的指定方式。确定如何将 rdoc 和 ERB 设为可选,同时为需要它的用户保留该集成;当不需要该集成时,IRB 无需安装这些依赖项即可使用,即视为完成。

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

描述

While an rdoc integration into irb has definite advantages, there are circumstances where the rdoc integration is more of a hinderance, e.g. wenn used as a console in production-like environment.

This also extends to the rdocs dependencies - if e.g. the project in question does not otherwise use ERB, we will always need to install it in the production environments anyway. And then be confronted with handling security issues for ERB, even if they aren't really pertinent to the project in question.

I'm not aware of an easy way to mark dependencies as optional with the current gemfile specification, so this issue might need to be put on the back burner until such a time that this can be specified in the gemfile. :)

主要语言
Ruby
星标
477
派生
165
平均合并
1 天 19 小时
30 天内合并 PR
5

环境准备

  • 没有 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 摘要。