omniauth-douban-oauth2 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OmniAuth-Douban-OAuth2
2
2
  ======================
3
- This is the official OmniAuth strategy for authenticating to Douban. To use it, you'll need to sign up for an OAuth2 Application Key and Secret on the [Open Platform](https://www.douban.com/service/auth2/apikey/apply)
3
+ This is the OmniAuth strategy for authenticating to Douban. To use it, you'll need to sign up for an OAuth2 Application Key and Secret on the [Open Platform](https://www.douban.com/service/auth2/apikey/apply)
4
4
 
5
5
 
6
6
  ## Basic Usage
@@ -38,8 +38,7 @@ module OmniAuth
38
38
 
39
39
  def raw_info
40
40
  access_token.options[:param_name] = 'access_token'
41
- user_id = access_token.get('/shuo/users/@me').parsed['uid']
42
- @raw_info ||= access_token.get("/v2/people/#{ user_id }").parsed
41
+ @raw_info ||= access_token.get("/v2/people/~me").parsed
43
42
  rescue ::Timeout::Error => e
44
43
  raise e
45
44
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Douban
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
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.3
4
+ version: 0.0.4
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-07-12 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &2156128520 !ruby/object:Gem::Requirement
16
+ requirement: &2160583760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156128520
24
+ version_requirements: *2160583760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &2156060640 !ruby/object:Gem::Requirement
27
+ requirement: &2160598980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2156060640
35
+ version_requirements: *2160598980
36
36
  description: OmniAuth OAuth2 strategy for Douban.
37
37
  email:
38
38
  - i@liluo.org