aws 2.3.2 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, @@api, @params, params)
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)
@@ -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
@@ -35,6 +35,7 @@ class TestElb < Test::Unit::TestCase
35
35
 
36
36
  def test_04_describe_elb
37
37
  desc = @elb.describe_load_balancers
38
+ puts desc.inspect
38
39
  end
39
40
 
40
41
  def test_06_describe_instance_health
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
- - 2
9
- version: 2.3.2
8
+ - 4
9
+ version: 2.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder