title: mapping values are not allowed in this context at line 2 column 8 (Psych::SyntaxError)
body: <p>I'm learning RoR by The Ruby on Rails Tutorial (Michael Hartl).</p>
  
  <p>When I add to .gemrc</p>
  
  <pre><code>sublime ~/.gemrc
  </code></pre>
  
  <p>(Sublime Text is installed) and I just check, for example  </p>
  
  <pre><code>gem -v
  </code></pre>
  
  <p>I get  </p>
  
  <pre><code>Failed to load /home/gvyntyk/.gemrc because it doesn't contain valid YAML hash
  </code></pre>
  
  <p>BTW:</p>
  
  <pre><code>gvyntyk@gvyntyk-r60:~$ ldconfig -p | grep libyaml
  libyaml-0.so.2 (libc6) =&gt; /usr/lib/i386-linux-gnu/libyaml-0.so.2
  </code></pre>
  
  <p>And when I add to .gemrc lines:  </p>
  
  <pre><code>install: --no-rdoc --no-ri
  update:  --no-rdoc --no-ri
  </code></pre>
  
  <p>(Of course, I don't want to install docs)</p>
  
  <p>I get error:</p>
  
  <pre><code>gvyntyk@gvyntyk-r60:~$ gem install rails --version 4.0.2
  /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:205:in `parse': (&lt;unknown&gt;): mapping values are not allowed in this context at line 2 column 8 (Psych::SyntaxError)
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:153:in `parse'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:129:in `load'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:332:in `load_file'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:197:in `initialize'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:in `new'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:in `do_configuration'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:39:in `run'
      from /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/bin/gem:21:in `&lt;main&gt;'
  </code></pre>
  
  <p>When I delete <code>.gemrc</code>, I don't have those troubles and I can install Rails.</p>
  
  <p>What's wrong?</p>
  
  <p>Ubuntu 14.04.1 LTS</p>