ey_api_hmac 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ey_api_hmac (0.0.6.pre)
4
+ ey_api_hmac (0.0.8.pre)
5
5
  json
6
6
  rack-client
7
7
 
@@ -5,7 +5,7 @@ module EY
5
5
  def self.sign(url, parameters, auth_id, auth_key)
6
6
  uri = URI.parse(url)
7
7
  raise ArgumentError, "use parameters argument, got query: '#{uri.query}'" if uri.query
8
- uri.query = parameters.sort.map {|e| e.map{|str| CGI.escape(str.to_s)}.join '='}.join '&'
8
+ uri.query = parameters.sort_by(&:to_s).map {|e| e.map{|str| CGI.escape(str.to_s)}.join '='}.join '&'
9
9
  signature = CGI.escape(signature_param(uri.to_s, auth_id, auth_key))
10
10
  uri.query += "&signature=#{signature}"
11
11
  uri.to_s
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ApiHMAC
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_api_hmac
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jacob Burkhart & Thorben Schr\xC3\xB6der & David Calavera & others"
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-25 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-08-29 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rack-client
@@ -85,7 +84,6 @@ files:
85
84
  - spec/api_auth_spec.rb
86
85
  - spec/spec_helper.rb
87
86
  - spec/sso_spec.rb
88
- has_rdoc: true
89
87
  homepage: ""
90
88
  licenses: []
91
89
 
@@ -115,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
113
  requirements: []
116
114
 
117
115
  rubyforge_project: ey_api_hmac
118
- rubygems_version: 1.4.2
116
+ rubygems_version: 1.8.6
119
117
  signing_key:
120
118
  specification_version: 3
121
119
  summary: HMAC Rack basic implementation for Engine Yard services