rack-auth-cookie 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -143,8 +143,8 @@ module Rack
143
143
  auth_info['AUTH_TYPE_USER'] = env['AUTH_TYPE_USER'] || env['AUTH_USER']
144
144
 
145
145
  auth_info['AUTH_DATETIME'] = env['AUTH_DATETIME'] || Time.now.utc
146
- auth_info['AUTH_EXPIRE_DATETIME'] = env['AUTH_EXPIRE_DATETIME'] ||
147
- env['AUTH_DATETIME'] + @@idle_timeout
146
+
147
+ auth_info['AUTH_EXPIRE_DATETIME'] = Time.now.utc + @@idle_timeout
148
148
 
149
149
  # Pack the auth_info hash for cookie storage
150
150
  cookie_data = Marshal.dump(auth_info)
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'rack-auth-cookie'
5
- gem.version = '0.3.0'
5
+ gem.version = '0.4.0'
6
6
  gem.authors = ["Daniel Berger", "Charlie O'Keefe"]
7
7
  gem.email = 'cokeefe@globe.gov'
8
8
  gem.homepage = 'http://www.github.com/charlieok/rack-auth-cookie'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-auth-cookie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Berger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-19 00:00:00 -07:00
13
+ date: 2009-12-21 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency