omniauth-renren-oauth2 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-renren-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/renren.rb +2 -0
- 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: 2552811174ed832f06191a96eab6c6461c372297
|
4
|
+
data.tar.gz: de1204737252f332f59c31853bdc7096f5a91ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b81c1920c28d0442a795dd97a1596276381c274a80e72855b04415e29daa94b1440676c815f9682d765dd68cf2540613df1dcefaf9e5a72199136191f7075fe
|
7
|
+
data.tar.gz: f8df6794190c6b38c6730757d483810388d3280e83f655899d6c0c5d08768a78d2f38913500c7bdec92e95be9005b771811c745e868a73408e09a49f7ea40e2c
|
@@ -33,6 +33,8 @@ module OmniAuth
|
|
33
33
|
access_token.options[:param_name] = 'access_token'
|
34
34
|
@uid ||= access_token.get("https://api.renren.com/v2/user/login/get").parsed['response']['id']
|
35
35
|
@raw_info ||= access_token.get("https://api.renren.com/v2/user/get", :params => {'userId' => @uid}).parsed['response']
|
36
|
+
rescue
|
37
|
+
{'id' => nil, 'avatar' => [{'url' => ''}], 'name' => nil}
|
36
38
|
end
|
37
39
|
end
|
38
40
|
end
|
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.6
|
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-08-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|