aws 2.3.2 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/awsbase/right_awsbase.rb +2 -1
- data/lib/ec2/right_ec2.rb +2 -1
- data/lib/ec2/right_mon_interface.rb +2 -1
- data/lib/elb/elb_interface.rb +2 -1
- data/lib/rds/rds.rb +2 -1
- data/lib/sqs/right_sqs_interface.rb +2 -1
- data/test/elb/test_elb.rb +1 -0
- metadata +2 -2
@@ -334,6 +334,7 @@ module Aws
|
|
334
334
|
@params[:port] ||= service_info[:default_port]
|
335
335
|
@params[:service] ||= service_info[:default_service]
|
336
336
|
@params[:protocol] ||= service_info[:default_protocol]
|
337
|
+
@params[:api_version] ||= service_info[:api_version]
|
337
338
|
end
|
338
339
|
if !@params[:multi_thread].nil? && @params[:connection_mode].nil? # user defined this
|
339
340
|
@params[:connection_mode] = @params[:multi_thread] ? :per_thread : :single
|
@@ -365,7 +366,7 @@ module Aws
|
|
365
366
|
|
366
367
|
|
367
368
|
def generate_request(action, params={})
|
368
|
-
generate_request2(@aws_access_key_id, @aws_secret_access_key, action,
|
369
|
+
generate_request2(@aws_access_key_id, @aws_secret_access_key, action, @params[:api_version], @params, params)
|
369
370
|
end
|
370
371
|
|
371
372
|
# FROM SDB
|
data/lib/ec2/right_ec2.rb
CHANGED
@@ -118,7 +118,8 @@ module Aws
|
|
118
118
|
:default_host => ENV['EC2_URL'] ? URI.parse(ENV['EC2_URL']).host : DEFAULT_HOST,
|
119
119
|
:default_port => ENV['EC2_URL'] ? URI.parse(ENV['EC2_URL']).port : DEFAULT_PORT,
|
120
120
|
:default_service => ENV['EC2_URL'] ? URI.parse(ENV['EC2_URL']).path : DEFAULT_PATH,
|
121
|
-
:default_protocol => ENV['EC2_URL'] ? URI.parse(ENV['EC2_URL']).scheme : DEFAULT_PROTOCOL
|
121
|
+
:default_protocol => ENV['EC2_URL'] ? URI.parse(ENV['EC2_URL']).scheme : DEFAULT_PROTOCOL,
|
122
|
+
:api_version => API_VERSION },
|
122
123
|
aws_access_key_id || ENV['AWS_ACCESS_KEY_ID'] ,
|
123
124
|
aws_secret_access_key|| ENV['AWS_SECRET_ACCESS_KEY'],
|
124
125
|
params)
|
@@ -38,7 +38,8 @@ module Aws
|
|
38
38
|
:default_host => ENV['MON_URL'] ? URI.parse(ENV['MON_URL']).host : DEFAULT_HOST,
|
39
39
|
:default_port => ENV['MON_URL'] ? URI.parse(ENV['MON_URL']).port : DEFAULT_PORT,
|
40
40
|
:default_service => ENV['MON_URL'] ? URI.parse(ENV['MON_URL']).path : DEFAULT_PATH,
|
41
|
-
:default_protocol => ENV['MON_URL'] ? URI.parse(ENV['MON_URL']).scheme : DEFAULT_PROTOCOL
|
41
|
+
:default_protocol => ENV['MON_URL'] ? URI.parse(ENV['MON_URL']).scheme : DEFAULT_PROTOCOL,
|
42
|
+
:api_version => API_VERSION },
|
42
43
|
aws_access_key_id || ENV['AWS_ACCESS_KEY_ID'],
|
43
44
|
aws_secret_access_key|| ENV['AWS_SECRET_ACCESS_KEY'],
|
44
45
|
params)
|
data/lib/elb/elb_interface.rb
CHANGED
@@ -38,7 +38,8 @@ module Aws
|
|
38
38
|
:default_host => ENV['ELB_URL'] ? URI.parse(ENV['ELB_URL']).host : DEFAULT_HOST,
|
39
39
|
:default_port => ENV['ELB_URL'] ? URI.parse(ENV['ELB_URL']).port : DEFAULT_PORT,
|
40
40
|
:default_service => ENV['ELB_URL'] ? URI.parse(ENV['ELB_URL']).path : DEFAULT_PATH,
|
41
|
-
:default_protocol => ENV['ELB_URL'] ? URI.parse(ENV['ELB_URL']).scheme : DEFAULT_PROTOCOL
|
41
|
+
:default_protocol => ENV['ELB_URL'] ? URI.parse(ENV['ELB_URL']).scheme : DEFAULT_PROTOCOL,
|
42
|
+
:api_version => API_VERSION },
|
42
43
|
aws_access_key_id || ENV['AWS_ACCESS_KEY_ID'],
|
43
44
|
aws_secret_access_key|| ENV['AWS_SECRET_ACCESS_KEY'],
|
44
45
|
params)
|
data/lib/rds/rds.rb
CHANGED
@@ -40,7 +40,8 @@ module Aws
|
|
40
40
|
:default_host => uri ? uri.host : DEFAULT_HOST,
|
41
41
|
:default_port => uri ? uri.port : DEFAULT_PORT,
|
42
42
|
:default_service => uri ? uri.path : DEFAULT_PATH,
|
43
|
-
:default_protocol => uri ? uri.scheme : DEFAULT_PROTOCOL
|
43
|
+
:default_protocol => uri ? uri.scheme : DEFAULT_PROTOCOL,
|
44
|
+
:api_version => API_VERSION },
|
44
45
|
aws_access_key_id || ENV['AWS_ACCESS_KEY_ID'],
|
45
46
|
aws_secret_access_key|| ENV['AWS_SECRET_ACCESS_KEY'],
|
46
47
|
params)
|
@@ -79,7 +79,8 @@ module Aws
|
|
79
79
|
init({ :name => 'SQS',
|
80
80
|
:default_host => ENV['SQS_URL'] ? URI.parse(ENV['SQS_URL']).host : DEFAULT_HOST,
|
81
81
|
:default_port => ENV['SQS_URL'] ? URI.parse(ENV['SQS_URL']).port : DEFAULT_PORT,
|
82
|
-
:default_protocol => ENV['SQS_URL'] ? URI.parse(ENV['SQS_URL']).scheme : DEFAULT_PROTOCOL
|
82
|
+
:default_protocol => ENV['SQS_URL'] ? URI.parse(ENV['SQS_URL']).scheme : DEFAULT_PROTOCOL,
|
83
|
+
:api_version => API_VERSION },
|
83
84
|
aws_access_key_id || ENV['AWS_ACCESS_KEY_ID'],
|
84
85
|
aws_secret_access_key || ENV['AWS_SECRET_ACCESS_KEY'],
|
85
86
|
params)
|
data/test/elb/test_elb.rb
CHANGED