Directory structure best practice?

Hi all!

What are the best practices concerning directory structures for Ruby programs?

I want to run tests using Cucumber and RSpec, so referring to the RSpec book I created a features/ and spec/ folders for the tests, a lib/ folder for my code, and a bin/ folder for all that shall be executed.

What do I need to roll out my own Gem, if needed? What is the expected distribution format of a gem?

Also, is there a way to pack the app for distribution for Linux, Windows, and Mac?

···

--
Thank you for your brain.
-MrZombie

This should be really helpful to you:
http://www.jamievandyke.com/building-a-gem-using-bdd

Also, look in gems you have installed.

Below here is what you asked for, typical and simple:

MyGem/
  README
  implDemo.rb
  lib/
    MyGem.rb
    MyGem/
      gemthis.rb
      gemthat.rb
  test/
    unit.rb

···

From: MrZombie <mrzombie@thezombie.net>
Organization: albasani.net
Reply-To: <ruby-talk@ruby-lang.org>
Newsgroups: comp.lang.ruby
Date: Tue, 27 Jul 2010 04:30:25 +0900
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Subject: Directory structure best practice?

Hi all!

What are the best practices concerning directory structures for Ruby programs?

I want to run tests using Cucumber and RSpec, so referring to the RSpec
book I created a features/ and spec/ folders for the tests, a lib/
folder for my code, and a bin/ folder for all that shall be executed.

What do I need to roll out my own Gem, if needed? What is the expected
distribution format of a gem?

Also, is there a way to pack the app for distribution for Linux,
Windows, and Mac?
--
Thank you for your brain.
-MrZombie

MrZombie wrote:

Hi all!

What are the best practices concerning directory structures for Ruby
programs?

I want to run tests using Cucumber and RSpec, so referring to the RSpec
book I created a features/ and spec/ folders for the tests, a lib/
folder for my code, and a bin/ folder for all that shall be executed.

What do I need to roll out my own Gem, if needed? What is the expected
distribution format of a gem?

Also, is there a way to pack the app for distribution for Linux,
Windows, and Mac?

You can , if you're feeling lazy, install a gem called "jem" which
creates a typical structure the same as the one already mentioned.

···

--
Posted via http://www.ruby-forum.com/\.