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.
@@ -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.0'
11
- s.date = '2012-11-06'
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'
@@ -39,6 +39,7 @@ module GlobalSession
39
39
  # * trust
40
40
  # * directory
41
41
  # * cookie
42
+ # * version
42
43
  # * name
43
44
  # * domain
44
45
  #
@@ -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
- Session.new(self, *params)
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.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-11-06 00:00:00 -08:00
18
+ date: 2012-01-04 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency