aws-sdk-s3 1.0.0.rc14 → 1.0.0.rc15
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/file_downloader.rb +6 -10
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b35c73bc713cf6bd853a2f924d782cd46cdbb6
|
4
|
+
data.tar.gz: 6b9e060876d8eab0e733a8ebc4aebb34fd00b3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e14714e3f197870502fa99b1395a9c07808a5a2353569b855ed513e205a1faf9f3bb95f440be05cb67c4ad77e3bb95d0d4a0cb874a63ef395c81ec62bc4011f
|
7
|
+
data.tar.gz: bac186c58e633ee2a0afabedd7fb563890aeaacde579ad8c0dd43f10588a1c5715dd1186b0f8ce89261660a490d2325769b4effb4da687b3721954da724b667d
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -5868,7 +5868,7 @@ module Aws::S3
|
|
5868
5868
|
params: params,
|
5869
5869
|
config: config)
|
5870
5870
|
context[:gem_name] = 'aws-sdk-s3'
|
5871
|
-
context[:gem_version] = '1.0.0.
|
5871
|
+
context[:gem_version] = '1.0.0.rc15'
|
5872
5872
|
Seahorse::Client::Request.new(handlers, context)
|
5873
5873
|
end
|
5874
5874
|
|
@@ -106,15 +106,8 @@ module Aws
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
def
|
110
|
-
parts.each do |filename|
|
111
|
-
File.unlink(filename) if File.exists?(filename)
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
def file_batches(chunks, mode)
|
109
|
+
def file_batches(chunks, dir, mode)
|
116
110
|
batches = []
|
117
|
-
dir = Dir.tmpdir
|
118
111
|
chunks = (1..chunks) if mode.eql? 'part_number'
|
119
112
|
chunks.each_slice(@thread_count) do |slice|
|
120
113
|
batches << map_files(slice, dir, mode)
|
@@ -140,7 +133,9 @@ module Aws
|
|
140
133
|
end
|
141
134
|
|
142
135
|
def thread_batches(chunks, param)
|
143
|
-
|
136
|
+
# create a tmp dir under destination dir for batches
|
137
|
+
dir = Dir.mktmpdir(nil, File.dirname(@path))
|
138
|
+
batches = file_batches(chunks, dir, param)
|
144
139
|
parts = batches.flat_map(&:values)
|
145
140
|
begin
|
146
141
|
batches.each do |batch|
|
@@ -159,7 +154,8 @@ module Aws
|
|
159
154
|
end
|
160
155
|
concatenate_parts(parts)
|
161
156
|
ensure
|
162
|
-
|
157
|
+
# clean up tmp dir
|
158
|
+
FileUtils.remove_entry(dir)
|
163
159
|
end
|
164
160
|
end
|
165
161
|
|
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.0.0.
|
4
|
+
version: 1.0.0.rc15
|
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: 2017-08-
|
11
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0.
|
19
|
+
version: 1.0.0.rc13
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0.
|
26
|
+
version: 1.0.0.rc13
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0.0.
|
47
|
+
version: 3.0.0.rc20
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.0.
|
54
|
+
version: 3.0.0.rc20
|
55
55
|
description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
|
56
56
|
This gem is part of the AWS SDK for Ruby.
|
57
57
|
email:
|