global_session 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/global_session.gemspec +2 -2
- data/lib/global_session/configuration.rb +1 -0
- data/lib/global_session/directory.rb +10 -1
- metadata +4 -4
data/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 = 'global_session'
|
10
|
-
s.version = '2.0.
|
11
|
-
s.date = '2012-
|
10
|
+
s.version = '2.0.1'
|
11
|
+
s.date = '2012-01-04'
|
12
12
|
|
13
13
|
s.authors = ['Tony Spataro']
|
14
14
|
s.email = 'support@rightscale.com'
|
@@ -105,7 +105,16 @@ module GlobalSession
|
|
105
105
|
# MalformedCookie:: if the cookie was corrupt or malformed
|
106
106
|
# SecurityError:: if signature is invalid or cookie is not signed by a trusted authority
|
107
107
|
def create_session(*params)
|
108
|
-
|
108
|
+
forced_version = configuration['cookie']['version']
|
109
|
+
|
110
|
+
case forced_version
|
111
|
+
when 2
|
112
|
+
Session::V2.new(self, *params)
|
113
|
+
when 1
|
114
|
+
Session::V1.new(self, *params)
|
115
|
+
else
|
116
|
+
Session.new(self, *params)
|
117
|
+
end
|
109
118
|
end
|
110
119
|
|
111
120
|
def local_authority_name
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_session
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 1
|
10
|
+
version: 2.0.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: 2012-
|
18
|
+
date: 2012-01-04 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|