Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make --no-ri --no-rdoc the default for gem install? [duplicate]

Tags:

ruby

gem

Possible Duplicate:
How to make --no-ri --no-rdoc the default for gem install?

I never use ri nor rdoc and they take too long to install. Is there a config file somewhere that will let me do this

like image 300
Chris McCauley Avatar asked Nov 24 '09 11:11

Chris McCauley


People also ask

How do I install specific versions of gems?

Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.

What is the difference between gem install and bundle install?

Almost seems like running 'gem install' adds it to the global available gems (and hence terminal can run the package's commands), whereas adding it to the gemfile and running bundle install only adds it to the application. Similar to npm install --global. that's basically it.

What is gem dependency?

development. RubyGems provides two main “types” of dependencies: runtime and development. Runtime dependencies are what your gem needs to work (such as rails needing activesupport). Development dependencies are useful for when someone wants to make modifications to your gem.


1 Answers

Just add

gem: --no-ri --no-rdoc

to your ~/.gemrc file

like image 72
Milan Novota Avatar answered Nov 16 '22 00:11

Milan Novota