omniauth-socialstream 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,10 +15,9 @@ module OmniAuth
|
|
15
15
|
|
16
16
|
info do
|
17
17
|
{
|
18
|
-
'nickname' => raw_info['
|
18
|
+
'nickname' => raw_info['nickName'],
|
19
19
|
'email' => raw_info['email'],
|
20
|
-
'name' => raw_info['
|
21
|
-
'image' => raw_info['avatar_url'],
|
20
|
+
'name' => raw_info['displayName'],
|
22
21
|
}
|
23
22
|
end
|
24
23
|
|
@@ -28,7 +27,7 @@ module OmniAuth
|
|
28
27
|
|
29
28
|
def raw_info
|
30
29
|
access_token.options[:mode] = :query
|
31
|
-
@raw_info ||= access_token.get('
|
30
|
+
@raw_info ||= access_token.get('profile.json', params: { access_token: access_token.token }).parsed
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
@@ -58,7 +58,8 @@ describe OmniAuth::Strategies::Socialstream do
|
|
58
58
|
|
59
59
|
context "#raw_info" do
|
60
60
|
it "should use relative paths" do
|
61
|
-
access_token.should_receive(:
|
61
|
+
access_token.should_receive(:token)
|
62
|
+
access_token.should_receive(:get).with('profile.json', {:params=>{:access_token=>nil}}).and_return(response)
|
62
63
|
subject.raw_info.should eq(parsed_response)
|
63
64
|
end
|
64
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-socialstream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|