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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3af5535d32a85e57f6ed8f517cb17cbd0e8941e42610bc467a0cdb4a4936f411
4
- data.tar.gz: 5de42166d01da0ea3047cc53f87864e85c4454a753b351f62d2c5d4ee64d0871
3
+ metadata.gz: 16a6bc7196eabd9a9a07d4ae092757cbf20d32a2bd851da21ea75d5589bb035a
4
+ data.tar.gz: f4cb5aefdcc2c8536d76e6ded2c2495bf543253898c8cf81cedac4839ae1bc4f
5
5
  SHA512:
6
- metadata.gz: d77173f5c03d1bf1bf345a947238b5fa6966de3f67a8ff596670c904b1c9e726856d160be9c30a6c14f8e1ec4e21297a357fdf6fc080bb48b496f9a86db36758
7
- data.tar.gz: 608d72719242789c965ae36b3f875806ddfc7d719fc54f4060c6a9b0d9a77ba424ddae1d4713731aafa88bf1dc0da8b1a491274c2834f63f2e41bc0c826fc3ee
6
+ metadata.gz: fd5e2d6b94f108e7ac1ad741b61f1ac4a426dc1b535fe30d08c505260e9d6e5f8cfeb1a90088e246506ebdeae43cd4e2261eeb326cfba0302c12ae2c60d78261
7
+ data.tar.gz: 8fdf75fe1d2ec7c09b512e2243f143e8c3308aa7fb738943b8f43c327c87667eb6e6cf908e4eb40cb783c6fe59c770386b981f9e528a6206ec5130c79334d49c
@@ -9,8 +9,8 @@ module Wechat
9
9
 
10
10
  def refresh
11
11
  js = client.js_ticket
12
- @ticket = js[:ticket]
13
- @expires_at = DateTime.now + Rational(js[:expires_in].to_i, 3600*24)
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
 
@@ -32,8 +32,7 @@ module Wechat
32
32
  end
33
33
 
34
34
  def js_ticket
35
- res = get 'ticket/getticket', type: :jsapi
36
- res['ticket']
35
+ get 'ticket/getticket', type: :jsapi
37
36
  end
38
37
 
39
38
  def sign(params)
@@ -2,6 +2,6 @@
2
2
  module Wechat
3
3
  #
4
4
  module Api
5
- VERSION = '0.4.0'.freeze
5
+ VERSION = '0.4.1'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wechat-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wong