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

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

问题描述

Bundler 将自动为指定的 gem 安装任何依赖项,但它不会在标准输出中输出哪些依赖项映射到哪些 gem.当依赖项之一安装失败时,该信息很有用.

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.

有没有办法将 Bundler 设置为更详细并在安装时通知依赖项?

Is there a way to set Bundler to be more verbose and inform about the dependencies while installing?

我正在使用 Bundler 1.0.2

I am using Bundler 1.0.2

推荐答案

要查看依赖树的可视化表示,请运行 bundle viz:

To see a visual representation of the dependency tree run bundle viz:

apt-get install graphviz && gem install ruby-graphviz && bundle viz

它将生成树的PNG文件.

It will generate a PNG file of the tree.

这篇关于如何跟踪和检查捆绑的 Ruby gem 中的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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