aws 1.11.7 → 1.11.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -329,7 +329,8 @@ module RightAws
329
329
  @error_handler = nil
330
330
  return check_result
331
331
  end
332
- raise AwsError.new(@last_errors, @last_response.code, @last_request_id)
332
+ request_text_data = "#{request[:server]}:#{request[:port]}#{request[:request].path}"
333
+ raise AwsError.new(@last_errors, @last_response.code, @last_request_id, request_text_data)
333
334
  end
334
335
  rescue Exception => e
335
336
  blockexception = e
@@ -361,7 +362,8 @@ module RightAws
361
362
  @error_handler = nil
362
363
  return check_result
363
364
  end
364
- raise AwsError.new(@last_errors, @last_response.code, @last_request_id)
365
+ request_text_data = "#{request[:server]}:#{request[:port]}#{request[:request].path}"
366
+ raise AwsError.new(@last_errors, @last_response.code, @last_request_id, request_text_data)
365
367
  end
366
368
  end
367
369
  rescue
@@ -413,7 +415,9 @@ module RightAws
413
415
  @errors = errors
414
416
  @request_id = request_id
415
417
  @http_code = http_code
416
- super(@errors.is_a?(Array) ? @errors.map{|code, msg| "#{code}: #{msg}"}.join("; ") : @errors.to_s)
418
+ msg = @errors.is_a?(Array) ? @errors.map{|code, msg| "#{code}: #{msg}"}.join("; ") : @errors.to_s
419
+ msg += "\nREQUEST(#{@request_data})" unless @request_data.nil?
420
+ super(msg)
417
421
  end
418
422
 
419
423
  # Does any of the error messages include the regexp +pattern+?
@@ -53,7 +53,7 @@ module RightAws #:nodoc:
53
53
  module VERSION #:nodoc:
54
54
  MAJOR = 1
55
55
  MINOR = 11
56
- TINY = 7
56
+ TINY = 8
57
57
 
58
58
  STRING = [MAJOR, MINOR, TINY].join('.')
59
59
  end
@@ -30,8 +30,8 @@ module RightAws
30
30
  include RightAwsBaseInterface
31
31
 
32
32
  DEFAULT_HOST = 's3.amazonaws.com'
33
- DEFAULT_PORT = 443
34
- DEFAULT_PROTOCOL = 'https'
33
+ DEFAULT_PORT = 80
34
+ DEFAULT_PROTOCOL = 'http'
35
35
  DEFAULT_SERVICE = '/'
36
36
  REQUEST_TTL = 30
37
37
  DEFAULT_EXPIRES_AFTER = 1 * 24 * 60 * 60 # One day's worth of seconds
@@ -332,7 +332,7 @@ module RightAws
332
332
  end
333
333
 
334
334
  def generate_id # :nodoc:
335
- UUID.timestamp_create().to_s
335
+ UUIDTools::UUID.timestamp_create().to_s
336
336
  end
337
337
 
338
338
  protected
@@ -30,8 +30,8 @@ module RightAws
30
30
  include RightAwsBaseInterface
31
31
 
32
32
  DEFAULT_HOST = 'sdb.amazonaws.com'
33
- DEFAULT_PORT = 443
34
- DEFAULT_PROTOCOL = 'https'
33
+ DEFAULT_PORT = 80
34
+ DEFAULT_PROTOCOL = 'http'
35
35
  API_VERSION = '2007-11-07'
36
36
  DEFAULT_NIL_REPRESENTATION = 'nil'
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.7
4
+ version: 1.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-02 00:00:00 -07:00
12
+ date: 2009-06-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency