J2M
10/22/2006 1:56:00 PM
you can find all the installed gems with a version of this;
def find_my_gem(name)
spec_dir = File.join(Gem.dir, "specifications")
gems = Gem::SourceIndex.from_installed_gems(spec_dir)
gems.each {|path, gem| return true if name == gem.name}
return false
end
this is a bit of a hack together, but gives you the basic idea.