views:

174

answers:

2

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?

+1  A: 

Hi

I can't answer the first part of your problem (I have the same issue myself) but I have managed to not install documentation by default.

You can specify some default command line options in the gem config file, you can specify not to generate documentation (something like --no-rdoc and --no-ri).

Sam

deanWombourne
+2  A: 

Gem documentation is installed in [RUBY]/lib/ruby/gems/doc, where [RUBY] is the directory into which you installed Ruby (C:/ruby on my machine).

I don't see why you shouldn't just delete the folders representing the gems for which don't don't need documentation: you can always regenerate it.

Mike Woodhouse