Get list of gems being used by a Bundler project
Is there a way to get the list of gems or开发者_Python百科 paths to gems that are being loaded for the current project by Bundler (it's a Rails 3) project.
I'm looking for something like:
Gem.path
but that returns only the ones being actively required by Bundler in the Gemfile.
What I was looking for was this:
Gem.loaded_specs.values.map { |g| g.full_gem_path }
精彩评论