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 +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/customizations/object.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76a92720a89f32cd524bc5e0eaea7f90cbbff0e
|
4
|
+
data.tar.gz: 4f7f380b84433abc43558fa1ca91b73447e63085
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ac92922a39ea52aa3d335cc0b931a6b944cdb01ad331c5f7bc721f27ba1bd56dff98605f6a2e3d98d523059c8e9f8e32d035ef32d7ee7d494632ea1cac5c41
|
7
|
+
data.tar.gz: de261941a877dea77c0fb2263c28fcc47db81a718eef0029e711afc4d28d2d4c85812a54e49f7d9bb5be57b6bc0a1dae05522c6590ec1350ed50a42e9b45723a
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -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.
|
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-
|
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
|