{"issue":{"created_at":"2011-11-19T12:38:44Z","state":"open","updated_at":"2011-11-19T13:48:49Z","user":{"gravatar_id":"783b5260bedfb0ded95ff4205fbcf34d","id":8876,"url":"https://api.github.com/users/paddor","login":"paddor","avatar_url":"https://secure.gravatar.com/avatar/783b5260bedfb0ded95ff4205fbcf34d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"I tried it with just a file for --config-file like this:\r\n\r\n---\r\n- from: http://gems.rubyforge.org\r\n  to: rubygems.mirror\r\n\r\nAnd no existing ~/.gem/.mirrorrc, and it says this:\r\n\r\n/Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:183:in `merge': can't convert Array into Hash (TypeError)\r\n\tfrom /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:183:in `initialize'\r\n\tfrom /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `new'\r\n\tfrom /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `do_configuration'\r\n\tfrom /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:51:in `run'\r\n\tfrom /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/bin/gem:25:in `<main>'\r\n\r\nAnd when I modify the config file for --config-file to this:\r\n\r\n---\r\nfrom: http://gems.rubyforge.org\r\nto: rubygems.mirror\r\n\r\nso it isn't an Array but a Hash, then it says that it cannot find ~/.gem/.mirrorrc.\r\nWhen I move the config file for --config-file to ~/.gem/.mirrorrc, then it works (without --config-file).\r\n\r\nYeah, I think there's something wrong. It would be nice if a file for --config-file would be enough.\r\nThanks.","assignee":null,"id":2288089,"number":10,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Loading the config file fails","closed_at":null,"html_url":"https://github.com/rubygems/rubygems-mirror/issues/10","milestone":null,"url":"https://api.github.com/repos/rubygems/rubygems-mirror/issues/10"},"action":"created","comment":{"created_at":"2011-11-19T13:48:49Z","updated_at":"2011-11-19T13:48:49Z","user":{"gravatar_id":"783b5260bedfb0ded95ff4205fbcf34d","id":8876,"url":"https://api.github.com/users/paddor","login":"paddor","avatar_url":"https://secure.gravatar.com/avatar/783b5260bedfb0ded95ff4205fbcf34d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Oh I see. Now I get it. That's a \"common option\". Sorry to bother you! :)","id":2798832,"url":"https://api.github.com/repos/rubygems/rubygems-mirror/issues/comments/2798832"}}