启动 Ruby 项目:github +构建工具

发布于 2024-09-08 18:43:33 字数 706 浏览 1 评论 0原文

我开始尝试使用 Ruby 并尝试使用 Ruby 和 wxRuby 制作桌面应用程序。

因此,要开始一个新的仅包含 ruby​​ 的项目,我有几个问题:

  1. 我需要一个标准的目录结构,最好的方法是什么?我尝试了 newgem ,详细信息这里,但似乎newgem网站没有更新,并且他们网站上描述的文件夹结构与我的机器上生成的不同。此外,它需要 ruby​​forge 存储库,但我希望我的项目位于 github 上,那么我该如何解决它呢? (我认为 newgem 使用 hoe 来创建文件夹结构)

  2. 我需要一个构建工具,我已经使用了 ant 和 maven for Java,那么对于仅 Ruby 项目来说最好的构建工具是什么?

  3. 你们制作 Ruby 项目的“标准”方式是什么?

我只需要一个开头,就像在 Java 中一样,我使用 Eclipse,创建一个新项目,创建一个 ant 文件,然后就可以开始了。现在,由于我没有使用 Ruby 的 IDE(使用 textmate),我应该如何处理呢?

谢谢

I am starting out to play around with Ruby and trying to make a desktop app using Ruby and wxRuby.

So, to start out with a new ruby only project, I have few questions:

  1. I need a standard directory structure, what is the best possible way to do it? I tried out newgem with details here, but it seems that that the newgem website is not updated and the folder structure described on their website is different that what is generated on my machine. More over, it requires a rubyforge repo, but I want my project on github, so how do I get around it?
    (I think newgem used hoe to create the folder structure)

  2. I need a use a build tool, I have used ant and maven for Java, so what is the best build tool for Ruby only projects?

  3. What is the "standard" way you guys make a Ruby project?

I just need a headstart, like in Java, I use Eclipse, create a new project, create an ant file and I am good to go. Now, since I am not using an IDE for Ruby (using textmate), how should I go about it?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚风撩人 2024-09-15 18:43:33
  1. 珠宝商
  2. Rake

这里有一个例子:创建你的第一个 ruby​​ gem 并将其发布到 gemcutter

至于 github,他们停止了直接 gem 构建,但你仍然可以轻松地在那里托管你的源代码。

要将应用程序作为可执行文件分发,请查看 RubyScript2ExeOCRA

  1. Jeweler
  2. Rake

And here an example: Create your first ruby gem and release it to gemcutter

As for github, they stopped direct gem building but still you can host your source there easily.

To distribute your application as executable have a look at RubyScript2Exe or OCRA

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文