Merge pull request #272 from rusikf/patch-4

fix RequestOptions#merge + test for default options
This commit is contained in:
Steve Bazyl committed 2015-08-19 12:20:29 -07:00
commit b5d62db691
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ module Google
# Request options
class RequestOptions
# @!attribute [rw] credentials
# @!attribute [rw] authorization
# @return [Signet::OAuth2::Client, #apply(Hash)] OAuth2 credentials
# @!attribute [rw] retries
# @return [Fixnum] Number of times to retry requests on server error
@@ -63,7 +63,7 @@ module Google
return self if options.nil?
new_options = dup
%w(authorization retries timeout_sec).each do |opt|
members.each do |opt|
opt = opt.to_sym
new_options[opt] = options[opt] unless options[opt].nil?
end