Justin W. Reagor on 13 Aug 2007 17:07:52 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] couple simple ror questions

Documentation is the answer, but for people that come into the middle of projects that don't have any documentation it can be a serious pain in the arse.

Hopefully your on a *nix system...

grep -r "require '" *

...within RAILS_ROOT this should give you a nice lil list. You could build a script to parse out the dupes. Combined with the 'gems list --local' output you should be able to find out which are used.

:: Justin Reagor

On Aug 13, 2007, at 1:00 PM, Colin A. Bartlett wrote:

Keith Fitzgerald wrote:
is there a way to tell which gems are required for a given app?
Nothing automatic, to my knowledge.

A number of people have put together scripts or rake tasks that check for Gems, given a list of those required. Nothing beats just documenting it, IMHO. We use a Wiki for such things.

Colin A. Bartlett
Kinetic Web Solutions

To unsubscribe or change your settings, visit:

To unsubscribe or change your settings, visit: