caplinked-api 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/caplinked/request.rb +2 -2
- data/lib/caplinked/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d81d15465d43960021da16c2c8da6a7a6be179
|
4
|
+
data.tar.gz: c7faee2542591ee27138abdc2e03110752b33a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d27059a0c1b9d42f42e35dcc0e81ee1968a8bc7c1b80fc060396fce69d988637077a9c09ee9d90ce5a0a52314726c4a8eeb4611da3f0b509b2fe0186d22783c6
|
7
|
+
data.tar.gz: 20736a8d7debfcf0a688c21dfeba7f6831714b648af4d842801b2ae9b874450729aa5c77d627e2d89c92caa2bdfc60d3a85c203512a8646efae1c75545210019
|
data/lib/caplinked/request.rb
CHANGED
@@ -26,8 +26,8 @@ module Caplinked
|
|
26
26
|
private
|
27
27
|
|
28
28
|
def req_headers
|
29
|
-
expiration = 5.minutes.from_now.utc.
|
30
|
-
signature = "Method=HMAC-SHA256 Signature=" + OpenSSL::HMAC.hexdigest('SHA256', @client.api_secret_key, [@client.api_key.to_s, @client.api_user_token.to_s,expiration].join)
|
29
|
+
expiration = 5.minutes.from_now.utc.to_i
|
30
|
+
signature = "Method=HMAC-SHA256 Signature=" + OpenSSL::HMAC.hexdigest('SHA256', @client.api_secret_key, [@client.api_key.to_s, @client.api_user_token.to_s, expiration.to_s].join)
|
31
31
|
default_headers = {
|
32
32
|
'x-api-key' => @client.api_key,
|
33
33
|
'x-api-user-token' => @client.api_user_token,
|
data/lib/caplinked/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caplinked-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Fowler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-02-
|
12
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|