wework 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wework/js_ticket/redis_store.rb +1 -1
- data/lib/wework/js_ticket/store.rb +6 -1
- data/lib/wework/token/redis_store.rb +1 -1
- data/lib/wework/token/store.rb +6 -1
- data/lib/wework/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ee37102d3877e1fe4208f3bf1125febeb4c5f1
|
4
|
+
data.tar.gz: 657524866686143b2a1d1c6adc97b7c9aa366fe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295b787230ca11c0bfd8e533f305db84b523131ca8fc878e5fa1f1b7bbad300dcb7c050baba458ff890948d1806006aead9a6dfa619862da1aeffc892aea4a69
|
7
|
+
data.tar.gz: 3a9206d6548cba4fae41b2770368dcb299d9183dc55223acb9cbb3c523a5f43b5933779f289a127896a793566dab54888318c9482e475e259b9f8254efb883f1
|
@@ -17,7 +17,12 @@ module Wework
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def refresh_token
|
20
|
-
app.get 'get_jsapi_ticket'
|
20
|
+
result = app.get 'get_jsapi_ticket'
|
21
|
+
if defined?(Rails)
|
22
|
+
Rails.logger.warn "[WEWORK] refresh JsTicket(#{app.corp_id}): #{result.inspect}"
|
23
|
+
end
|
24
|
+
|
25
|
+
result
|
21
26
|
end
|
22
27
|
|
23
28
|
private
|
data/lib/wework/token/store.rb
CHANGED
@@ -17,7 +17,12 @@ module Wework
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def refresh_token
|
20
|
-
app.request.get 'gettoken', params: {corpid: app.corp_id, corpsecret: app.app_secret}
|
20
|
+
result = app.request.get 'gettoken', params: {corpid: app.corp_id, corpsecret: app.app_secret}
|
21
|
+
if defined?(Rails)
|
22
|
+
Rails.logger.warn "[WEWORK] refresh Token(#{app.corp_id}): #{result.inspect}"
|
23
|
+
end
|
24
|
+
|
25
|
+
result
|
21
26
|
end
|
22
27
|
|
23
28
|
private
|
data/lib/wework/version.rb
CHANGED