pusher-platform 0.4.0 → 0.4.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: 227190e608cfbaa5d09acc4cc329c6837ee820d1
4
- data.tar.gz: ffefafb388f8bd3f2687f465bdb535ed97c9615e
3
+ metadata.gz: 6ca349821245fb8e48f6850ee355ba340cb6a50e
4
+ data.tar.gz: c38eb23d05d86c36dbfb5c4b5c87ffd404496567
5
5
  SHA512:
6
- metadata.gz: 001425ee5c3bd2c8078fdcc33a0107e71f96644732aaada61bef328a85c7d4c2a2bb464cbc53cb8301b44ddfce8c4fa7a8095c64145fa9cb0970c97bfdd59ae8
7
- data.tar.gz: 601711c1329d4c4938f79184de57ba25f89172e8b892152cd7545f2e15489356394feb6223dad54f268d39b4a0b38ab810da8df22afd80743556d1a11d37a351
6
+ metadata.gz: 1b5f0b3d832c5a58e74d1b345a702b064f3cc6b3314bc6934aa9de34debdb846e06e3eb82339c29ebdd625e21dbc37d30245290313f080ff75eef7854324c096
7
+ data.tar.gz: e851d610572f75421222e683821f1bd32ade3222ee1c7f67056d9c22cbd2f01e6d36e97cdd8f6c414ab442139d143a5e69bbc8ad92fa6d231c4acaa4988ff0a5
@@ -43,8 +43,8 @@ module Pusher
43
43
  exp: now + TOKEN_EXPIRY + TOKEN_LEEWAY,
44
44
  }
45
45
 
46
- claims.merge({ sub: options[:user_id] }) unless options[:user_id].nil?
47
- claims.merge({ su: true }) if options[:su]
46
+ claims.merge!({ sub: options[:user_id] }) unless options[:user_id].nil?
47
+ claims.merge!({ su: true }) if options[:su]
48
48
 
49
49
  {
50
50
  token: JWT.encode(claims, @key_secret, 'HS256'),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher