rubygems/rubygems — pull request #237 by frantic (2011-12-15 11:13:49+00:00)
Title: Gem command doesn't crash if config file content is invalid

If gem config file (for example `~/.gemrc`) doesn't contain valid YAML hash, gem command crashes with error which is not very obvious:

.../rubygems/config_file.rb:187:in 'merge': can't convert String into Hash (TypeError)

I suggest adding warning about invalid gem config file content

This is a tiny change, but I believe it can save few hours for those users who blindly copy-pasted their `.gemrc` from some web-site

P.S. Test-case included