lib/rubygems/gemcutter_utilities.rb in rubygems-update-3.3.15 vs lib/rubygems/gemcutter_utilities.rb in rubygems-update-3.3.16
- old
+ new
@@ -133,10 +133,10 @@
response = rubygems_api_request(:put, "api/v1/api_key",
sign_in_host, scope: scope) do |request|
request.basic_auth email, password
request["OTP"] = otp if otp
- request.body = URI.encode_www_form({:api_key => api_key }.merge(update_scope_params))
+ request.body = URI.encode_www_form({ :api_key => api_key }.merge(update_scope_params))
end
with_response response do |resp|
say "Added #{scope} scope to the existing API key"
end