0

我刚刚安装了engineyard gem,想知道如何卸载engineyard post安装的所有ri / RDoc文档

Is it safe to remove all files from the following folder c:\Ruby192\lib\ruby\gems\1.9.1\doc

c:\Ruby192\bin>gem install engineyard

Welcome to Engine Yard!

Deploying for the first time? The Engine Yard Pandas want to help you!

Email pandas@engineyard.com with your questions or queries.
(Panda = 1. Polite Agent of Non-Destructive Assimilation; 2. Cute fluffy an
imal.)

We wish you every success with your business!

 - The Pandas

Successfully installed rest-client-1.6.3
Successfully installed highline-1.6.2
Successfully installed json_pure-1.5.3
Successfully installed escape-0.0.4
Successfully installed engineyard-serverside-adapter-1.4.1
Successfully installed net-ssh-2.1.4
Successfully installed engineyard-1.3.20
7 gems installed
Installing ri documentation for rest-client-1.6.3...
Installing ri documentation for highline-1.6.2...
Installing ri documentation for json_pure-1.5.3...
Installing ri documentation for escape-0.0.4...
Installing ri documentation for engineyard-serverside-adapter-1.4.1...
Installing ri documentation for net-ssh-2.1.4...
Installing ri documentation for engineyard-1.3.20...
Installing RDoc documentation for rest-client-1.6.3...
Installing RDoc documentation for highline-1.6.2...
4

1 回答 1

1

我还没有使用该 gem 的任何经验,但我希望这可以帮助您跟踪您的 rdoc 和 ri doc 路径。

gem env

在我的 Mac 系统上,我从安装目录中找到了这条路径

/opt/experiment/ruby/lib/ruby/gems/1.9.1/doc/

当我open(或explore在 Windows 中)时,我在这条路径中看到了一些 gems 的 rdoc/ri doc。尝试在那里删除您的 gem 的文档。让我知道它是否有效,它在我的 Mac 上有效。

下次安装 ruby​​gems 但不想安装 ri/rdoc 时,请记住在安装时键入此--no-rdoc --no-ri选项gem install something

作为参考比较,我将在gem env这里复制粘贴

. gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-darwin9.8.0]
  - INSTALLATION DIRECTORY: /opt/experiment/ruby/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /opt/experiment/ruby/bin/ruby
  - EXECUTABLE DIRECTORY: /opt/experiment/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-9
  - GEM PATHS:
     - /opt/experiment/ruby/lib/ruby/gems/1.9.1
     - /Users/arie/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gemcutter_key" => "********************************"
     - :gem => "--no-ri --no-rdoc"
     - :sources => ["http://rubygems.org"]
  - REMOTE SOURCES:
     - http://rubygems.org
. 

更新(2019 年 7 月 28 日):--no-ri --no-rdoc 不再Rubygems >= 2.0 中工作。或者,您可以使用--no-document省略文档。

于 2011-07-06T09:30:30.137 回答