omniauth-weibo-oauth2 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,6 +43,15 @@ module OmniAuth
43
43
  @raw_info ||= access_token.get("/2/users/show.json", :params => {:uid => @uid}).parsed
44
44
  end
45
45
 
46
+ alias :old_request_phase :request_phase
47
+ def request_phase
48
+ display = session['omniauth.params']['display']
49
+ if display
50
+ options[:authorize_params].merge!(:display => display)
51
+ end
52
+ old_request_phase
53
+ end
54
+
46
55
  end
47
56
  end
48
57
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module WeiboOauth2
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-weibo-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
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-03-14 00:00:00.000000000 Z
12
+ date: 2012-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &70122148914480 !ruby/object:Gem::Requirement
16
+ requirement: &70239456025480 !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: *70122148914480
24
+ version_requirements: *70239456025480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &70122148913920 !ruby/object:Gem::Requirement
27
+ requirement: &70239456024980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70122148913920
35
+ version_requirements: *70239456024980
36
36
  description: OmniAuth Oauth2 strategy for weibo.com.
37
37
  email: beenhero@gmail.com
38
38
  executables: []