omniauth-angellist 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module AngelList
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -8,6 +8,7 @@ module OmniAuth
8
8
  :authorize_url => 'https://angel.co/api/oauth/authorize',
9
9
  :token_url => 'https://angel.co/api/oauth/token'
10
10
  }
11
+ option :provider_ignores_state, true
11
12
 
12
13
  def request_phase
13
14
  super
@@ -34,6 +35,7 @@ module OmniAuth
34
35
 
35
36
  def raw_ifno
36
37
  access_token.options[:mode] = :query
38
+ (access_token.options || {}).merge!({:header_format => 'OAuth %s'})
37
39
  @raw_ifno ||= access_token.get('https://api.angel.co/1/me').parsed
38
40
  end
39
41
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency 'omniauth', '~> 1.0'
22
- s.add_dependency 'omniauth-oauth2', '~> 1.0'
22
+ s.add_dependency 'omniauth-oauth2', '~> 1.1'
23
23
  s.add_development_dependency 'rspec', '~> 2.7'
24
24
  s.add_development_dependency 'rack-test'
25
25
  s.add_development_dependency 'simplecov'
@@ -8,7 +8,8 @@ describe OmniAuth::Strategies::AngelList do
8
8
  end
9
9
 
10
10
  subject do
11
- OmniAuth::Strategies::AngelList.new(nil, @options || {}).tap do |strategy|
11
+ args = [@client_id, @client_secret, @options].compact
12
+ OmniAuth::Strategies::AngelList.new(nil, *args).tap do |strategy|
12
13
  strategy.stub(:request) { @request }
13
14
  end
14
15
  end
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.1
4
+ version: 0.0.2
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-08-13 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '1.0'
37
+ version: '1.1'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '1.0'
45
+ version: '1.1'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rspec
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,6 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
- - ..gemspec
118
117
  - .gitignore
119
118
  - Gemfile
120
119
  - README.md
data/..gemspec DELETED
@@ -1,24 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "./version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "."
7
- s.version = .::VERSION
8
- s.authors = ["Sebastian Rabuini"]
9
- s.email = ["srabuini@gmail.com"]
10
- s.homepage = ""
11
- s.summary = %q{TODO: Write a gem summary}
12
- s.description = %q{TODO: Write a gem description}
13
-
14
- s.rubyforge_project = "."
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
20
-
21
- # specify any dependencies here; for example:
22
- # s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
24
- end