开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜