启动 Ruby 项目:github +构建工具
我开始尝试使用 Ruby 并尝试使用 Ruby 和 wxRuby 制作桌面应用程序。
因此,要开始一个新的仅包含 ruby 的项目,我有几个问题:
我需要一个标准的目录结构,最好的方法是什么?我尝试了 newgem ,详细信息这里,但似乎newgem网站没有更新,并且他们网站上描述的文件夹结构与我的机器上生成的不同。此外,它需要 rubyforge 存储库,但我希望我的项目位于 github 上,那么我该如何解决它呢? (我认为 newgem 使用 hoe 来创建文件夹结构)
我需要一个构建工具,我已经使用了 ant 和 maven for Java,那么对于仅 Ruby 项目来说最好的构建工具是什么?
你们制作 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:
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)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?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一个例子:创建你的第一个 ruby gem 并将其发布到 gemcutter
至于 github,他们停止了直接 gem 构建,但你仍然可以轻松地在那里托管你的源代码。
要将应用程序作为可执行文件分发,请查看 RubyScript2Exe 或 OCRA
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