sinatra-google-auth 1.0.0 → 1.1.0

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/Gemfile CHANGED
@@ -6,4 +6,5 @@ gemspec
6
6
  group :development do
7
7
  gem 'turn'
8
8
  gem 'sinatra'
9
+ gem 'thin'
9
10
  end
data/README.md CHANGED
@@ -91,14 +91,14 @@ end
91
91
 
92
92
  ### Google Endpoint
93
93
 
94
- Configure your Google OpenID endpoint via setting the ENV var `GOOGLE_AUTH_URL`
94
+ Configure your Google OpenID endpoint via setting the ENV var `GOOGLE_AUTH_DOMAIN`
95
95
 
96
96
  $ export GOOGLE_AUTH_DOMAIN=heroku.com
97
97
 
98
98
  or before requiring
99
99
 
100
100
  ```ruby
101
- ENV['GOOGLE_AUTH_URL'] = 'heroku.com'
101
+ ENV['GOOGLE_AUTH_DOMAIN'] = 'heroku.com'
102
102
 
103
103
  require 'sinatra'
104
104
  require 'sinatra/google-auth'
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module GoogleAuth
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -10,11 +10,12 @@ module Sinatra
10
10
  end
11
11
 
12
12
  def call(env)
13
- if env['rack.session']["user"] || env['REQUEST_PATH'] =~ /^\/auth\/google_apps/
13
+ if env['rack.session']["user"] || env['REQUEST_PATH'] =~ /\/auth\/google_apps/
14
14
  @app.call(env)
15
15
  else
16
16
  env['rack.session']['google-auth-redirect'] = env['REQUEST_PATH']
17
- return [301, {'Content-Type' => 'text/html', 'Location' => '/auth/google_apps'}, []]
17
+ location = File.join(env['REQUEST_PATH'], '/auth/google_apps')
18
+ return [301, {'Content-Type' => 'text/html', 'Location' => location}, []]
18
19
  end
19
20
  end
20
21
  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: 1.0.0
4
+ version: 1.1.0
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-11-10 00:00:00.000000000 Z
12
+ date: 2013-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-google-apps
16
- requirement: &70101722473520 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70101722473520
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: oa-openid
27
- requirement: &70101722472800 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70101722472800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: Drop-in google auth for sinatra apps
37
47
  email:
38
48
  - christopher.continanza@gmail.com
@@ -65,15 +75,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
75
  - - ! '>='
66
76
  - !ruby/object:Gem::Version
67
77
  version: '0'
78
+ segments:
79
+ - 0
80
+ hash: 2097094025027831867
68
81
  required_rubygems_version: !ruby/object:Gem::Requirement
69
82
  none: false
70
83
  requirements:
71
84
  - - ! '>='
72
85
  - !ruby/object:Gem::Version
73
86
  version: '0'
87
+ segments:
88
+ - 0
89
+ hash: 2097094025027831867
74
90
  requirements: []
75
91
  rubyforge_project:
76
- rubygems_version: 1.8.10
92
+ rubygems_version: 1.8.23
77
93
  signing_key:
78
94
  specification_version: 3
79
95
  summary: Helpers and routes for google open-id authentication for Sinatra.