Nasir Khan
1/4/2008 8:35:00 PM
[Note: parts of this message were removed to make it a legal post.]
This is exactly what I was looking for. Thanks a lot.
On 1/4/08, James Gray <james@grayproductions.net> wrote:
>
> On Jan 4, 2008, at 12:49 PM, Nasir Khan wrote:
>
> > Is there an easy way of finding the location of my installed gem
> > programmatically.
>
> Sure:
>
> gem_spec = Gem::GemPathSearcher.new.find(require_name)
> gem_dir = File.join(gem_spec.full_gem_path, gem_spec.require_path)
>
> Hope that helps.
>
> James Edward Gray II
>
>