willnet-amazon-ecs 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +1 -1
  2. data/lib/amazon/ecs.rb +2 -2
  3. metadata +3 -2
data/README CHANGED
@@ -12,7 +12,7 @@ If in the future, there is a change in REST XML output structure,
12
12
  no changes will be required on <tt>amazon-ecs</tt> library,
13
13
  instead you just need to change the element path.
14
14
 
15
- Version: 0.5.5
15
+ Version: 0.5.6
16
16
 
17
17
  == INSTALLATION
18
18
 
@@ -206,13 +206,13 @@ module Amazon
206
206
  qs.sort!
207
207
  qs.map! do |k,v|
208
208
  v = v.join(',') if v.is_a? Array
209
- [k, CGI.escape(v.to_s)] * "="
209
+ [k, URI.escape(v.to_s, /[^a-zA-z\d_.-]/)] * "="
210
210
  end
211
211
  qs = qs * "&"
212
212
  uri = URI.parse(request_url + "?" + qs)
213
213
  msg = [ 'GET', uri.host, uri.path, uri.query ].join("\n")
214
214
  dig = hmac_sha256(secret_access_key, msg)
215
- sig = CGI.escape(Base64.encode64(dig).chomp)
215
+ sig = URI.escape(Base64.encode64(dig).chomp, /[^a-zA-z\d_.-]/)
216
216
  "#{request_url}?#{qs}&Signature=#{sig}"
217
217
  end
218
218
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: willnet-amazon-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herryanto Siatono
@@ -38,6 +38,7 @@ files:
38
38
  - CHANGELOG
39
39
  has_rdoc: true
40
40
  homepage: http://amazon-ecs.rubyforge.net/
41
+ licenses:
41
42
  post_install_message:
42
43
  rdoc_options: []
43
44
 
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements: []
59
60
 
60
61
  rubyforge_project:
61
- rubygems_version: 1.2.0
62
+ rubygems_version: 1.3.5
62
63
  signing_key:
63
64
  specification_version: 2
64
65
  summary: Generic Amazon E-commerce Service (ECS) REST API. Supports ECS 4.0.