wechat 0.7.12 → 0.7.13

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: e0fc18cb6f01dcb1f5fd99f3947937f9b0c811b5
4
- data.tar.gz: 07cf6c337ecc83aee938c27838b91692e92b1137
3
+ metadata.gz: c337678fb64a3a09a37ef45550ae1965495428cd
4
+ data.tar.gz: d0c2c4b0e3bc6f716ebf2f5baac97f694f482f76
5
5
  SHA512:
6
- metadata.gz: c8a09c74e9b7e43849df936d836635a44ab01f05e251b18466ad6d45615e4d0c50ce237df520737040ea2ad53b81ffd8f3bb25dcd2c43a22abe6c0b28490f10c
7
- data.tar.gz: 75225026ae2156e10d4420b5287794b86c252825c07e3ec090b5dcf0a50c400616a6201be69ee6e922c34859c079029f8af8635fc8e7175581b3998a6f2c3b23
6
+ metadata.gz: 5f8d2934fc7f5b30678724eed326d45e7d7ef5cbb338fe28ede401dc5c1163f94e2115c18efcb1e6932e154f3c6d674289b16d6d54ce6c0bc656c9db8347814f
7
+ data.tar.gz: 15ede425ea1c007cf86ad8b40b876d4f48119d4d7ebd88035e0b79657f52803f22f7b584d07d9677c1edad817f2ff2ec88453609e9b03b396bad5a52c6f2852a
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.7.13 (released at 5/14/2016)
4
+
5
+ * Wechat.config.oauth2_cookie_duration need convert to secondes, found by @gabrieltong #111
6
+
3
7
  ## v0.7.12 (released at 5/12/2016)
4
8
 
5
9
  * Fix web_userinfo wrong URL, found by @gabrieltong #110
@@ -114,7 +114,7 @@ production:
114
114
  token: <%= ENV['WECHAT_TOKEN'] %>
115
115
  access_token: <%= ENV['WECHAT_ACCESS_TOKEN'] %>
116
116
  jsapi_ticket: <%= ENV['WECHAT_JSAPI_TICKET'] %>
117
- oauth2_cookie_duration: <%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %>
117
+ oauth2_cookie_duration: <%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %> # seconds
118
118
 
119
119
  development:
120
120
  <<: *default
data/README.md CHANGED
@@ -124,7 +124,7 @@ production:
124
124
  token: <%= ENV['WECHAT_TOKEN'] %>
125
125
  access_token: <%= ENV['WECHAT_ACCESS_TOKEN'] %>
126
126
  jsapi_ticket: <%= ENV['WECHAT_JSAPI_TICKET'] %>
127
- oauth2_cookie_duration: <%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %>
127
+ oauth2_cookie_duration: <%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %> # seconds
128
128
 
129
129
  development:
130
130
  <<: *default
@@ -22,7 +22,7 @@ module ActionController
22
22
  self.skip_verify_ssl = opts[:skip_verify_ssl]
23
23
  self.encoding_aes_key = opts[:encoding_aes_key] || Wechat.config.encoding_aes_key
24
24
  self.trusted_domain_fullname = opts[:trusted_domain_fullname] || Wechat.config.trusted_domain_fullname
25
- self.oauth2_cookie_duration = opts[:oauth2_cookie_duration] || Wechat.config.oauth2_cookie_duration || 1.hour
25
+ self.oauth2_cookie_duration = opts[:oauth2_cookie_duration] || Wechat.config.oauth2_cookie_duration.to_i.seconds || 1.hour
26
26
 
27
27
  return self.wechat = Wechat.api if opts.empty?
28
28
  if corpid.present?
@@ -25,7 +25,7 @@ production:
25
25
  encrypt_mode: false # if true must fill encoding_aes_key
26
26
  encoding_aes_key: <%%= ENV['WECHAT_ENCODING_AES_KEY'] %>
27
27
  jsapi_ticket: <%%= ENV['WECHAT_JSAPI_TICKET'] %>
28
- oauth2_cookie_duration: <%%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %>
28
+ oauth2_cookie_duration: <%%= ENV['WECHAT_OAUTH2_COOKIE_DURATION'] %> # seconds
29
29
 
30
30
  development:
31
31
  <<: *default
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wechat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skinnyworm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-12 00:00:00.000000000 Z
12
+ date: 2016-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport