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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fcc75b27b87752e899ecacb5138bc66fef16a62
4
- data.tar.gz: 3468f8f6ddf1c7c05edd72680ca263f470082432
3
+ metadata.gz: 2552811174ed832f06191a96eab6c6461c372297
4
+ data.tar.gz: de1204737252f332f59c31853bdc7096f5a91ee7
5
5
  SHA512:
6
- metadata.gz: 77e592391e5396bb863ea0572c40c42f544377fe6b282fbae97d70812791c99746411aa27bed701945ccdda7e08779c4d072a6948ce9dc922a68a329d4a522e8
7
- data.tar.gz: 83a6355bbe637698cad1d4c37e950e544d58e0a0569f571e6374d1786cabde4f935283cfe2bc93c0cf1171c4e5d7a1588433c4f683d003d1587199b7854ad0c8
6
+ metadata.gz: 1b81c1920c28d0442a795dd97a1596276381c274a80e72855b04415e29daa94b1440676c815f9682d765dd68cf2540613df1dcefaf9e5a72199136191f7075fe
7
+ data.tar.gz: f8df6794190c6b38c6730757d483810388d3280e83f655899d6c0c5d08768a78d2f38913500c7bdec92e95be9005b771811c745e868a73408e09a49f7ea40e2c
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module RenrenOauth2
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -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.5
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-21 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth