summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-06-10 19:46:05 +0200
committerHiroshi SHIBATA <[email protected]>2020-06-15 21:20:37 +0900
commit955f1837a180d8936f90ab6cf039ccb8f751be72 ()
tree0d48749501febfccefda3b1376511c421d4118e4 /lib/rubygems/remote_fetcher.rb
parentef481c120c55bf0351a586739f9b5d704f3f7a7d (diff)
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
Notes: Merged: https://.com/ruby/ruby/pull/3229
-rw-r--r--lib/rubygems/remote_fetcher.rb6
1 files changed, 3 insertions, 3 deletions
@@ -106,7 +106,7 @@ class Gem::RemoteFetcher
return if found.empty?
- spec, source = found.max_by { |(s,_)| s.version }
download spec, source.uri
end
@@ -212,7 +212,7 @@ class Gem::RemoteFetcher
def fetch_http(uri, last_modified = nil, head = false, depth = 0)
fetch_type = head ? Net::HTTP::Head : Net::HTTP::Get
response = request uri, fetch_type, last_modified do |req|
- headers.each { |k,v| req.add_field(k,v) }
end
case response
@@ -327,7 +327,7 @@ class Gem::RemoteFetcher
end
def close_all
- @pools.each_value {|pool| pool.close_all}
end
private