Mike Mangino on 13 Aug 2007 17:10:04 -0000


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

Re: [PhillyOnRails] couple simple ror questions


To figure out what gems are required by an app, you can do:

ps = Gem::GemPathSearcher.new
$".map { |file| ps.find(file).name rescue nil }.compact

from script/console.

If the gems are required in environment.rb, that should work well.

For a decent process of managing required gems, take a look at
http://underpantsgnome.com/2007/01/16/managing-gems-with-rake/

Mike

On Aug 13, 2007, at 12: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
http://blog.kineticweb.com

_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk

-- Mike Mangino http://www.elevatedrails.com



_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk