right_aws 1.7.0 → 1.7.1

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.
@@ -52,7 +52,7 @@ module RightAws #:nodoc:
52
52
  module VERSION #:nodoc:
53
53
  MAJOR = 1
54
54
  MINOR = 7
55
- TINY = 0
55
+ TINY = 1
56
56
 
57
57
  STRING = [MAJOR, MINOR, TINY].join('.')
58
58
  end
@@ -130,10 +130,10 @@ module RightAws
130
130
  request_hash.update(param)
131
131
  request_data = request_hash.sort{|a,b| (a[0].to_s.downcase)<=>(b[0].to_s.downcase)}.to_s
132
132
  request_hash['Signature'] = AwsUtils::sign(@aws_secret_access_key, request_data)
133
- request_body = request_hash.to_a.collect{|key,val| key.to_s + "=" + val.to_s }.join("&")
133
+ request_body = request_hash.to_a.collect{|key,val| CGI.escape(key.to_s) + "=" + CGI.escape(val.to_s) }.join("&")
134
134
  request = Net::HTTP::Post.new(AwsUtils.URLencode(queue_uri))
135
135
  request['Content-Type'] = 'application/x-www-form-urlencoded'
136
- request.body = AwsUtils.URLencode(request_body)
136
+ request.body = request_body
137
137
  # prepare output hash
138
138
  { :request => request,
139
139
  :server => @params[:server],
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: right_aws
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.7.0
7
- date: 2008-04-01 00:00:00 -07:00
6
+ version: 1.7.1
7
+ date: 2008-04-04 00:00:00 -07:00
8
8
  summary: Interface classes for the Amazon EC2, SQS, and S3 Web Services
9
9
  require_paths:
10
10
  - lib