[Rubygems-developers] Multiple remote sources

John-Mason P. Shackelford john-mason at shackelford.org
Thu Feb 9 13:42:52 EST 2006


Looking at command.rb below, it looks like it wouldn't take much more
than a few lines to add an --add-source option that would allow us to
have multiple remote repositories. Is this how you'd like to implement
it? Lack of support for this is killing me. I'll fix it today if
someone will get back to me.


----- command.rb -----
    add_common_option('--source URL', 'Use URL as the remote source
for gems') do |value, options|
      require_gem("sources")
      Gem.sources.clear
      Gem.sources << value
    end
---------------
--
John-Mason Shackelford

Software Developer
Pearson Educational Measurement

2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford at pearson.com
http://pearsonedmeasurement.com



More information about the Rubygems-developers mailing list