Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable rdoc and ri from gemspec / Gemfile

I have a client gem which I will distribute business clients via rubygems. Gem client has cca. dozen gem dependencies and when it is being installed it takes a long time to install it due to generation of rdoc and ri for each gem.

Clients are business user and they have no use for rdoc/ri, I am looking for a way to disable that via .gemspec or Gemfile. I am familiar with a solution which utilizes system file .gemrc to disable rdoc / ri. But that is not acceptable solution since I want my installation to be simple as typing:

gem install foo

like image 763
Haris Krajina Avatar asked Apr 23 '13 11:04

Haris Krajina


1 Answers

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

like image 107
ghr Avatar answered Nov 15 '22 05:11

ghr