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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e7b31ea39cefb9f6b01c544c17aad2e48e7f799
4
- data.tar.gz: a3fb448b496f59ef7a1432d77c2ae5cfdf1c0466
3
+ metadata.gz: 48b35c73bc713cf6bd853a2f924d782cd46cdbb6
4
+ data.tar.gz: 6b9e060876d8eab0e733a8ebc4aebb34fd00b3cb
5
5
  SHA512:
6
- metadata.gz: 7e494ffaf7dc5fab3dab319973794390defd2542ec354d720c033b5285756524936394256595efa955d0dfc0773c4af9e061a9e221e92ead023663d4c5d0bb70
7
- data.tar.gz: 1302612a726e86a1e9779c7ccb309ddbc87b720900baaf08cb78086968d86b87bd498ae0069465d7492a5d5588c149bd8ce611632f1e7223308e1f896ac00902
6
+ metadata.gz: 8e14714e3f197870502fa99b1395a9c07808a5a2353569b855ed513e205a1faf9f3bb95f440be05cb67c4ad77e3bb95d0d4a0cb874a63ef395c81ec62bc4011f
7
+ data.tar.gz: bac186c58e633ee2a0afabedd7fb563890aeaacde579ad8c0dd43f10588a1c5715dd1186b0f8ce89261660a490d2325769b4effb4da687b3721954da724b667d
@@ -61,6 +61,6 @@ require_relative 'aws-sdk-s3/customizations'
61
61
  # @service
62
62
  module Aws::S3
63
63
 
64
- GEM_VERSION = '1.0.0.rc14'
64
+ GEM_VERSION = '1.0.0.rc15'
65
65
 
66
66
  end
@@ -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.rc14'
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 clean_up_parts(parts)
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
- batches = file_batches(chunks, param)
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
- clean_up_parts(parts)
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.rc14
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-01 00:00:00.000000000 Z
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.rc12
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.rc12
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.rc19
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.rc19
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: