amazon-ec2 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/amazon-ec2.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{amazon-ec2}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Glenn Rempe"]
12
- s.date = %q{2009-10-13}
12
+ s.date = %q{2009-10-14}
13
13
  s.description = %q{A Ruby library for accessing the Amazon Web Services Elastic Compute Cloud (EC2), Elastic Load Balancer (ELB), Cloudwatch, and Autoscaling API's.}
14
14
  s.email = %q{glenn@rempe.us}
15
15
  s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
@@ -92,7 +92,7 @@ module AWS
92
92
  raise ArgumentError, "No :instances provided" if options[:instances].nil? || options[:instances].empty?
93
93
  raise ArgumentError, "No :load_balancer_name provided" if options[:load_balancer_name].nil? || options[:load_balancer_name].empty?
94
94
  params = {}
95
- params.merge!(pathlist('Instances.member', [options[:instances]].flatten))
95
+ params.merge!(pathhashlist('Instances.member', options[:instances].flatten.collect{|e| {:instance_id => e}}, {:instance_id => 'InstanceId'}))
96
96
  params['LoadBalancerName'] = options[:load_balancer_name]
97
97
  return response_generator(:action => "RegisterInstancesWithLoadBalancer", :params => params)
98
98
  end
@@ -163,7 +163,7 @@ context "elb load balancers " do
163
163
  specify "should be able to be register instances to load balancers with register_instances_with_load_balancer" do
164
164
  @elb.stubs(:make_request).with('RegisterInstancesWithLoadBalancer', {
165
165
  'LoadBalancerName' => 'Test Name',
166
- 'Instances.member.1' => 'i-6055fa09'
166
+ 'Instances.member.1.InstanceId' => 'i-6055fa09'
167
167
  }).returns stub(:body => @register_instances_with_load_balancer_response_body, :is_a? => true)
168
168
 
169
169
  response = @elb.register_instances_with_load_balancer(@valid_register_instances_with_load_balancer_params)
@@ -175,7 +175,7 @@ context "elb load balancers " do
175
175
  specify "method register_instances_with_load_balancer should reject bad arguments" do
176
176
  @elb.stubs(:make_request).with('RegisterInstancesWithLoadBalancer', {
177
177
  'LoadBalancerName' => 'Test Name',
178
- 'Instances.member.1' => 'i-6055fa09'
178
+ 'Instances.member.1.InstanceId' => 'i-6055fa09'
179
179
  }).returns stub(:body => @register_instances_with_load_balancer_response_body, :is_a? => true)
180
180
 
181
181
  lambda { @elb.register_instances_with_load_balancer(@valid_register_instances_with_load_balancer_params) }.should.not.raise(AWS::ArgumentError)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Rempe
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-13 00:00:00 -07:00
12
+ date: 2009-10-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency