When using gem install gem_name
I can pass --no-rdoc
and --no-ri
switches to skip generating RDoc/RI documentation for the gem on install.
Is there a similar way to do this with bundle install
?
When using gem install gem_name
I can pass --no-rdoc
and --no-ri
switches to skip generating RDoc/RI documentation for the gem on install.
Is there a similar way to do this with bundle install
?
Bundler doesn't include rdoc and ri. There is nothing you need to do.
bundle install
. People wanted this as a feature to allow you to install the documentation but they just don't allow it.
Sep 12, 2014 at 9:11
Make a file ~/.gemrc
and put this in it:
gem: --no-rdoc --no-ri
That should make it apply whenever you run the gem
command. (Even from bundle install
)
--no-document
ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released guides.rubygems.org/rubygems-basics
See https://stackoverflow.com/a/7662245/109618 for a better ~/.gemrc
:
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
The up-to-date setting for ~/.gemrc
is
gem: --no-document
But as pointed out, this is already bundler
's default.