Using --no-rdoc and --no-ri with bundler
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
)
How to make --no-ri --no-rdoc the default for gem install?
You just add the following line to your local ~/.gemrc
file (it is in your home folder):
gem: --no-document
by
echo 'gem: --no-document' >> ~/.gemrc
or you can add this line to the global gemrc
config file.
Here is how to find it (in Linux):
strace gem source 2>&1 | grep gemrc
The --no-document
option is documented in the RubyGems CLI Reference.
What to use instead of --no-ri for gem install?
The new option is --no-document
or -N
.
From gem help install
:
Deprecated Options:
--[no-]rdoc Generate RDoc for installed gems
Use --document instead
--[no-]ri Generate ri data for installed gems.
Use --document instead
How do I make --no-ri --no-rdoc the default for gem install?
Just add
gem: --no-ri --no-rdoc
to your ~/.gemrc file
How to specify no ri/rdoc exists for a gem so user doesn't get warning when trying to install
So there was actually a confusion of issues on this question. I mistakenly assumed the error message about lib
was associated with the message before it about the ri install.
This was not the case. The problem was that the default require_paths
is ["lib"]
which my gem did not have. Resetting the require_paths
in my gemspec eliminated the error.
Ruby - global --no-document with RVM
run below command on linux/unix/mac
echo 'gem: --no-document' >> ~/.gemrc
and then install any gem (even with rvm) and it should work
How to specify no ri/rdoc exists for a gem so user doesn't get warning when trying to install
So there was actually a confusion of issues on this question. I mistakenly assumed the error message about lib
was associated with the message before it about the ri install.
This was not the case. The problem was that the default require_paths
is ["lib"]
which my gem did not have. Resetting the require_paths
in my gemspec eliminated the error.
Related Topics
How to Specify Rvm Gemsets for Rails Gem Whenever
How to Run Selenium Script on Ie
To_Model Delegated to Attachment, But Attachment Is Nil
"Private Method 'Gets' Called for "Parker":String
Can You Append to Specific Elements in an Array Based on If Statement Conditions
How to Remove Devise Password Resetting During Email Confirmation
Rally Ruby Toolkit: How to Get Url of Portfolio Item's State
Watir Won't Download PDF, Only Opens in Viewer
Refactoring Pokemon Type Weekness
Ruby Project Help. Can't Get Saved Instances from Array
Running Rake Task from Within War File
Mail_Form Gem with Sidekiq Worker
Ruby on Rails Updating Heroku Dynamic Routes
Numeric Literals Prepended with '0'
Fetching Second Row from CSV File in Ruby