sinatra-google-auth 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,10 +9,10 @@ module Sinatra
9
9
  end
10
10
 
11
11
  def call(env)
12
- if env['rack.session']["user"] || ENV['REQUEST_PATH'] == '/auth/google/callback'
12
+ if env['rack.session']["user"] || env['REQUEST_PATH'] =~ /^\/auth\/google/
13
13
  @app.call(env)
14
14
  else
15
- env['rack.session']['google-auth-redirect'] = ENV['REQUEST_PATH']
15
+ env['rack.session']['google-auth-redirect'] = env['REQUEST_PATH']
16
16
  return [301, {'Content-Type' => 'text/html', 'Location' => '/auth/google'}, []]
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module GoogleAuth
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-google-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
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-06-12 00:00:00.000000000Z
12
+ date: 2012-06-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-openid
16
- requirement: &70197566972620 !ruby/object:Gem::Requirement
16
+ requirement: &70306476335880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70197566972620
24
+ version_requirements: *70306476335880
25
25
  description: Drop-in google auth for sinatra apps
26
26
  email:
27
27
  - christopher.continanza@gmail.com