grempe-amazon-ec2 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -1
- data/lib/EC2.rb +3 -3
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
=== 0.3.
|
1
|
+
=== 0.3.8 2009-04-16
|
2
2
|
* Applied patch, with updated tests to fix issue with base64 encoded user data (rsanheim).
|
3
|
+
* Applied patch, fixing an issue with EU Signature version 2 creation (delano).
|
3
4
|
|
4
5
|
=== 0.3.6 2009-03-02
|
5
6
|
* You can now specify any arbitrary SSL tcp port to connect to (kerryb)
|
data/lib/EC2.rb
CHANGED
@@ -182,7 +182,7 @@ module EC2
|
|
182
182
|
"Version" => API_VERSION,
|
183
183
|
"Timestamp"=>Time.now.getutc.iso8601} )
|
184
184
|
|
185
|
-
sig = get_aws_auth_param(params, @secret_access_key)
|
185
|
+
sig = get_aws_auth_param(params, @secret_access_key, @server)
|
186
186
|
|
187
187
|
query = params.sort.collect do |param|
|
188
188
|
CGI::escape(param[0]) + "=" + CGI::escape(param[1])
|
@@ -205,8 +205,8 @@ module EC2
|
|
205
205
|
end
|
206
206
|
|
207
207
|
# Set the Authorization header using AWS signed header authentication
|
208
|
-
def get_aws_auth_param(params, secret_access_key)
|
209
|
-
canonical_string = EC2.canonical_string(params)
|
208
|
+
def get_aws_auth_param(params, secret_access_key, server)
|
209
|
+
canonical_string = EC2.canonical_string(params, server)
|
210
210
|
encoded_canonical = EC2.encode(secret_access_key, canonical_string)
|
211
211
|
end
|
212
212
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grempe-amazon-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
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: 2009-
|
12
|
+
date: 2009-04-08 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|