aws 1.11.7 → 1.11.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/awsbase/right_awsbase.rb +7 -3
- data/lib/right_aws.rb +1 -1
- data/lib/s3/right_s3_interface.rb +2 -2
- data/lib/sdb/active_sdb.rb +1 -1
- data/lib/sdb/right_sdb_interface.rb +2 -2
- metadata +2 -2
@@ -329,7 +329,8 @@ module RightAws
|
|
329
329
|
@error_handler = nil
|
330
330
|
return check_result
|
331
331
|
end
|
332
|
-
|
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
|
-
|
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
|
-
|
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+?
|
data/lib/right_aws.rb
CHANGED
@@ -30,8 +30,8 @@ module RightAws
|
|
30
30
|
include RightAwsBaseInterface
|
31
31
|
|
32
32
|
DEFAULT_HOST = 's3.amazonaws.com'
|
33
|
-
DEFAULT_PORT =
|
34
|
-
DEFAULT_PROTOCOL = '
|
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
|
data/lib/sdb/active_sdb.rb
CHANGED
@@ -30,8 +30,8 @@ module RightAws
|
|
30
30
|
include RightAwsBaseInterface
|
31
31
|
|
32
32
|
DEFAULT_HOST = 'sdb.amazonaws.com'
|
33
|
-
DEFAULT_PORT =
|
34
|
-
DEFAULT_PROTOCOL = '
|
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.
|
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-
|
12
|
+
date: 2009-06-04 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|