rubyrubygemsri

Why is Rubygems still installing docs when I told it not to?


I have this in my ~/.gemrc file:

---
:backtrace: false
:benchmark: false
:bulk_threshold: 1000
:sources:
- http://gems.github.com
- https://rubygems.org
- https://rails-assets.org
:update_sources: true
:verbose: true
:gem: --no-document

It took literally about 8 minutes to install sinatra, because of the ri documentation. (I have the clock time in my prompt, so I'm not just taking a wild guess.) How can I fix this so that it actually obeys my ~/.gemrc file?


Solution

  • Remove the leading : from :gem:.