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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 844acdbe57f84d0d73c7e018cf712a1352118119
4
- data.tar.gz: 2fb729cb6bdf413469804dbbfecaa36a2ee53397
3
+ metadata.gz: 66bb9cb5e256380946b49e88721f9b674df1561a
4
+ data.tar.gz: 92ee22c168137895a77e908b59034258406be755
5
5
  SHA512:
6
- metadata.gz: d6708a84a4426f82bf12b4e836465378a125a3071038e9895e5b1cf23a2ba4a5596ba31fb663916e5bce1e202925873419dd781538ec984fc248d7766e297517
7
- data.tar.gz: d617f3bf4cba512e31ec3ab4a4bc2d2330e0623dcb91db1922c928445d1a4f6e6284bdd861b76b902849bec496baac65761c37a81c4b122424bdf84393a23a09
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
- "uid" => raw_info["uid"],
18
- "gender"=> (raw_info["sex"] == 1 ? 'Male' : 'Female'),
19
- "image"=>raw_info["headurl"],
20
- 'name' => raw_info['name'],
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
  }
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module RenrenOauth2
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  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.1
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-23 00:00:00.000000000 Z
11
+ date: 2013-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth