From: MrZombie on 26 Jul 2010 15:28 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
From: Joseph E. Savard on 26 Jul 2010 15:59 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(a)thezombie.net> > Organization: albasani.net > Reply-To: <ruby-talk(a)ruby-lang.org> > Newsgroups: comp.lang.ruby > Date: Tue, 27 Jul 2010 04:30:25 +0900 > To: ruby-talk ML <ruby-talk(a)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 > >
From: Jason W. on 27 Jul 2010 14:17 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/.
|
Pages: 1 Prev: Confused with "include" and require Next: Help: How to pass a struct as a pointer to Win32API? |