From: Nasir Khan Date: 2008-01-05T05:35:00+09:00 Subject: Re: [OOT] rubygems: location of my gems ------=_Part_33198_7891578.1199478905171 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This is exactly what I was looking for. Thanks a lot. On 1/4/08, James Gray 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 > > ------=_Part_33198_7891578.1199478905171--