omniauth-renren-oauth2 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/lib/omniauth/strategies/renren.rb +4 -5
- data/lib/omniauth-renren-oauth2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66bb9cb5e256380946b49e88721f9b674df1561a
|
4
|
+
data.tar.gz: 92ee22c168137895a77e908b59034258406be755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e506b9891944abccefb3584f0640c8af609133d665f10b946c232271b584a673a92a8b29ac9af7e4dc7a96ccc2eaacf44ea3d36a51fda6814cdf20f750c9196
|
7
|
+
data.tar.gz: bcc4866b09ff1bab548272bac6309606b4d9a25319b4958c4a344094b4072eca396607c8aab088b021e3523f828875286f85dac51e000978ed55cad6f7e68881
|
data/README.md
CHANGED
@@ -49,11 +49,10 @@ Here's an example Auth Hash available in `request.env['omniauth.auth']`
|
|
49
49
|
|
50
50
|
{"provider"=>"renren",
|
51
51
|
"uid"=> "123456789",
|
52
|
-
"info"=> {
|
53
|
-
"uid"=>"123456789",
|
54
|
-
"gender"=>"Male",
|
55
|
-
"image"=>"http://hdn.xnimg.cn/photos/1.jpg",
|
52
|
+
"info"=> {
|
56
53
|
"name"=>"test",
|
54
|
+
"nickname" => "test",
|
55
|
+
"image"=>"http://hdn.xnimg.cn/photos/1.jpg",
|
57
56
|
"urls"=>{"Renren"=>"http://www.renren.com/222159293/profile"}},
|
58
57
|
"credentials"=>{"token"=>"230086|32csdfg435...",
|
59
58
|
"refresh_token"=>"230086|32csdfg435...",
|
@@ -14,11 +14,10 @@ module OmniAuth
|
|
14
14
|
|
15
15
|
info do
|
16
16
|
{
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
'urls' => {
|
17
|
+
:name => raw_info['name'],
|
18
|
+
:nickname => raw_info['name'],
|
19
|
+
:image => raw_info["tinyurl"],
|
20
|
+
:urls => {
|
22
21
|
'Renren' => "http://www.renren.com/#{raw_info["uid"]}/profile"
|
23
22
|
}
|
24
23
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-renren-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ye.li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|