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

Removing ActiveSupport dependency

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
ruby
领域
backend

调研方向

Start by auditing the uses of blank?, present?, in_time_zone, and Array.wrap, then compare the existing timezone aliases with TZInfo behavior. Done means removing ActiveSupport and its transitive dependencies while preserving the gem's existing behavior, including timezone support where possible.

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

描述

Hello!

We were looking for a gem to handle rrules, and found this one, which seems excellent. The only issue we found while trying it out is that it pulls ActiveSupport as a dependency. Internally, we try to keep dependencies as lean as possible, and this one is usually a no go due to issues we have had with it on previous projects.

Looking at the codebase, it also seems a bit disproportionate for what it is used for. As far as I've seen, it is used for blank?, present?, in_time_zone and Array.wrap; all of them easily replaceable in the standard library, or just with TZInfo (which ActiveSupport wraps). Changing this would remove quite a few transitive dependencies and a lot of code from ActiveSupport itself.

So, would there be any interest in merging a PR that aims to remove this dependency?

It would:

  • Reduce the amount of dependencies of this gem significantly (from ActiveSupport and 11 transitive dependencies to just TZInfo).
  • It would make this gem more accessible for non-rails Ruby users.

The only issue that I can think of with this change, would be the effort required to review it and that we currently support timezones through ActiveSupport aliases (e.g. Brisbane instead of Australia/Brisbane) which would be difficult to preserve.

主要语言
Ruby
星标
187
派生
26
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

square/ruby-rrule 的其他 Issue

查看 square/ruby-rrule 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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