Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是想学习如何在没有 gemspec 的情况下重建 ruby 的 gem:
例如尝试为 Gosu 库创建固定 gem:
gem fetch gosu
gem unpack gosu-0.7.45.gem
cd gosu-0.7.45 && patch -p1 /path/to/patch/fix_cflags.patch
任何的想法 ?
回答我自己的问题:
4a。提取gemspec文件gem unpack --spec <gem archive>
gem unpack --spec <gem archive>
4b。从源代码树的顶部重建更新的 gemgem build /path/to/<gemspec>
gem build /path/to/<gemspec>