has_global_session 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
data/has_global_session.gemspec
CHANGED
@@ -7,8 +7,8 @@ spec = Gem::Specification.new do |s|
|
|
7
7
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
|
8
8
|
|
9
9
|
s.name = 'has_global_session'
|
10
|
-
s.version = '0.9.
|
11
|
-
s.date = '2010-07-
|
10
|
+
s.version = '0.9.1'
|
11
|
+
s.date = '2010-07-06'
|
12
12
|
|
13
13
|
s.authors = ['Tony Spataro']
|
14
14
|
s.email = 'code@tracker.xeger.net'
|
@@ -39,10 +39,13 @@ module HasGlobalSession
|
|
39
39
|
return true
|
40
40
|
rescue Exception => e
|
41
41
|
#silently recover from any error by initializing a new global session
|
42
|
+
#and updating the session cookie
|
42
43
|
@global_session = GlobalSession.new(directory)
|
44
|
+
global_session_update_cookie
|
45
|
+
|
43
46
|
#give the Rails app a chance to handle the exception
|
44
47
|
#unless it's an ExpiredSession, which we handle transparently
|
45
|
-
raise e
|
48
|
+
raise e
|
46
49
|
end
|
47
50
|
end
|
48
51
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_global_session
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 1
|
10
|
+
version: 0.9.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Spataro
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-06 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|