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
echo 'gem: --no-ri --no-rdoc' > ~/.gemrc
– Kowtkogem install foo
? – Acceptedgem install foo --no-ri --no-rdoc
? I don't think there are any pre-installation hooks available. – Kowtkogem install
, then using it throughirb
, etc. That is just technical stuff. If someone is doing those, they are techies, and its not a big deal to ask them to dogem install --no-ri --no-rdoc
. I think that while you're trying to sweeten things up for them, it doesn't make operational sense. – Briefcase/bin
. Client will not use it trough irb, but trough designed CLI. (command line interface). – Accepted