wework 0.2.4 → 0.2.5

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: d8ff0bc3c04da4365ecf068a2ff17904473d8a80
4
- data.tar.gz: 9feb6d02227b123b0eaeffc7d1956986f702f87a
3
+ metadata.gz: 7a13f4efa0bdcb221c5674159c58beaf161da617
4
+ data.tar.gz: e36845104a87a62b4a9b507fa8ed7a2cd523e01d
5
5
  SHA512:
6
- metadata.gz: 4a49ea0d577c52df6fd5df650dda2c8b8485fbcbfa54c5d12a29799c8b122324d443e56681d45f5aac33209138087f0a3c631624308160bf961d636adfba5c95
7
- data.tar.gz: 2377e8e1dd6386154695cb1f06ca99277436f78e80b789396a732fc45413d1960afb04cfd653418c3b4365f3df21d0590683f638c37f4282461a5096c5c358ae
6
+ metadata.gz: b02fdfa00c3a71c44ea41ca18077e0d9e625e2aa60a350948af9fc2e78487e92a89843ca3e679ad5de5dded66b045308c259534ef23b637f64c84b0df9d0331a
7
+ data.tar.gz: a5aa6c3f08e72733cff3ea1a9f298c342c1057c0920b1fa7391335c085ca07d04000328e24c498871ace05445dad9e9feed530a3ceb11eecae1eab5926feb47e
@@ -13,7 +13,7 @@ module Wework
13
13
  end
14
14
 
15
15
  def expired?
16
- redis.hvals(key).empty?
16
+ redis.hvals(key).empty? || redis.hget(key, "expires_at") <= Time.now.to_i
17
17
  end
18
18
 
19
19
  def refresh_token
@@ -13,7 +13,7 @@ module Wework
13
13
  end
14
14
 
15
15
  def expired?
16
- redis.hvals(key).empty?
16
+ redis.hvals(key).empty? || redis.hget(key, "expires_at") <= Time.now.to_i
17
17
  end
18
18
 
19
19
  def refresh_token
@@ -1,3 +1,3 @@
1
1
  module Wework
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - seandong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-04 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http