jwt-auth 2.1.1 → 2.1.2

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: 42a50e3f1afb56c8a515e6e3db6c6dac43a9a252
4
- data.tar.gz: 8e67ea27890271ccadf46286cad3db9bdccdaa4a
3
+ metadata.gz: 8095c74014d970773a09234afe5a12fa932f9ecd
4
+ data.tar.gz: 521e99eba63ccb44626c5955fc3abdf5b1d5c5ee
5
5
  SHA512:
6
- metadata.gz: 69f38d3381bbc286f861b69ab1b4ed8b8bfcd2f774c8404be269cf503d1694d89ae946222d0f07978d8d379b46a60901ed6f5057a32b731f764c2dc8967f3e61
7
- data.tar.gz: 30e3db0cd10b4f2d668013939a48d17fb4f8681016843d1621551323a4d880d79e9beed7cc1dd8dec32a58536ef202854be60cb1335f1d6b22c1eb0e53468a05
6
+ metadata.gz: 6e046e9d8bfe47c4366e1302285a4d94a9b4774739b3097e607670a247563775b9a607950fe98bc037cd12652dc624e33b8fa0cbe96a8e83ae6d356334ff3c99
7
+ data.tar.gz: d8264bfd3fc7b48f1a9166e626c831df2dfece0790dd4aa288e4a943d80923079ae6f4502ce1df6f04e534c26059d5d72a0bdacf47e5fe82f80e1375b9caa764
@@ -13,7 +13,7 @@ module JWT
13
13
  attr_accessor :expiration, :subject
14
14
 
15
15
  def valid?
16
- subject && expiration && Time.at(expiration).future?
16
+ !subject.nil? && !expiration.nil? && Time.at(expiration).future?
17
17
  end
18
18
 
19
19
  def renew!
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JWT
4
4
  module Auth
5
- VERSION = '2.1.1'
5
+ VERSION = '2.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt