Disable rdoc and ri from gemspec / gemfile

I have a client stone that I will distribute to business clients through rubygems. Gem client has cca. dozens of gem dependencies, and when it is installed, it takes a long time to install because of the generation of rdoc and ri for each gem.

Clients are business users, and they are not suitable for rdoc / ri, I am looking for a way to disable this via .gemspec or Gemfile . I am familiar with a solution that uses the .gemrc system file to disable rdoc / ri. But this is an unacceptable solution, since I want my installation to be as simple as input:

gem install foo

+6
source share
1 answer

You can use the post-install message to explain that they can install it faster by running the suggested @shime: echo 'gem: --no-ri --no-rdoc' > ~/.gemrc

+1
source

Source: https://habr.com/ru/post/943429/


All Articles