omniauth-exvo 0.0.2 → 0.0.3

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 official Exvo strategy for OmniAuth 1.0.
4
4
 
5
- It depends on the [exvo_helpers](https://github.com/Exvo/exvo_helpers) gem for its configuration.
6
-
7
5
  There is also [exvo-auth](https://github.com/Exvo/exvo_auth) gem, which provides additional helper methods, which make both users and app authorizations at Exvo easier.
8
6
 
9
7
 
@@ -20,12 +18,23 @@ Then `bundle install`.
20
18
 
21
19
  ## Basic usage
22
20
 
21
+ Set both `ENV['AUTH_CLIENT_ID']` and `ENV['AUTH_CLIENT_SECRET']` somewhere (vhost configuration, heroku config, `config/environments/*` or even `config/application.rb`).
22
+
23
23
  ```ruby
24
24
  use OmniAuth::Builder do
25
25
  provider :exvo, ENV['AUTH_CLIENT_ID'], ENV['AUTH_CLIENT_SECRET']
26
26
  end
27
27
  ```
28
28
 
29
+ If you'd like to use Exvo's staging auth, you need to pass the `:client_options` hash to override the default:
30
+
31
+ ```ruby
32
+ use OmniAuth::Builder do
33
+ provider :exvo, ENV['AUTH_CLIENT_ID'], ENV['AUTH_CLIENT_SECRET'], :client_options => { :site => 'http://staging.auth.exvo.com' }
34
+ end
35
+ ```
36
+
37
+
29
38
 
30
39
 
31
40
  Copyright © 2011-2012 Exvo.com Development BV, released under the MIT license
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Exvo
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  require 'omniauth-oauth2'
2
- require 'exvo_helpers'
3
2
 
4
3
  module OmniAuth
5
4
  module Strategies
@@ -8,8 +7,8 @@ module OmniAuth
8
7
  option :name, 'exvo'
9
8
 
10
9
  option :client_options, {
11
- :site => ::Exvo::Helpers.auth_uri,
12
- :token_url => ::Exvo::Helpers.auth_uri + '/oauth/access_token'
10
+ :site => 'https://auth.exvo.com',
11
+ :token_url => '/oauth/access_token'
13
12
  }
14
13
 
15
14
  def request_phase
@@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency 'omniauth', '~> 1.0'
20
20
  gem.add_dependency 'omniauth-oauth2', '~> 1.0'
21
- gem.add_dependency 'exvo_helpers', '~> 0.2'
22
21
 
23
22
  gem.add_development_dependency 'rspec', '>= 2.8'
24
23
  gem.add_development_dependency 'rack-test'
@@ -28,7 +28,7 @@ describe OmniAuth::Strategies::Exvo do
28
28
  end
29
29
 
30
30
  it 'should have the correct token url' do
31
- subject.client.options[:token_url].should match(/\/oauth\/access_token$/)
31
+ subject.client.options[:token_url].should eq('/oauth/access_token')
32
32
  end
33
33
  end
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-exvo
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,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000Z
12
+ date: 2012-03-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &86917490 !ruby/object:Gem::Requirement
16
+ requirement: &78718760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *86917490
24
+ version_requirements: *78718760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &86895820 !ruby/object:Gem::Requirement
27
+ requirement: &78718210 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,21 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *86895820
36
- - !ruby/object:Gem::Dependency
37
- name: exvo_helpers
38
- requirement: &86895390 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: '0.2'
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: *86895390
35
+ version_requirements: *78718210
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: rspec
49
- requirement: &86894740 !ruby/object:Gem::Requirement
38
+ requirement: &78717680 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: '2.8'
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *86894740
46
+ version_requirements: *78717680
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: rack-test
60
- requirement: &86894260 !ruby/object:Gem::Requirement
49
+ requirement: &78716880 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
@@ -65,10 +54,10 @@ dependencies:
65
54
  version: '0'
66
55
  type: :development
67
56
  prerelease: false
68
- version_requirements: *86894260
57
+ version_requirements: *78716880
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: webmock
71
- requirement: &86893990 !ruby/object:Gem::Requirement
60
+ requirement: &78715470 !ruby/object:Gem::Requirement
72
61
  none: false
73
62
  requirements:
74
63
  - - ! '>='
@@ -76,10 +65,10 @@ dependencies:
76
65
  version: '0'
77
66
  type: :development
78
67
  prerelease: false
79
- version_requirements: *86893990
68
+ version_requirements: *78715470
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: guard
82
- requirement: &86893340 !ruby/object:Gem::Requirement
71
+ requirement: &78714090 !ruby/object:Gem::Requirement
83
72
  none: false
84
73
  requirements:
85
74
  - - ~>
@@ -87,10 +76,10 @@ dependencies:
87
76
  version: '1.0'
88
77
  type: :development
89
78
  prerelease: false
90
- version_requirements: *86893340
79
+ version_requirements: *78714090
91
80
  - !ruby/object:Gem::Dependency
92
81
  name: guard-rspec
93
- requirement: &86892510 !ruby/object:Gem::Requirement
82
+ requirement: &78713640 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ! '>='
@@ -98,10 +87,10 @@ dependencies:
98
87
  version: 0.6.0
99
88
  type: :development
100
89
  prerelease: false
101
- version_requirements: *86892510
90
+ version_requirements: *78713640
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: rb-fsevent
104
- requirement: &86892060 !ruby/object:Gem::Requirement
93
+ requirement: &78713360 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
@@ -109,10 +98,10 @@ dependencies:
109
98
  version: '0'
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *86892060
101
+ version_requirements: *78713360
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: rb-inotify
115
- requirement: &86891800 !ruby/object:Gem::Requirement
104
+ requirement: &78712940 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
@@ -120,10 +109,10 @@ dependencies:
120
109
  version: '0'
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *86891800
112
+ version_requirements: *78712940
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: simplecov
126
- requirement: &86891410 !ruby/object:Gem::Requirement
115
+ requirement: &78712390 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
@@ -131,10 +120,10 @@ dependencies:
131
120
  version: '0'
132
121
  type: :development
133
122
  prerelease: false
134
- version_requirements: *86891410
123
+ version_requirements: *78712390
135
124
  - !ruby/object:Gem::Dependency
136
125
  name: simplecov-rcov
137
- requirement: &86890840 !ruby/object:Gem::Requirement
126
+ requirement: &78711900 !ruby/object:Gem::Requirement
138
127
  none: false
139
128
  requirements:
140
129
  - - ! '>='
@@ -142,7 +131,7 @@ dependencies:
142
131
  version: '0'
143
132
  type: :development
144
133
  prerelease: false
145
- version_requirements: *86890840
134
+ version_requirements: *78711900
146
135
  description: OmniAuth strategy for Exvo
147
136
  email:
148
137
  - pawel.goscicki@gmail.com