Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you remove the documentation installed by gem install?

Tags:

I know it's possible to install a gem without the documentation, but unfortunately, I didn't for the first three months I used ruby. In that time, I managed to install a significant amount of gems, but not once since I started using ruby have I used the documentation on my computer. I always look to docs on the internet.

What is the best way to safely remove the documentation from my computer? Also, is there a way to configure ruby to not install documentation by default?

like image 434
bloudermilk Avatar asked Nov 29 '09 11:11

bloudermilk


People also ask

Where gem files are installed?

When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/. gem/ruby/1.9.

How do you check gem is installed or not?

Since your goal is to verify a gem is installed with the correct version, use gem list . You can limit to the specific gem by using gem list data_mapper . To verify that it's installed and working, you'll have to try to require the gem and then use it in your code.


1 Answers

run this command:

rm -r "$(gem env gemdir)"/doc/* 

on windows if you use cygwin

like image 50
marekj Avatar answered Sep 21 '22 14:09

marekj