pusher-platform 0.5.0 → 0.5.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbf464ef5323a32752a000425eb36a34d67cca56
4
- data.tar.gz: 45b483a4c73fd2eb68a58faee4a4501817e10c0e
3
+ metadata.gz: 63984ba20221658d47ae460cee603acfbe67c078
4
+ data.tar.gz: 4aa031d194b01cfbda401e82885395149f4a0e47
5
5
  SHA512:
6
- metadata.gz: 297c7eaac6622aad0e4fb856e1e827efcbd611b30a27cfbdf7f8be6c707443fabebfa7d30f2691d9ba93560b519226ae5e0278e49efbf06099c993ef41a8adaa
7
- data.tar.gz: 916118c66b5206512d35e05db15cc9b112ed1f45a830fefd76b231b5196b03a8ebb615ca68bf82fc28becadeb187e7817aa483b61da384e7a981a248f1a50d70
6
+ metadata.gz: 35d023ae46b9585beff39fa91b8fe19994ad65f1bd07ecd3885e633bd039ad5b1171cea2c99e0ad9a98e3c7586f878ab03e00892b2b4241ba143f9a9057b1bb7
7
+ data.tar.gz: 5dbb406726b120cac32bc862d46dcd20b8e427a6f27976805e50320afd05198feef72c5aa7dcb27751fc9ed9028e4c25c1dd7572d430dcbfbf96b6277b4897d6
@@ -40,7 +40,7 @@ module Pusher
40
40
  app: @instance_id,
41
41
  iss: "api_keys/#{@key_id}",
42
42
  iat: now - TOKEN_LEEWAY,
43
- exp: now + TOKEN_EXPIRY + TOKEN_LEEWAY,
43
+ exp: now + TOKEN_EXPIRY - TOKEN_LEEWAY # TODO: Change to + TOKEN_LEEWAY soon, but for now max exp is 86400
44
44
  }
45
45
 
46
46
  claims.merge!({ sub: options[:user_id] }) unless options[:user_id].nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-27 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon