1

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

Community
  • 1
  • 1
zengr
  • 38,346
  • 37
  • 130
  • 192

1 Answers1

3
  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

Alberto
  • 43
  • 4
scable
  • 4,064
  • 1
  • 27
  • 41
  • So, I will create a gem and upload it to gecutter. If I want to make an executable, how can I do that? – zengr Jul 06 '10 at 09:44
  • What exactly do you mean by executable? Something like an .exe file? – scable Jul 06 '10 at 09:46
  • yea, say i want to share my app via a downloadable link on my web site. The end user just needs to use my app and he does not have gems installed. So, I basically need to bundle my app as .exe (pc), .app (mac) and Linux executable – zengr Jul 06 '10 at 09:54
  • newgem has a feature of creating executables, does jeweler has a similar kind of feature? (similar to an executable jar in java) – zengr Jul 06 '10 at 10:01