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 {
|
17
|
+
uid { raw_info['id'] }
|
18
18
|
|
19
19
|
info do
|
20
20
|
{
|
21
|
-
"name" =>
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
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
|
37
|
+
def raw_info
|
37
38
|
access_token.options[:mode] = :query
|
38
39
|
(access_token.options || {}).merge!({:header_format => 'OAuth %s'})
|
39
|
-
@
|
40
|
+
@raw_info ||= access_token.get('https://api.angel.co/1/me').parsed
|
40
41
|
end
|
41
42
|
end
|
42
43
|
end
|
@@ -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.
|
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:
|
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.
|
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:
|