Permalink
Browse files

work around RubyGem's behavior of caching (only) the last-used source…

… when multiple gem commands for gems on different sources are issued via the API
  • Loading branch information...
thewoolleyman committed Aug 25, 2009
1 parent 32717db commit a807985d745c232ce164f8671eec6c6c9c8ef60e
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/geminstaller/gem_runner_proxy.rb
@@ -15,6 +15,9 @@ def run(args = [], stdin = [])

exit_status = nil
begin
# The call below is to work around RubyGem's behavior of caching (only) the last-used source when
# multiple gem commands for gems on different sources are issued via the API
Gem.sources.replace Gem.default_sources
gem_runner.run(args)
rescue SystemExit => system_exit
if GemInstaller::RubyGemsVersionChecker.matches?('>1.0.1')

0 comments on commit a807985

Please sign in to comment.