omniauth-gust 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  This gem contains the Gust strategy for OmniAuth.
4
4
 
5
- Gust uses the OAuth2 flow, you can read about it here: http://angel.co/api/oauth/faq
6
-
7
5
  ## How To Use It
8
6
 
9
7
  So let's say you're using Rails, you need to add the strategy to your `Gemfile`:
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Gust
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -23,7 +23,7 @@ describe OmniAuth::Strategies::Gust do
23
23
 
24
24
  describe '#client' do
25
25
  it 'has correct Gust site' do
26
- subject.client.site.should eq('https://alpha.gust.com')
26
+ subject.client.site.should eq('https://gust.com')
27
27
  end
28
28
 
29
29
  it 'has correct authorize url' do
@@ -69,9 +69,9 @@ describe OmniAuth::Strategies::Gust do
69
69
  end
70
70
 
71
71
  it 'returns the Gust profile page link as the Gust url' do
72
- @raw_info['profile_url'] = 'https://alpha.gust.com/c/wasabit'
72
+ @raw_info['profile_url'] = 'https://gust.com/c/wasabit'
73
73
  subject.info['urls'].should be_a(Hash)
74
- subject.info['urls']['profile'].should eq('https://alpha.gust.com/c/wasabit')
74
+ subject.info['urls']['profile'].should eq('https://gust.com/c/wasabit')
75
75
  end
76
76
 
77
77
  end
@@ -83,7 +83,7 @@ describe OmniAuth::Strategies::Gust do
83
83
  subject.stub(:access_token) { @access_token }
84
84
  end
85
85
 
86
- it 'performs a GET to https://alpha.gust.com/r/oauth/user_details' do
86
+ it 'performs a GET to https://gust.com/r/oauth/user_details' do
87
87
  @access_token.stub(:get) { double('OAuth2::Response').as_null_object }
88
88
  @access_token.should_receive('options')
89
89
  @access_token.should_receive(:get).with('/r/oauth/user_details')
@@ -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' } }
@@ -34,4 +20,4 @@ shared_examples 'an oauth2 strategy' do
34
20
  subject.token_params['foo'].should eq('baz')
35
21
  end
36
22
  end
37
- end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-gust
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-17 00:00:00.000000000 Z
12
+ date: 2013-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth