热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

启动Ruby项目:github+build工具-StartingaRubyproject:github+buildtool

IamstartingouttoplayaroundwithRubyandtryingtomakeadesktopappusingRubyandwxRuby.我

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

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

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

所以,从一个新的ruby项目开始,我几乎没有问题:

  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)

    我需要一个标准的目录结构,最好的方法是什么?我在这里尝试了newgem的详细信息,但似乎newgem网站没有更新,他们网站上描述的文件夹结构与我的机器上生成的文件夹结构不同。更重要的是,它需要一个rubyforge回购,但我想在github上我的项目,所以我该如何解决它? (我认为newgem使用hoe来创建文件夹结构)

  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?

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

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

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

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?

我只需要一个headstart,就像在Java中一样,我使用Eclipse,创建一个新项目,创建一个ant文件,我很高兴。现在,因为我没有使用IDE的Ruby(使用textmate),我应该怎么做呢?

Thanks

1 个解决方案

#1


3  

  1. Jeweler
  2. Rake

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

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

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

至于github,他们停止了直接宝石建造,但你仍然可以轻松地在那里托管你的来源。

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

要将应用程序分发为可执行文件,请查看RubyScript2Exe或OCRA


推荐阅读
author-avatar
心若在梦就在_2012
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有