omniauth-open_wechat 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bfd12f6ef296b0ecd0f068de76413c9c8d37e78
4
- data.tar.gz: 1ab5bcec0300e0ffb91606816fed6e053a359937
3
+ metadata.gz: e1000333909f38cf63d269d6f9f28e84a388efba
4
+ data.tar.gz: c2f5913962020b3806712fd7ea6b213b7e001a6d
5
5
  SHA512:
6
- metadata.gz: 2f98a59cc3643b7eb2b4434953f2b41a929904b19b32e22dd8101def4e29d95c9459ff33b2b971297f7de235773a0f1d43626ad13c615f53daff9e462c92f288
7
- data.tar.gz: a27c7b20ea0fe539ce359123198f6cf4677ee487578ce59ee42d8e3f35decb6a8529f9b0beea4024bb7e4113688f638a635e48eae28215b75fba15d324b5617b
6
+ metadata.gz: f278ec78538699fc70509b9774db9c2ab591efc58b6274ad97e86a8b1bf647230d24463d78249b0db3a4dfee7f94bc3196b0920dc46d6bce9769d61923fd7d11
7
+ data.tar.gz: 98ddcdd6e8bce065a3e0541d7529e2dbb9ae1f85e916b50a17c5ad792448952360c8dcd1a1d6e4352c30fba36b7299bbfe006b3a790e9fff957eba024b35e3ea
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OmniAuth OpenWechat OAuth2
2
2
 
3
- Read Weibo OAuth2 docs for more details: [移动应用微信登录开发指南](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&lang=zh_CN)
3
+ Read Wechat OAuth2 docs for more details: [微信开放平台开发指南](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&lang=zh_CN)
4
4
 
5
5
  ## Installation
6
6
 
@@ -29,6 +29,10 @@ Rails.application.config.middleware.use OmniAuth::Builder do
29
29
  end
30
30
  ```
31
31
 
32
+ ## Current Version
33
+
34
+ `0.0.2`
35
+
32
36
  ## Authentication Hash
33
37
 
34
38
  Here's an example Authentication Hash available in `request.env['omniauth.auth']` :
@@ -37,6 +41,7 @@ Here's an example Authentication Hash available in `request.env['omniauth.auth']
37
41
  {
38
42
  "provider"=>"open_wechat",
39
43
  "uid"=>"xxx...",
44
+ "unionid"=>"xxx...",
40
45
  "info"=>{
41
46
  "nickname"=>"free",
42
47
  "sex"=>1,
@@ -21,6 +21,10 @@ module OmniAuth
21
21
  raw_info['openid']
22
22
  end
23
23
 
24
+ unionid do
25
+ raw_info['unionid']
26
+ end
27
+
24
28
  info do
25
29
  {
26
30
  nickname: raw_info['nickname'],
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OpenWechat
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-open_wechat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - free1
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.4.6
82
+ rubygems_version: 2.4.7
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: OmniAuth strategy for OpenWechat.