How to make --no-ri --no-rdoc default for gem install?

You just add following line to your ~/. Gemrc file (It is in your home folder) gem: --no-ri --no-rdoc Update: As comment below said no need to "source.

– user341458 Jan 13 at 3:43 6 here you go /etc/gemrc – Jirapong Jan 14 at 8:46 1 /etc/gemrc didn't work for me, but . Gemrc did. I wonder if it's rvm specific that it doesn't read the system gemrc?

– wjlafrance Sep 4 at 7:54 At one time, DHH mention on Twitter that --no-ri and --no-rdoc should be gem by default. May be that is a good idea then --ri and --rdoc be the option. – Jirapong Sep 5 at 2:32 1 Yea I'm using RVM and /etc/gemrc doesn't work for me either.

– PhilT Sep 21 at 8:27.

First result on Google shows: # /home/{user}/. Gemrc --- :update_sources: true :sources: - gems.rubyforge.org/ - gems.github.com :benchmark: false :bulk_threshold: 1000 :backtrace: false :verbose: true gem: --no-ri --no-rdoc webonrails.com/2008/12/03/skiping-instal....

Thanks for this example, perfect to help me strip out the embedded Ruby that I copied & pasted at some point and then resulted in psych errors while installing RubyGems 1.8.10 under Ruby 1.9.2. – stevenhaddox Sep 3 at 15:02 4 Please don't post "first result on Google" replies. The first result on Google now shows your reply, self-proving why you shouldn't do this.

Thanks, of course, for your answer. – wjlafrance Sep 4 at 7:52 1 Actually, "first result on Google" shows: ""first result on Google" shows: ""first result on Google" shows: ""... ERROR: Stack Overflow. – Félix Saparelli Sep 22 at 6:53 I have to add my thanks for steve's comment (above).

I was pulling my hair out as to why I could not install the latest RubyGems. Turns out I had a malformed . Gemrc file as well.

I kept getting this error: ../. Rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/psych. Rb:148:in `parse': couldn't parse YAML at line 2 column 10 (Psych::SyntaxError) – wchrisjohnson 2 days ago.

Under Windows XP the path to gemrc file is "c:\Documents and Settings\All Users\Application Data\gemrc". And this file is not created by default, you should create it yourself.

1 Under Windows 7 it's C:\ProgramData\gemrc – Slava Tysenchuk Aug 5 '10 at 12:33.

You don't need to source .gemrc. It is not a bash profile.

You can specify default options using the . Gemrc configuration file. Documentation about gem configuration file.

Copy-paste from From RVM documentation: Just add these two lines to your ~/. Gemrc or /etc/gemrc: install: --no-rdoc --no-ri update: --no-rdoc --no-ri Note: You likely do not want to run this for every gem command, as these args would break some gem X commands. Which is why I did not use gem: --no-rdoc --no-ri in the example above.

Local gem install vs running setup. Where is rbenv gem's rdoc? How can I install a ruby gem that cannot be found?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions