如何跟踪和检查捆绑Ruby宝石中的依赖关系 [英] How to trace and check dependencies in bundled Ruby gems
本文介绍了如何跟踪和检查捆绑Ruby宝石中的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将Bundler设置得更详细,并在安装时通知有关依赖关系?
我使用Bundler 1.0.2
解决方案
依赖树运行 bundle viz
:
apt-get install graphviz& ;&安培; gem install ruby-graphviz&& bundle viz
它会生成树的PNG文件。
Bundler will automatically install any dependencies for the specified gems, however it doesn't output which dependencies map to which gems in the standard output. That information is useful when one of the dependencies fails the installation.
Is there a way to set Bundler to be more verbose and inform about the dependencies while installing?
I am using Bundler 1.0.2
解决方案
To see a visual representation of the dependency tree run bundle viz
:
apt-get install graphviz && gem install ruby-graphviz && bundle viz
It will generate a PNG file of the tree.
这篇关于如何跟踪和检查捆绑Ruby宝石中的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文