omniauth-angellist 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,29 +14,30 @@ module OmniAuth
14
14
  super
15
15
  end
16
16
 
17
- uid { raw_ifno['id'] }
17
+ uid { raw_info['id'] }
18
18
 
19
19
  info do
20
20
  {
21
- "name" => raw_ifno["name"],
22
- "bio" => raw_ifno["bio"],
23
- "blog_url" => raw_ifno["blog_url"],
24
- "online_bio_url" => raw_ifno["online_bio_url"],
25
- "twitter_url" => raw_ifno["twitter_url"],
26
- "facebook_url" => raw_ifno["facebook_url"],
27
- "linkedin_url" => raw_ifno["linkedin_url"],
28
- "follower_count" => raw_ifno["follower_count"],
29
- "angellist_url" => raw_ifno["angellist_url"],
30
- "image" => raw_ifno["image"],
31
- "locations" => raw_ifno["locations"],
32
- "roles" => raw_ifno["roles"]
21
+ "name" => raw_info["name"],
22
+ "email" => raw_info["email"],
23
+ "bio" => raw_info["bio"],
24
+ "blog_url" => raw_info["blog_url"],
25
+ "online_bio_url" => raw_info["online_bio_url"],
26
+ "twitter_url" => raw_info["twitter_url"],
27
+ "facebook_url" => raw_info["facebook_url"],
28
+ "linkedin_url" => raw_info["linkedin_url"],
29
+ "follower_count" => raw_info["follower_count"],
30
+ "angellist_url" => raw_info["angellist_url"],
31
+ "image" => raw_info["image"],
32
+ "locations" => raw_info["locations"],
33
+ "roles" => raw_info["roles"]
33
34
  }
34
35
  end
35
36
 
36
- def raw_ifno
37
+ def raw_info
37
38
  access_token.options[:mode] = :query
38
39
  (access_token.options || {}).merge!({:header_format => 'OAuth %s'})
39
- @raw_ifno ||= access_token.get('https://api.angel.co/1/me').parsed
40
+ @raw_info ||= access_token.get('https://api.angel.co/1/me').parsed
40
41
  end
41
42
  end
42
43
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module AngelList
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -37,7 +37,7 @@ describe OmniAuth::Strategies::AngelList do
37
37
  'bio' => 'Sebas',
38
38
  'image' => 'foto',
39
39
  }
40
- subject.stub(:raw_ifno) { @raw_info }
40
+ subject.stub(:raw_info) { @raw_info }
41
41
  end
42
42
 
43
43
  context 'when data is present in raw info' do
@@ -7,20 +7,6 @@ shared_examples 'an oauth2 strategy' do
7
7
  end
8
8
  end
9
9
 
10
- describe '#authorize_params' do
11
- it 'should include any authorize params passed in the :authorize_params option' do
12
- @options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
13
- subject.authorize_params['foo'].should eq('bar')
14
- subject.authorize_params['baz'].should eq('zip')
15
- end
16
-
17
- it 'should include top-level options that are marked as :authorize_options' do
18
- @options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
19
- subject.authorize_params['scope'].should eq('bar')
20
- subject.authorize_params['foo'].should eq('baz')
21
- end
22
- end
23
-
24
10
  describe '#token_params' do
25
11
  it 'should include any authorize params passed in the :authorize_params option' do
26
12
  @options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-angellist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2013-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -118,7 +118,6 @@ files:
118
118
  - Gemfile
119
119
  - README.md
120
120
  - Rakefile
121
- - lib/..rb
122
121
  - lib/omniauth-angellist.rb
123
122
  - lib/omniauth-angellist/version.rb
124
123
  - lib/omniauth/strategies/angellist.rb
@@ -146,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
145
  version: '0'
147
146
  requirements: []
148
147
  rubyforge_project: omniauth-angellist
149
- rubygems_version: 1.8.23
148
+ rubygems_version: 1.8.25
150
149
  signing_key:
151
150
  specification_version: 3
152
151
  summary: AngelList OAuth strategy for OmniAuth
@@ -154,3 +153,4 @@ test_files:
154
153
  - spec/omniauth/strategies/angellist_spec.rb
155
154
  - spec/spec_helper.rb
156
155
  - spec/support/shared_examples.rb
156
+ has_rdoc:
data/lib/..rb DELETED
@@ -1,5 +0,0 @@
1
- require "./version"
2
-
3
- module .
4
- # Your code goes here...
5
- end