wework 0.3.1 → 0.3.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: 74f65e6821ddde3f2a616abc69a618c1ec02f99f
4
- data.tar.gz: e767aa1be49288aac5e55f1aaaef38233dacc7d7
3
+ metadata.gz: 6f10eb3c92e53c5e87d783a6a8ec205893904ae6
4
+ data.tar.gz: 789ed1ec662eff0ef9eed139aee1d5c4a41d5d2f
5
5
  SHA512:
6
- metadata.gz: 116514bf4422fa51da241e6242bbbe8094dc977d214a682f3b7e1a45e9d1fddeba73a93bcde498cac9768e2729706f17313bfd5b97afaef70a3d92153c0360a9
7
- data.tar.gz: 614985cd3d574771efa4b12e1364cf1d7ad923f459f5350909ae5f496ceaf99846512c97fb441fcf3211a8b0fdbc0d775ecca38990e2a85872d255ce9719b637
6
+ metadata.gz: e4f00d25f4218f70ce4ef30f897c91b76ea0a0624b014c8bdbeca960b29d7dd104afdd6394ea1ea0a631a61b9453849c6c4600e9f11df2c9b2866e307787111a
7
+ data.tar.gz: 295327a2f5726bbb996be4bad96ee0c9b0d44dd02eb6393c5e93ddb047681a418e5a3051d967ce62b05c8d8b84d0e9c8cb94ab11da36308e7c9ecc392b48c7d0
@@ -18,7 +18,7 @@ module Wework
18
18
 
19
19
  def refresh_token
20
20
  result = super
21
- if result.success?
21
+ unless result.ticket.nil?
22
22
  expires_at = Time.now.to_i + result.expires_in.to_i - Wework.expired_shift_seconds
23
23
  redis.hmset(
24
24
  key,
@@ -18,7 +18,7 @@ module Wework
18
18
 
19
19
  def refresh_token
20
20
  result = super
21
- if result.success?
21
+ unless result.access_token.nil?
22
22
  expires_at = Time.now.to_i + result.expires_in.to_i - Wework.expired_shift_seconds
23
23
  redis.hmset(
24
24
  key,
@@ -1,3 +1,3 @@
1
1
  module Wework
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - seandong