sinatra-g_auth 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6689a1cca3315d1e6aec7332566beaabcd51f204
4
- data.tar.gz: e8326137129f4a046e3cc1f5f3cda6952b435c0f
3
+ metadata.gz: d6a4273f658fd134c4b9f1b762fda97271176fde
4
+ data.tar.gz: ffc6e07eef6553fddf29f57397d209378da7c51e
5
5
  SHA512:
6
- metadata.gz: e791775addc452446b8af3ec727c27fe78eba313ec8b2c40795745050cc93960b1538e7894dcdd20f8e4b564acf4b74c8b0b33ab5b3c76657fea1cfcbc50d252
7
- data.tar.gz: e33726d9dc7a18a42fccde827e75068b32add7657db54ee07b22f735dde196bc0a00acc15c8ea65a7bca42f6f62b2381957088e606d987c19d8f4a6cc43838a9
6
+ metadata.gz: 79bf9fb443e64d24b9c8ab7cbee6adc4cd2ce44d6c2d204ecc28f2553bc73a036340ed2d77ecb24e88c224e145538531efabdd4163d27e12fa0575bfa5e07777
7
+ data.tar.gz: 83008b00e13f9e4ba4f929365c8cf118b6da3b589149783765bc2ba70bedfa0d0f13cf12b2c3bce8b7a50b7a6ad6aaa438dff7a40f552782ac849c87a125c666
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module GAuth
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ module Sinatra
24
24
 
25
25
  app.post '/auth/g/callback' do
26
26
  if auth = request.env['omniauth.auth']
27
- session[:_gauth] = auth
27
+ session[:_gauth] = { id: auth['uid'], name: auth['info']['name'], email: auth['info']['email'] }
28
28
  redirect app.settings.gauth_redirect
29
29
  else
30
30
  halt 401, 'Authorization Failed.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-g_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Marden