sinatra_omniauth 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/sinatra/omniauth.rb +5 -0
- data/sinatra_omniauth.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
data/lib/sinatra/omniauth.rb
CHANGED
|
@@ -198,6 +198,11 @@ module SinatraOmniAuth
|
|
|
198
198
|
@authhash[:name] = oaui['name'] || ''
|
|
199
199
|
@authhash[:uid] = (omniauth['uid'] || '').to_s
|
|
200
200
|
@authhash[:provider] = omniauth['provider'] || ''
|
|
201
|
+
elsif authentication_route == 'aol'
|
|
202
|
+
@authhash[:email] = oaui['email'] || ''
|
|
203
|
+
@authhash[:name] = oaui['name'] || ''
|
|
204
|
+
@authhash[:uid] = (omniauth['uid'] || '').to_s
|
|
205
|
+
@authhash[:provider] = omniauth['provider'] || ''
|
|
201
206
|
else
|
|
202
207
|
# REVISIT: debug to output the hash that has been returned when adding new authentications
|
|
203
208
|
return '<pre>'+omniauth.to_yaml+'</pre>'
|
data/sinatra_omniauth.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra_omniauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.2.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Clifford Heath
|