rubygems/rubygems-mirror — Issue #10: Loading the config file fails
Author: paddor
Created: 2011-11-19 12:38:44+00:00
State: open

I tried it with just a file for --config-file like this:

---
- from: http://gems.rubyforge.org
to: rubygems.mirror

And no existing ~/.gem/.mirrorrc, and it says this:

/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)
from /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:183:in `initialize'
from /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `new'
from /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `do_configuration'
from /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:51:in `run'
from /Users/paddor/.rvm/rubies/ruby-1.9.3-p0/bin/gem:25:in `

'

And when I modify the config file for --config-file to this:

---
from: http://gems.rubyforge.org
to: rubygems.mirror

so it isn't an Array but a Hash, then it says that it cannot find ~/.gem/.mirrorrc.
When I move the config file for --config-file to ~/.gem/.mirrorrc, then it works (without --config-file).

Yeah, I think there's something wrong. It would be nice if a file for --config-file would be enough.
Thanks.