omniauth-douban-oauth2 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,12 +23,12 @@ module OmniAuth
23
23
  {
24
24
  :uid => raw_info['uid'],
25
25
  :name => raw_info['name'],
26
- :loc => raw_info['loc'],
26
+ :loc_id => raw_info['loc_id'],
27
+ :loc_name => raw_info['loc_name'],
27
28
  :avatar => raw_info['avatar'],
28
- :url => raw_info['alt'],
29
+ :alt => raw_info['alt'],
29
30
  :desc => raw_info['desc'],
30
- :status => raw_info['status'],
31
- :created => raw_info['created']
31
+ :created => raw_info['created'],
32
32
  }
33
33
  end
34
34
 
@@ -38,7 +38,7 @@ module OmniAuth
38
38
 
39
39
  def raw_info
40
40
  access_token.options[:param_name] = 'access_token'
41
- @raw_info ||= access_token.get("/v2/people/~me").parsed
41
+ @raw_info ||= access_token.get("/v2/user/~me").parsed
42
42
  rescue ::Timeout::Error => e
43
43
  raise e
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Douban
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-douban-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2012-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &2160583760 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160583760
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: omniauth-oauth2
27
- requirement: &2160598980 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '1.1'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2160598980
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.1'
36
46
  description: OmniAuth OAuth2 strategy for Douban.
37
47
  email:
38
48
  - i@liluo.org
@@ -67,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
77
  version: '0'
68
78
  requirements: []
69
79
  rubyforge_project:
70
- rubygems_version: 1.8.15
80
+ rubygems_version: 1.8.24
71
81
  signing_key:
72
82
  specification_version: 3
73
83
  summary: OmniAuth OAuth2 strategy for Douban.