ruby - 纯 Ruby 项目的目录布局

标签 ruby code-formatting

我开始学习 ruby 了。我也是一名日常 C++ 开发人员。 对于 C++ 项目,我通常使用以下目录结构

/
 -/bin <- built binaries
 -/build <- build time temporary object (eg. .obj, cmake intermediates)
 -/doc <- manuals and/or Doxygen docs
 -/src
 --/module-1
 --/module-2
 -- non module specific sources, like main.cpp
 - IDE project files (.sln), etc.

您建议 Ruby(非 Rails、非 Merb)的什么目录布局保持干净、简单和可维护?

最佳答案

截至 2011 年,通常使用 jeweler而不是 newgem,因为后者实际上已被放弃。

关于ruby - 纯 Ruby 项目的目录布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56362/

相关文章:

ruby-on-rails - 生产中的 bundler 不会忽略开发和测试 gem

Ruby:按字节长度限制 UTF-8 字符串

ruby - 找不到 macOS Mojave 'ruby/config.h' 文件

go - 带有注释的代码行的约定是什么?

c# - Resharper fluent interface代码格式化(对齐圆点)

eclipse - Eclipse CDT 中 if 条件的换行缩进格式

ruby - ruby-lang.org 上给出的 __FILE__ = $0 的含义

ruby - 参数列表中单独的星号是什么?

JavaScript 格式化 : must braces be on the same line as the if/function/etc keyword?

git - 用黑色重新格式化整个 python 代码库后解决 git 冲突的最佳方法是什么?