2011-07-06 56 views
0

我剛安裝了EngineYard的寶石,並想知道如何卸載所有 RI/RDoc文檔EngineYard的安裝後如何卸載寶石的具體文件安裝後

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 [email protected] 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... 

回答

1

我沒有任何有關該寶石的經驗,但我希望這可以幫助你跟蹤你的rdoc和ri文檔路徑。

gem env 
我的Mac系統上

,我發現從安裝目錄

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

這條道路而當我open它(或Windows explore)我看到這裏面的有些寶石的RDoc/RI DOC路徑。嘗試在那裏刪除你的寶石的文檔。讓我知道它是否有效,它在我的Mac上工作。

當你安裝了RubyGems,但不希望安裝RI/RDoc的,請記住,當你做 gem install something

鍵入此--no-rdoc --no-ri選項作爲參考比較

下一次,我就複製粘貼我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 
.