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.
@@ -370,7 +370,7 @@ module AWS
370
370
 
371
371
  response.error =
372
372
  case
373
- when response.network_error? then NetworkError.new
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
- return provider.credentials rescue Errors::MissingCredentialsError
120
+ begin
121
+ return provider.credentials
122
+ rescue Errors::MissingCredentialsError
123
+ end
120
124
  end
121
125
  raise Errors::MissingCredentialsError
122
126
  end
@@ -1219,7 +1219,7 @@ module AWS
1219
1219
  end
1220
1220
 
1221
1221
  simulate_response do |response|
1222
- response.data[:version_id] = nil
1222
+ response.data = {}
1223
1223
  end
1224
1224
 
1225
1225
  end
@@ -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
@@ -14,5 +14,5 @@
14
14
 
15
15
  module AWS
16
16
  # Current version of the AWS SDK for Ruby
17
- VERSION = '1.8.1.1'
17
+ VERSION = '1.8.1.2'
18
18
  end
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.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-01-29 00:00:00.000000000 Z
12
+ date: 2013-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools