I don’t use the RI or RDoc output from the gems I install in my machine or in the servers I handle (I use other means of documentation).
Every gem I install installs RI and RDoc documentation by default, because I forget to set --no-ri --no-rdoc.
Is there a way to make those two flags the default?
You just add the following line to your local
~/.gemrcfile (it is in your home folder):by
or you can add this line to the global
gemrcconfig file.Here is how to find it (in Linux):
The
--no-documentoption is documented in the RubyGems CLI Reference.