wechat-api 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wechat/api/js_ticket.rb +2 -2
- data/lib/wechat/api/util.rb +1 -2
- data/lib/wechat/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a6bc7196eabd9a9a07d4ae092757cbf20d32a2bd851da21ea75d5589bb035a
|
4
|
+
data.tar.gz: f4cb5aefdcc2c8536d76e6ded2c2495bf543253898c8cf81cedac4839ae1bc4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5e2d6b94f108e7ac1ad741b61f1ac4a426dc1b535fe30d08c505260e9d6e5f8cfeb1a90088e246506ebdeae43cd4e2261eeb326cfba0302c12ae2c60d78261
|
7
|
+
data.tar.gz: 8fdf75fe1d2ec7c09b512e2243f143e8c3308aa7fb738943b8f43c327c87667eb6e6cf908e4eb40cb783c6fe59c770386b981f9e528a6206ec5130c79334d49c
|
data/lib/wechat/api/js_ticket.rb
CHANGED
@@ -9,8 +9,8 @@ module Wechat
|
|
9
9
|
|
10
10
|
def refresh
|
11
11
|
js = client.js_ticket
|
12
|
-
@ticket = js[
|
13
|
-
@expires_at = DateTime.now + Rational(js[
|
12
|
+
@ticket = js['ticket']
|
13
|
+
@expires_at = DateTime.now + Rational(js['expires_in'].to_i, 3600 * 24)
|
14
14
|
self
|
15
15
|
end
|
16
16
|
|
data/lib/wechat/api/util.rb
CHANGED
data/lib/wechat/api/version.rb
CHANGED