On Oct 9, 2008, at 08:29 AM, Trans wrote:

Is there a way to see if a gem is active (without activating it of
course)?

Gem.loaded_specs is a Hash mapping gem names to gemspecs

In addition is there a way to access a gemspec from code?

Gem.source_index has all available gems if you don't want active gems.

Lastly, is there a way to get the path to where a gem is installed?

The gemspec has it, check ri.
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to