RubyGems在'gem install <other>'期间安装了redis和daemons gems,但它们不是依赖项</other>

时间:2013-06-17 17:57:36

标签: rubygems dependencies

我正在使用RubyGems 2.0.2。

当我安装一个似乎不依赖于redis或守护进程的gem时,它会安装它们。

% gem install my_gem 
Successfully installed my_gem-0.1.2
Fetching: daemons-1.1.9.gem (100%)
Successfully installed daemons-1.1.9
Fetching: redis-3.0.4.gem (100%)
Successfully installed redis-3.0.4
Parsing documentation for my_gem-0.1.2
Installing ri documentation for my_gem-0.1.2
Parsing documentation for daemons-1.1.9
Installing ri documentation for daemons-1.1.9
Parsing documentation for redis-3.0.4
Installing ri documentation for redis-3.0.4
Done installing documentation for my_gem, daemons, redis after 3 seconds
3 gems installed

这是我检查gem依赖的方法。

% foreach i ( `gem list | sed -e 's/\ .*//' ` )
foreach? echo $i
foreach? gem dependency $i | grep "redis\|daemons"
foreach? end

我安装的任何宝石都没有依赖redis或守护进程。 RubyGems还能从哪里获得依赖信息?

0 个答案:

没有答案