aws-sdk-s3 1.49.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cb0b1deb230df9560c2194273c3a8c9b7abd2fc
4
- data.tar.gz: 830ea5a5630bde00087a66b0a89354ee8e8200cb
3
+ metadata.gz: c76a92720a89f32cd524bc5e0eaea7f90cbbff0e
4
+ data.tar.gz: 4f7f380b84433abc43558fa1ca91b73447e63085
5
5
  SHA512:
6
- metadata.gz: 0d146d0b1dde71d57f67ab7aa206f1617569a6bdb0012e6a04d4e109969c4b947ca1731cf572a8b9619550e9fdf12a0a29d7609231aaf3b57766414398a151ba
7
- data.tar.gz: 909b4e5172f577e9cfefa8cac4d55a22f51604da2a55bd71cfb535ecd4cce7aefb07ece30370309d1eb74add7c5140c4ae77cb5b3017e6a33eae4c8c8a177dfe
6
+ metadata.gz: a7ac92922a39ea52aa3d335cc0b931a6b944cdb01ad331c5f7bc721f27ba1bd56dff98605f6a2e3d98d523059c8e9f8e32d035ef32d7ee7d494632ea1cac5c41
7
+ data.tar.gz: de261941a877dea77c0fb2263c28fcc47db81a718eef0029e711afc4d28d2d4c85812a54e49f7d9bb5be57b6bc0a1dae05522c6590ec1350ed50a42e9b45723a
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.49.0'
66
+ GEM_VERSION = '1.50.0'
67
67
 
68
68
  end
@@ -7099,7 +7099,7 @@ module Aws::S3
7099
7099
  params: params,
7100
7100
  config: config)
7101
7101
  context[:gem_name] = 'aws-sdk-s3'
7102
- context[:gem_version] = '1.49.0'
7102
+ context[:gem_version] = '1.50.0'
7103
7103
  Seahorse::Client::Request.new(handlers, context)
7104
7104
  end
7105
7105
 
@@ -283,6 +283,13 @@ module Aws
283
283
  # # and the parts are uploaded in parallel
284
284
  # obj.upload_file('/path/to/very_large_file')
285
285
  #
286
+ # The response of the S3 upload API is yielded if a block given.
287
+ #
288
+ # # API response will have etag value of the file
289
+ # obj.upload_file('/path/to/file') do |response|
290
+ # etag = response.etag
291
+ # end
292
+ #
286
293
  # @param [String, Pathname, File, Tempfile] source A file on the local
287
294
  # file system that will be uploaded as this object. This can either be
288
295
  # a String or Pathname to the file, an open File object, or an open
@@ -314,10 +321,11 @@ module Aws
314
321
  multipart_threshold: uploading_options.delete(:multipart_threshold),
315
322
  client: client
316
323
  )
317
- uploader.upload(
324
+ response = uploader.upload(
318
325
  source,
319
326
  uploading_options.merge(bucket: bucket_name, key: key)
320
327
  )
328
+ yield response if block_given?
321
329
  true
322
330
  end
323
331
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms