amazon-ec2 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.2.10 2008-04-13
2
+ * Fix bug where ec2#disassociate_address would return 'undefined method 'reject!' for "xxx.xxx.xxx.xxx":String'.
3
+ Thanks to Brian Thomas for reporting.
4
+
1
5
  === 0.2.9 2008-03-31
2
6
  * Added initial support for API version 2008-02-01. Support for new 'Elastic IP' functionality added.
3
7
 
@@ -142,7 +142,7 @@ module EC2
142
142
 
143
143
  raise ArgumentError, "No ':public_ip' provided" if options[:public_ip].nil? || options[:public_ip].empty?
144
144
 
145
- params = options[:public_ip]
145
+ params = { "PublicIp" => options[:public_ip] }
146
146
 
147
147
  return response_generator(:action => "DisassociateAddress", :params => params)
148
148
 
@@ -12,7 +12,7 @@ module EC2 #:nodoc:
12
12
  module VERSION #:nodoc:
13
13
  MAJOR = 0
14
14
  MINOR = 2
15
- TINY = 9
15
+ TINY = 10
16
16
  STRING = [MAJOR, MINOR, TINY].join('.')
17
17
  end
18
18
  end
@@ -121,7 +121,7 @@ context "EC2 elastic IP addresses " do
121
121
 
122
122
 
123
123
  specify "should be able to be disassociated with an instance with disassociate_address" do
124
- @ec2.stubs(:make_request).with('DisassociateAddress', "67.202.55.255").
124
+ @ec2.stubs(:make_request).with('DisassociateAddress', {'PublicIp' => '67.202.55.255'}).
125
125
  returns stub(:body => @disassociate_address_response_body, :is_a? => true)
126
126
 
127
127
  @ec2.disassociate_address( :public_ip => "67.202.55.255" ).should.be.an.instance_of EC2::Response
@@ -132,7 +132,7 @@ context "EC2 elastic IP addresses " do
132
132
 
133
133
 
134
134
  specify "method disassociate_address should reject bad arguments" do
135
- @ec2.stubs(:make_request).with('DisassociateAddress', "67.202.55.255").
135
+ @ec2.stubs(:make_request).with('DisassociateAddress', {'PublicIp' => '67.202.55.255'}).
136
136
  returns stub(:body => @disassociate_address_response_body, :is_a? => true)
137
137
 
138
138
  lambda { @ec2.disassociate_address( :public_ip => "67.202.55.255" ) }.should.not.raise(EC2::ArgumentError)
@@ -16,7 +16,7 @@ context "The EC2 Gem " do
16
16
  setup do
17
17
  @major = 0
18
18
  @minor = 2
19
- @tiny = 9
19
+ @tiny = 10
20
20
  @string = [@major, @minor, @tiny].join('.')
21
21
  end
22
22
 
@@ -33,7 +33,7 @@
33
33
  <h1>Amazon Web Services EC2 Ruby Gem</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/amazon-ec2"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/amazon-ec2" class="numbers">0.2.9</a>
36
+ <a href="http://rubyforge.org/projects/amazon-ec2" class="numbers">0.2.10</a>
37
37
  </div>
38
38
  <h2>&#x2192; &#8216;amazon-ec2&#8217;</h2>
39
39
 
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.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Rempe
@@ -9,7 +9,7 @@ autorequire: EC2
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-31 00:00:00 -07:00
12
+ date: 2008-04-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements: []
156
156
 
157
157
  rubyforge_project: amazon-ec2
158
- rubygems_version: 1.1.0
158
+ rubygems_version: 1.1.1
159
159
  signing_key:
160
160
  specification_version: 2
161
161
  summary: An interface library that allows Ruby or Ruby on Rails applications to easily connect to the HTTP 'Query API' for the Amazon Web Services Elastic Compute Cloud (EC2) and manipulate server instances.