如何跟踪和检查捆绑Ruby宝石中的依赖关系 [英] How to trace and check dependencies in bundled Ruby gems

查看:126
本文介绍了如何跟踪和检查捆绑Ruby宝石中的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bundler会自动为指定的gem安装任何依赖关系,但它不会输出哪些依赖关系映射到标准输出中的哪些gem。如果其中一个依赖项安装失败,那么这些信息很有用。



有没有办法将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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆