On Thu, Oct 9, 2008 at 8:29 AM, Trans <[EMAIL PROTECTED]> wrote:

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

Hmm.  Check if it is on the load path.  Not sure how to check through the
API.


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

Yes, you can use the API to run all rubygems commands and get Specification
objects.  Check out GemRunner, that is the external API to use.  I just
posted an example of this recently in the thread about the .gemrc stuff.


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

The 'which' command, which should also be available via the API.

-- Chad
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to