How to prevent gemstone documentation from installing automatically with gem v. 2.0

My system was previously configured to suppress documentation on installing gem using --no-ri and --no-rdoc .

Ruby 2.0.0 and gem 2.0.0 seem to have removed the --no-ri flag (and functionality?).

Even with --no-rdoc I still get installing documentation :

 ~/dev/ruby> gem install bundler --no-rdoc Fetching: bundler-1.3.1.gem (100%) Successfully installed bundler-1.3.1 Done installing documentation for bundler (0 sec). 

How do I know if the documentation is installed? If it is installed, how to suppress all gem installations?

+4
source share
2 answers

As gem help install says:

  Usage: gem install GEMNAME [GEMNAME ...] [options] - --build-flags [options]
 ...
   Install / Update Options:
     ...
         - [no-] document [TYPES] Generate documentation for installed gems
                                      List the documentation types you wish to
                                      generate.  For example: rdoc, ri
     -N, --no-document Disable documentation generation

In short:

  • --no-rdoc now --no-document rdoc

  • --no-ri now --no-document ri .

  • You can prevent installation with either --no-document or -N .

(Unfortunately, the documentation at Rubygems.org is currently out of date, so ignore it for now.)

+13
source

The option has changed to --no-document (see http://rubygems.rubyforge.org/rubygems-update/History_txt.html )

+6
source

All Articles