On Oct 9, 7:18 pm, Eric Hodel <[EMAIL PROTECTED]> wrote:
> 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

Ok. That's what I expected with this one, but I wanted to make sure.
Maybe something like Gem.loaded?(name, version) would be good feature
for the future.

> > 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.

Nice. That's helpful.

> > Lastly, is there a way to get the path to where a gem is installed?
>
> The gemspec has it, check ri.

Cool, thanks Eric.
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to