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.
- data/History.txt +4 -0
- data/lib/EC2/elastic_ips.rb +1 -1
- data/lib/EC2/version.rb +1 -1
- data/test/test_EC2_elastic_ips.rb +2 -2
- data/test/test_EC2_version.rb +1 -1
- data/website/index.html +1 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -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
|
|
data/lib/EC2/elastic_ips.rb
CHANGED
@@ -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
|
|
data/lib/EC2/version.rb
CHANGED
@@ -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',
|
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',
|
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)
|
data/test/test_EC2_version.rb
CHANGED
data/website/index.html
CHANGED
@@ -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.
|
36
|
+
<a href="http://rubyforge.org/projects/amazon-ec2" class="numbers">0.2.10</a>
|
37
37
|
</div>
|
38
38
|
<h2>→ ‘amazon-ec2’</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.
|
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-
|
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.
|
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.
|