lib/signet/oauth_2.rb in signet-0.10.0 vs lib/signet/oauth_2.rb in signet-0.11.0

- old
+ new

@@ -140,10 +140,10 @@ # The base authorization endpoint URI. # # @return [String] The authorization URI to redirect the user to. def self.generate_authorization_uri(authorization_uri, parameters={}) for key, value in parameters - parameters.delete(key) if value == nil + parameters.delete(key) if value.nil? end parsed_uri = Addressable::URI.parse(authorization_uri).dup query_values = parsed_uri.query_values || {} query_values = query_values.merge(parameters) parsed_uri.query_values = query_values