omniauth-exvo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth/strategies/exvo.rb +3 -3
- data/lib/omniauth-exvo/version.rb +1 -1
- data/spec/omniauth/strategies/exvo_spec.rb +7 -1
- metadata +114 -177
@@ -13,9 +13,9 @@ module OmniAuth
|
|
13
13
|
}
|
14
14
|
|
15
15
|
def request_phase
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
%w(scope state x_sign_up).each do |param|
|
17
|
+
options[:authorize_params][param.to_sym] = request[param] if request[param]
|
18
|
+
end
|
19
19
|
super
|
20
20
|
end
|
21
21
|
|
@@ -120,10 +120,16 @@ describe OmniAuth::Strategies::Exvo do
|
|
120
120
|
it 'redirects to auth app with a callback param' do
|
121
121
|
get '/auth/exvo'
|
122
122
|
last_response.should be_redirect
|
123
|
-
|
124
123
|
follow_redirect!
|
125
124
|
last_request.url.should match(/^https:\/\/auth\.exvo\.com\/.+callback$/)
|
126
125
|
end
|
126
|
+
|
127
|
+
it 'passes a custom x_sign_up authorize param' do
|
128
|
+
get '/auth/exvo?x_sign_up=true'
|
129
|
+
last_response.should be_redirect
|
130
|
+
follow_redirect!
|
131
|
+
last_request.url.should match(/^https:\/\/auth\.exvo\.com\/.+x_sign_up=true$/)
|
132
|
+
end
|
127
133
|
end
|
128
134
|
|
129
135
|
describe '#set_failure_handler' do
|
metadata
CHANGED
@@ -1,208 +1,155 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-exvo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Paweł Gościcki
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-22 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: omniauth
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &86917490 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 0
|
33
|
-
version: "1.0"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: omniauth-oauth2
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *86917490
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: omniauth-oauth2
|
27
|
+
requirement: &86895820 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
29
|
+
requirements:
|
42
30
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
version: "1.0"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
49
33
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: exvo_helpers
|
53
34
|
prerelease: false
|
54
|
-
|
35
|
+
version_requirements: *86895820
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: exvo_helpers
|
38
|
+
requirement: &86895390 !ruby/object:Gem::Requirement
|
55
39
|
none: false
|
56
|
-
requirements:
|
40
|
+
requirements:
|
57
41
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
- 2
|
63
|
-
version: "0.2"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.2'
|
64
44
|
type: :runtime
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: rspec
|
68
45
|
prerelease: false
|
69
|
-
|
46
|
+
version_requirements: *86895390
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: &86894740 !ruby/object:Gem::Requirement
|
70
50
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 2
|
77
|
-
- 8
|
78
|
-
version: "2.8"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.8'
|
79
55
|
type: :development
|
80
|
-
version_requirements: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rack-test
|
83
56
|
prerelease: false
|
84
|
-
|
57
|
+
version_requirements: *86894740
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rack-test
|
60
|
+
requirement: &86894260 !ruby/object:Gem::Requirement
|
85
61
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
version: "0"
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
93
66
|
type: :development
|
94
|
-
version_requirements: *id005
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: webmock
|
97
67
|
prerelease: false
|
98
|
-
|
68
|
+
version_requirements: *86894260
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: &86893990 !ruby/object:Gem::Requirement
|
99
72
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
segments:
|
105
|
-
- 0
|
106
|
-
version: "0"
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
107
77
|
type: :development
|
108
|
-
version_requirements: *id006
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: guard
|
111
78
|
prerelease: false
|
112
|
-
|
79
|
+
version_requirements: *86893990
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: guard
|
82
|
+
requirement: &86893340 !ruby/object:Gem::Requirement
|
113
83
|
none: false
|
114
|
-
requirements:
|
84
|
+
requirements:
|
115
85
|
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
segments:
|
119
|
-
- 1
|
120
|
-
- 0
|
121
|
-
version: "1.0"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '1.0'
|
122
88
|
type: :development
|
123
|
-
version_requirements: *id007
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: guard-rspec
|
126
89
|
prerelease: false
|
127
|
-
|
90
|
+
version_requirements: *86893340
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: guard-rspec
|
93
|
+
requirement: &86892510 !ruby/object:Gem::Requirement
|
128
94
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
hash: 7
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
- 6
|
136
|
-
- 0
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
137
98
|
version: 0.6.0
|
138
99
|
type: :development
|
139
|
-
version_requirements: *id008
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: rb-fsevent
|
142
100
|
prerelease: false
|
143
|
-
|
101
|
+
version_requirements: *86892510
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rb-fsevent
|
104
|
+
requirement: &86892060 !ruby/object:Gem::Requirement
|
144
105
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
segments:
|
150
|
-
- 0
|
151
|
-
version: "0"
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
152
110
|
type: :development
|
153
|
-
version_requirements: *id009
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: rb-inotify
|
156
111
|
prerelease: false
|
157
|
-
|
112
|
+
version_requirements: *86892060
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rb-inotify
|
115
|
+
requirement: &86891800 !ruby/object:Gem::Requirement
|
158
116
|
none: false
|
159
|
-
requirements:
|
160
|
-
- -
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
|
163
|
-
segments:
|
164
|
-
- 0
|
165
|
-
version: "0"
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
166
121
|
type: :development
|
167
|
-
version_requirements: *id010
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: simplecov
|
170
122
|
prerelease: false
|
171
|
-
|
123
|
+
version_requirements: *86891800
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: simplecov
|
126
|
+
requirement: &86891410 !ruby/object:Gem::Requirement
|
172
127
|
none: false
|
173
|
-
requirements:
|
174
|
-
- -
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
version: "0"
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
180
132
|
type: :development
|
181
|
-
version_requirements: *id011
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: simplecov-rcov
|
184
133
|
prerelease: false
|
185
|
-
|
134
|
+
version_requirements: *86891410
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: simplecov-rcov
|
137
|
+
requirement: &86890840 !ruby/object:Gem::Requirement
|
186
138
|
none: false
|
187
|
-
requirements:
|
188
|
-
- -
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
|
191
|
-
segments:
|
192
|
-
- 0
|
193
|
-
version: "0"
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
194
143
|
type: :development
|
195
|
-
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *86890840
|
196
146
|
description: OmniAuth strategy for Exvo
|
197
|
-
email:
|
147
|
+
email:
|
198
148
|
- pawel.goscicki@gmail.com
|
199
149
|
executables: []
|
200
|
-
|
201
150
|
extensions: []
|
202
|
-
|
203
151
|
extra_rdoc_files: []
|
204
|
-
|
205
|
-
files:
|
152
|
+
files:
|
206
153
|
- .gitignore
|
207
154
|
- Gemfile
|
208
155
|
- MIT-LICENSE
|
@@ -215,39 +162,29 @@ files:
|
|
215
162
|
- spec/omniauth/strategies/exvo_spec.rb
|
216
163
|
- spec/spec_helper.rb
|
217
164
|
- spec/support/shared_examples.rb
|
218
|
-
has_rdoc: true
|
219
165
|
homepage: https://github.com/Exvo/omniauth-exvo/
|
220
166
|
licenses: []
|
221
|
-
|
222
167
|
post_install_message:
|
223
168
|
rdoc_options: []
|
224
|
-
|
225
|
-
require_paths:
|
169
|
+
require_paths:
|
226
170
|
- lib
|
227
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
228
172
|
none: false
|
229
|
-
requirements:
|
230
|
-
- -
|
231
|
-
- !ruby/object:Gem::Version
|
232
|
-
|
233
|
-
|
234
|
-
- 0
|
235
|
-
version: "0"
|
236
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
178
|
none: false
|
238
|
-
requirements:
|
239
|
-
- -
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
|
242
|
-
segments:
|
243
|
-
- 0
|
244
|
-
version: "0"
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
245
183
|
requirements: []
|
246
|
-
|
247
184
|
rubyforge_project:
|
248
|
-
rubygems_version: 1.
|
185
|
+
rubygems_version: 1.8.10
|
249
186
|
signing_key:
|
250
187
|
specification_version: 3
|
251
188
|
summary: OmniAuth strategy for Exvo
|
252
189
|
test_files: []
|
253
|
-
|
190
|
+
has_rdoc:
|