jmoses_api-auth 1.0.4 → 1.0.5
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/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/api_auth/base.rb +1 -1
- data/spec/api_auth_spec.rb +1 -1
- metadata +8 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
jmoses_api-auth (1.0.5)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -39,8 +39,8 @@ DEPENDENCIES
|
|
39
39
|
activeresource (~> 2.3.2)
|
40
40
|
activesupport (~> 2.3.2)
|
41
41
|
amatch
|
42
|
-
api-auth!
|
43
42
|
curb (~> 0.8.1)
|
43
|
+
jmoses_api-auth!
|
44
44
|
rake
|
45
45
|
rest-client (~> 1.6.0)
|
46
46
|
rspec (~> 2.4.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
data/lib/api_auth/base.rb
CHANGED
@@ -80,7 +80,7 @@ module ApiAuth
|
|
80
80
|
def hmac_signature(request, secret_key)
|
81
81
|
headers = Headers.new(request)
|
82
82
|
canonical_string = headers.canonical_string
|
83
|
-
digest = OpenSSL::Digest
|
83
|
+
digest = OpenSSL::Digest.new('sha1')
|
84
84
|
b64_encode(OpenSSL::HMAC.digest(digest, secret_key, canonical_string))
|
85
85
|
end
|
86
86
|
|
data/spec/api_auth_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe "ApiAuth" do
|
|
24
24
|
|
25
25
|
def hmac(secret_key, request)
|
26
26
|
canonical_string = ApiAuth::Headers.new(request).canonical_string
|
27
|
-
digest = OpenSSL::Digest
|
27
|
+
digest = OpenSSL::Digest.new('sha1')
|
28
28
|
ApiAuth.b64_encode(OpenSSL::HMAC.digest(digest, secret_key, canonical_string))
|
29
29
|
end
|
30
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jmoses_api-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -190,12 +190,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
190
|
- - ! '>='
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0'
|
193
|
+
segments:
|
194
|
+
- 0
|
195
|
+
hash: -559406267831706011
|
193
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
197
|
none: false
|
195
198
|
requirements:
|
196
199
|
- - ! '>='
|
197
200
|
- !ruby/object:Gem::Version
|
198
201
|
version: '0'
|
202
|
+
segments:
|
203
|
+
- 0
|
204
|
+
hash: -559406267831706011
|
199
205
|
requirements: []
|
200
206
|
rubyforge_project:
|
201
207
|
rubygems_version: 1.8.24
|