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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With