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.
- data/Gemfile.lock +1 -1
- data/lib/ey_api_hmac/sso.rb +1 -1
- data/lib/ey_api_hmac/version.rb +1 -1
- metadata +5 -7
data/Gemfile.lock
CHANGED
data/lib/ey_api_hmac/sso.rb
CHANGED
@@ -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.
|
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
|
data/lib/ey_api_hmac/version.rb
CHANGED
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:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
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.
|
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
|