开发者

Get list of gems being used by a Bundler project

开发者 https://www.devze.com 2023-01-25 14:49 出处:网络
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.

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 }
0

精彩评论

暂无评论...
验证码 换一张
取 消