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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0d4531955ecae124eecdd22fa0f9fd60c7e4725
4
- data.tar.gz: 29e7dfccd6fdd947a5834e344d00a6060e00c535
3
+ metadata.gz: a5d81d15465d43960021da16c2c8da6a7a6be179
4
+ data.tar.gz: c7faee2542591ee27138abdc2e03110752b33a14
5
5
  SHA512:
6
- metadata.gz: 51e08fdb619be01e391c385cb25618efd05eb403d29858c6548ef5763d311d550b715b24dce3ea16f74abe0e340a00cc0f3280c7b9f79b54d2ead54fdaa76082
7
- data.tar.gz: 3f422623d166ad2036e3083b3bf9bb7b7f575f3c016155a30c17d6b95444114219bc09871cafe5f611b05feeba270708826002aec3c04aa179fe6512c0e688f9
6
+ metadata.gz: d27059a0c1b9d42f42e35dcc0e81ee1968a8bc7c1b80fc060396fce69d988637077a9c09ee9d90ce5a0a52314726c4a8eeb4611da3f0b509b2fe0186d22783c6
7
+ data.tar.gz: 20736a8d7debfcf0a688c21dfeba7f6831714b648af4d842801b2ae9b874450729aa5c77d627e2d89c92caa2bdfc60d3a85c203512a8646efae1c75545210019
@@ -26,8 +26,8 @@ module Caplinked
26
26
  private
27
27
 
28
28
  def req_headers
29
- expiration = 5.minutes.from_now.utc.to_s
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,
@@ -14,7 +14,7 @@ module Caplinked
14
14
 
15
15
  # @return [Integer]
16
16
  def patch
17
- 0
17
+ 1
18
18
  end
19
19
 
20
20
  # @return [Integer, NilClass]
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.0
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-18 00:00:00.000000000 Z
12
+ date: 2017-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport