omniauth-socialstream 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Socialstream
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -15,10 +15,9 @@ module OmniAuth
15
15
 
16
16
  info do
17
17
  {
18
- 'nickname' => raw_info['slug'],
18
+ 'nickname' => raw_info['nickName'],
19
19
  'email' => raw_info['email'],
20
- 'name' => raw_info['name'],
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('user').parsed
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(:get).with('user').and_return(response)
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.0
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-01-25 00:00:00.000000000 Z
13
+ date: 2013-02-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: omniauth-oauth2