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.
@@ -13,9 +13,9 @@ module OmniAuth
13
13
  }
14
14
 
15
15
  def request_phase
16
- options[:scope] = request["scope"] if request["scope"]
17
- options[:state] = request["state"] if request["state"]
18
- options[:x_sign_up] = request["x_sign_up"] if request["x_sign_up"]
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
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Exvo
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -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
- hash: 29
5
- prerelease: false
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
- - "Pawe\xC5\x82 Go\xC5\x9Bcicki"
7
+ authors:
8
+ - Paweł Gościcki
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-26 00:00:00 +01:00
19
- default_executable:
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
- prerelease: false
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
- hash: 15
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
- requirement: &id002 !ruby/object:Gem::Requirement
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
- hash: 15
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- hash: 15
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
- requirement: &id004 !ruby/object:Gem::Requirement
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
- hash: 19
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
- requirement: &id005 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id006 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id007 !ruby/object:Gem::Requirement
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
- hash: 15
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
- requirement: &id008 !ruby/object:Gem::Requirement
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
- requirement: &id009 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id010 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id011 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id012 !ruby/object:Gem::Requirement
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
- hash: 3
191
- segments:
192
- - 0
193
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
194
143
  type: :development
195
- version_requirements: *id012
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
- hash: 3
233
- segments:
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
- hash: 3
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.3.7
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: