lib/bundler/mirror.rb in bundler-1.12.6 vs lib/bundler/mirror.rb in bundler-1.13.0.pre.1

- old
+ new

@@ -30,14 +30,14 @@ end end def parse(key, value) config = MirrorConfig.new(key, value) - if config.all? - mirror = @all + mirror = if config.all? + @all else - mirror = (@mirrors[config.uri] = @mirrors[config.uri] || Mirror.new) + (@mirrors[config.uri] = @mirrors[config.uri] || Mirror.new) end config.update_mirror(mirror) end private @@ -175,10 +175,10 @@ # Class used to build the list of sockets that correspond to # a given mirror. # # One mirror may correspond to many different addresses, both - # because of it having many dns entries or just because + # because of it having many dns entries or because # the network interface is both ipv4 and ipv5 class MirrorSockets def initialize(mirror) @timeout = mirror.fallback_timeout @addresses = Socket.getaddrinfo(mirror.uri.host, mirror.uri.port).map do |address|