From: Eric Hodel Date: 2009-11-24T07:38:40+09:00 Subject: Re: RubyGems current load paths On Nov 20, 2009, at 08:40, Intransition wrote: > I need to get a list of the "current" gem load paths. I learned that I > can get a list of all the latest load paths via: > > Gem.latest_load_paths > > which is great. But lets say I specify an older version of a lib, eg: > > gem "RubyInline", "= 3.7.0" > > Gem.latest_load_paths doesn't change. How can I get a list of latest > load paths but adjusted to reflect any specified gem versions? Gem.latest_load_paths works for all installed gems, even if they're not activated. You'll need to use Gem::Specification#full_gem_path and Gem::Specification#require_path. Needing to know where the gem lives is a sign that you're doing something wrong though.