管理项目的Ruby依赖项

时间:2021-09-19 23:56:39

I'm switching to Ruby for a project due to its excellent meta-programming support.

由于其出色的元编程支持,我正在切换到Ruby项目。

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.

作为Scala的人,我会使用buildr或Maven来管理我的项目。我可以让它生成一个框架目录结构,添加我的依赖项,然后在构建时,自动下载依赖项。

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.

我如何在Ruby中使用此工作流程?似乎有很多程序做的事情略有不同,听起来像这样,我不知道他们的用例是什么或他们的差异是什么。似乎Bundler,Isolate和Jeweler很接近,但我不知道哪个是“最好的”或最广泛使用的。我想遵循一个关于如何处理更大的Ruby项目的惯用标准,就像现在的Maven风格的Java结构一样。

Thanks everyone!

1 个解决方案

#1


3  

I think Bundler is the way to go, at least it's becoming the standard and you can configure it in lots of ways

我认为Bundler是最佳选择,至少它已成为标准,您可以通过多种方式对其进行配置

#1


3  

I think Bundler is the way to go, at least it's becoming the standard and you can configure it in lots of ways

我认为Bundler是最佳选择,至少它已成为标准,您可以通过多种方式对其进行配置