Skip to content

Commit

Permalink
Start switching to double splats (tests still broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Feb 2, 2022
1 parent cfb0e45 commit cf4b80c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions gems/aws-sdk-s3/lib/aws-sdk-s3/customizations/object_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,70 +14,70 @@ class ObjectSummary
# @return (see Object#copy_from)
# @see Object#copy_from
def copy_from(source, options = {})
object.copy_from(source, options)
object.copy_from(source, **options)
end

# @param (see Object#copy_to)
# @options (see Object#copy_to)
# @return (see Object#copy_to)
# @see Object#copy_to
def copy_to(target, options = {})
object.copy_to(target, options)
object.copy_to(target, **options)
end

# @param (see Object#move_to)
# @options (see Object#move_to)
# @return (see Object#move_to)
# @see Object#move_to
def move_to(target, options = {})
object.move_to(target, options)
object.move_to(target, **options)
end

# @param (see Object#presigned_post)
# @options (see Object#presigned_post)
# @return (see Object#presigned_post)
# @see Object#presigned_post
def presigned_post(options = {})
object.presigned_post(options)
object.presigned_post(**options)
end

# @param (see Object#presigned_url)
# @options (see Object#presigned_url)
# @return (see Object#presigned_url)
# @see Object#presigned_url
def presigned_url(http_method, params = {})
object.presigned_url(http_method, params)
object.presigned_url(http_method, **params)
end

# @param (see Object#public_url)
# @options (see Object#public_url)
# @return (see Object#public_url)
# @see Object#public_url
def public_url(options = {})
object.public_url(options)
object.public_url(**options)
end

# @param (see Object#upload_file)
# @options (see Object#upload_file)
# @return (see Object#upload_file)
# @see Object#upload_file
def upload_file(source, options = {})
object.upload_file(source, options)
object.upload_file(source, **options)
end

# @options (see Object#upload_stream)
# @return (see Object#upload_stream)
# @see Object#upload_stream
def upload_stream(options = {}, &block)
object.upload_stream(options, &block)
object.upload_stream(**options, &block)
end

# @param (see Object#download_file)
# @options (see Object#download_file)
# @return (see Object#download_file)
# @see Object#download_file
def download_file(destination, options = {})
object.download_file(destination, options)
object.download_file(destination, **options)
end

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def upload_in_threads(read_pipe, completed, options)
body: body,
part_number: thread_part_number,
)
resp = @client.upload_part(part)
resp = @client.upload_part(**part)
completed << {etag: resp.etag, part_number: part[:part_number]}
ensure
if Tempfile === body
Expand Down

0 comments on commit cf4b80c

Please sign in to comment.