acts_as_hoc_user 1.0.7 → 1.0.8

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: 9e8d23fc61eb1aad315d2124491819f17caad740
4
- data.tar.gz: 74bdafd04385856a4f34eb607858d76ceb86f08d
3
+ metadata.gz: b884b8041cc55b42a59c95dfa9041d778f6e25cd
4
+ data.tar.gz: c53386224eb8dabe81edd0294b173a34b8a1c815
5
5
  SHA512:
6
- metadata.gz: e11c586f90e32fa3f7ccf13f4a571a13e630c04846e1137e86eac89bc0e3d698b9b18aaa70c981f3267e7019304634b52691e1b9d238bb7bd45f31aad6a003ba
7
- data.tar.gz: 126831ffe18b3428fb0a4e9df44c63f877f9edb774bf2f3a1c9800f3b5661f5ebc081926c074d936f2b35263c7e47b2e496dd3456f5115a17665edb34d60e4ac
6
+ metadata.gz: 02a5aa146e12f89814abdc8ca56c008a3a37c74babbc3d51aa18a5f723d1c0b539f0d2a970b65604b35db4c1bf0c4efff25baa85f515b5a676bdcfa06ab83378
7
+ data.tar.gz: aebd333efba3354d5f526b8fbf67fdd278709530101e0ff694c6bb2004104cbc9a67bbfdb50d2502f3dfd704dcc4c5d7c9126d8bc19df5170ebf4fea867742d1
@@ -4,11 +4,11 @@ module ActsAsHocUser
4
4
  class << self
5
5
  def encode(payload, exp = 48.hours.from_now)
6
6
  payload[:exp] = exp.to_i
7
- JWT.encode(payload, Rails.application.config.acts_as_hoc_user_secret)
7
+ JWT.encode(payload, ActsAsHocUser.configuration.acts_as_hoc_user_secret)
8
8
  end
9
9
 
10
10
  def decode(token)
11
- body = JWT.decode(token, Rails.application.config.acts_as_hoc_user_secret)[0]
11
+ body = JWT.decode(token, ActsAsHocUser.configuration.acts_as_hoc_user_secret)[0]
12
12
  HashWithIndifferentAccess.new body
13
13
  rescue
14
14
  nil
@@ -1,3 +1,3 @@
1
1
  module ActsAsHocUser
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_hoc_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gert Lavsen