aws-sdk 1.8.1.1 → 1.8.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aws/core/client.rb +1 -1
- data/lib/aws/core/credential_providers.rb +5 -1
- data/lib/aws/s3/client.rb +1 -1
- data/lib/aws/s3/multipart_upload.rb +2 -2
- data/lib/aws/version.rb +1 -1
- metadata +2 -2
data/lib/aws/core/client.rb
CHANGED
@@ -370,7 +370,7 @@ module AWS
|
|
370
370
|
|
371
371
|
response.error =
|
372
372
|
case
|
373
|
-
when response.network_error? then
|
373
|
+
when response.network_error? then response.http_response.network_error
|
374
374
|
when error_code then error_class(error_code).new(*error_args)
|
375
375
|
when status >= 500 then Errors::ServerError.new(*error_args)
|
376
376
|
when status >= 300 then Errors::ClientError.new(*error_args)
|
@@ -15,6 +15,7 @@ require 'set'
|
|
15
15
|
require 'net/http'
|
16
16
|
require 'timeout'
|
17
17
|
require 'thread'
|
18
|
+
require 'time'
|
18
19
|
|
19
20
|
module AWS
|
20
21
|
module Core
|
@@ -116,7 +117,10 @@ module AWS
|
|
116
117
|
|
117
118
|
def credentials
|
118
119
|
providers.each do |provider|
|
119
|
-
|
120
|
+
begin
|
121
|
+
return provider.credentials
|
122
|
+
rescue Errors::MissingCredentialsError
|
123
|
+
end
|
120
124
|
end
|
121
125
|
raise Errors::MissingCredentialsError
|
122
126
|
end
|
data/lib/aws/s3/client.rb
CHANGED
@@ -242,8 +242,8 @@ module AWS
|
|
242
242
|
raise "no parts uploaded" if complete_opts[:parts].empty?
|
243
243
|
|
244
244
|
resp = client.complete_multipart_upload(complete_opts)
|
245
|
-
if resp.version_id
|
246
|
-
ObjectVersion.new(object, resp.version_id)
|
245
|
+
if resp.data[:version_id]
|
246
|
+
ObjectVersion.new(object, resp.data[:version_id])
|
247
247
|
else
|
248
248
|
object
|
249
249
|
end
|
data/lib/aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.1.
|
4
|
+
version: 1.8.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuidtools
|