lib/bundler/rubygems_integration.rb in bundler-1.3.0.pre vs lib/bundler/rubygems_integration.rb in bundler-1.3.0.pre.2

- old
+ new

@@ -33,9 +33,14 @@ def inflate(obj) Gem.inflate(obj) end def sources=(val) + # Gem.configuration creates a new Gem::ConfigFile, which by default will read ~/.gemrc + # If that file exists, its settings (including sources) will overwrite the values we + # are about to set here. In order to avoid that, we force memoizing the config file now. + configuration + Gem.sources = val end def sources Gem.sources