简体   繁体   English

如何修复 rvm 中的 ri 文档重复

[英]How to fix ri documentation duplication in rvm

Here's what I want to do这就是我想做的

ri Array

Simple, right?很简单,对吧?

Wrong!错误的!

More than one class or module matched your request. You can refine
your search by asking for information on one of:

    Array, TSortArray, Array, TSortArray

I am using RVM on Ubuntu Natty, default (and only ruby) is jruby 1.6.3我在 Ubuntu Natty 上使用 RVM,默认(并且只有 ruby)是 jruby 1.6.3

I have modified my.rvmrc to make ri documentation by default, thus我已修改 my.rvmrc 以默认制作 ri 文档,因此

export rvm_gem_options=""

Beyond that, all is standard as far as I remember.除此之外,据我所知,一切都是标准的。

Ideas?想法?

Limit RI to search only the documentation from Ruby's standard library限制 RI 只搜索 Ruby 标准库中的文档

ri --system Array

or,或者,

add this to your .profile将此添加到您的.profile

export RI="--system"

But, then you don't get to see documentation for new gems...但是,那么您将看不到新宝石的文档...

So, I tried not limiting RI...所以,我试着不限制 RI ......

Just,只是,

gem rdoc --all

Which seemed to work.这似乎奏效了。


But my final answer is,但我的最终答案是,

Update .gemrc to look a little like this更新.gemrc使其看起来像这样

install:  --remote --gen-rdoc --run-tests
update: --remote --gen-rdoc --run-tests
rdoc:  --all --inline-source --line-numbers --promiscuous --show-hash

and .rvmrc.rvmrc

export rvm_gem_options=""

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM