Problems upgrading gems
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- ruby
- 领域
- backend, build-system
调研方向
从 issue 中描述的依赖约束开始,检查 assets/stylesheets/application.css.scss,尤其是其中对 @import 的使用。确定项目应该替换 sprockets-sass,还是修改该 stylesheet,然后验证所选择的方案允许升级 Sinatra、Rack、Sprockets 和 Ruby。完成的标准是解决依赖冲突,同时不破坏 stylesheet 编译。
由索引模型根据 Issue 内容生成。
描述
As it stands several key gems cannot be upgraded because of version conflicts. Specifically, v4 of sinatra depends on rack (>= 3, < 4) and that conflicts with sprockets-sass. This is because DevDocs depends on sprockets-sass, but the latest version of that is only compatible with sprockets < 4 and finally sprockets 3.75 (the highest version compatible with sprockets-sass) requires rack <3.
In short, we can't upgrade sinatra or rack because there's no compatible version of sprockets-sass and that's unmaintained at this point.
What sprocket-sass is doing
It enables @import statements to work in .scss files, including when the imported file is an ERB that in turn compiles to SCSS (that compiles to CSS). The main place this happens is
https://github.com/freeCodeCamp/devdocs/blob/2c5b5bd25985101fa2f06c28bb9bae15d821bfbc/assets/stylesheets/application.css.scss
What can be done
I see two potential paths forward
- Fork
sprockets-sassand make it compatible withsprockets4 (and Ruby 3) - Inline the imports and convert
application.css.scsstoapplication.css.scss.erb, which should work since the issuesprockets-sasssolved was specifically@importingfiles, not compiling .erb files.
I'm not sure how long 1. would take. I looked into it, but I didn't make much headway.
Option 2. would be ugly, but not awful. Reason being, the imported files are not used more than once, so the code wouldn't get any less DRY. We would end up with one massive file, though.
- 主要语言
- Ruby
- 星标
- 39.7k
- 派生
- 2.7k
- 平均合并
- 5 天 10 小时
- 30 天内合并 PR
- 13
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
freeCodeCamp/devdocs 的其他 Issue
-
docs/improvement
难度 2/5 1-3 小时 新手友好度 62/100
freeCodeCamp/devdocs#1989 · 4 条评论 · 4 个 reaction ·
维护者通常 2 天内回复
-
Documentation versions report for November 2026可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 35/100
freeCodeCamp/devdocs#2794 · 2 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 32/100
freeCodeCamp/devdocs#2780 ·
维护者通常 2 天内回复
-
sidebar未关闭feature
难度 4/5 3-5 天 新手友好度 22/100
freeCodeCamp/devdocs#2776 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 8/100
freeCodeCamp/devdocs#2746 ·
维护者通常 2 天内回复
查看 freeCodeCamp/devdocs 的全部 Issue
相似的 Issue
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)未关闭
难度 1/5 1 小时以内 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 86/100
TheOdinProject/curriculum#31585 ·
维护者通常 1 天内回复
-
enhancement P2 v1.6.0
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
No test checks that judges print creates nested output directories (lib/judges/commands/print.rb:62)可能已有人在做 @sherenkov 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
yegor256/judges#1360 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
zold-io/wts.zold.io#654 ·
维护者通常 1 天内回复