管理项目的 Ruby 依赖项
由于 Ruby 出色的元编程支持,我正在改用 Ruby 进行项目。
作为 Scala 人员,我会使用 buildr 或 Maven 来管理我的项目。我可以让它生成一个框架目录结构,添加我的依赖项,然后当我构建时,依赖项会自动下载。
我将如何在 Ruby 中使用这个工作流程?似乎有很多程序做的事情听起来有点不同,听起来像这样,但我不知道它们的用例是什么或它们的差异是什么。看起来 Bundler、Isolate 和 Jeweler 很接近,但我不知道哪个是“最好的”或最广泛使用的。我希望遵守关于如何处理大型 Ruby 项目的惯用标准,就像当今 Java 的 Maven 风格结构一样。
谢谢大家!
I'm switching to Ruby for a project due to its excellent meta-programming support.
As a Scala guy, I'd use buildr or Maven to manage my project. I could have it generate a skeleton directory structure, add my dependencies, then when I build, the dependencies are downloaded automagically.
How would I use this workflow in Ruby? There seem to be lots of programs that do slightly different things that sound like this, and I don't know what their use cases are or what their differences are. It seems like Bundler, Isolate and Jeweler are close, but I don't know which is "best" or most widely-used. I'd like to conform to an idiomatic standard on how to work on larger Ruby projects, just like how Maven-style structures are for Java nowadays.
Thanks everyone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 Bundler 是可行的方法,至少它正在成为标准,并且您可以通过多种方式配置它
I think Bundler is the way to go, at least it's becoming the standard and you can configure it in lots of ways