global_session 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/global_session.gemspec +2 -2
- data/lib/global_session.rb +12 -2
- data/lib/global_session/session/v1.rb +1 -1
- metadata +46 -46
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.3
|
data/global_session.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "global_session"
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tony Spataro"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-03-12"
|
13
13
|
s.description = "This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database."
|
14
14
|
s.email = "support@rightscale.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/global_session.rb
CHANGED
@@ -89,8 +89,18 @@ require 'global_session/configuration'
|
|
89
89
|
require 'global_session/directory'
|
90
90
|
require 'global_session/encoding'
|
91
91
|
require 'global_session/session'
|
92
|
+
require 'global_session/rack'
|
92
93
|
|
93
94
|
#Preemptively try to activate the Rails plugin
|
94
|
-
if require_succeeds?('action_pack') &&
|
95
|
-
|
95
|
+
if require_succeeds?('action_pack') &&
|
96
|
+
require_succeeds?('action_controller')
|
97
|
+
|
98
|
+
action_pack = Gem.loaded_specs['action_pack']
|
99
|
+
action_controller = Gem.loaded_specs['action_controller']
|
100
|
+
|
101
|
+
# Make sure we are dealing with Rails 2.x, not 3.x
|
102
|
+
if action_pack && action_pack.version.to_s =~ /^2\./ &&
|
103
|
+
action_controller && action_controller.version.to_s =~ /^2\./
|
104
|
+
require 'global_session/rails'
|
105
|
+
end
|
96
106
|
end
|
@@ -208,7 +208,7 @@ module GlobalSession::Session
|
|
208
208
|
when Numeric, String, NilClass
|
209
209
|
output = input
|
210
210
|
else
|
211
|
-
raise UnserializableType, "Objects of type #{input.class.name} cannot be serialized in the global session"
|
211
|
+
raise GlobalSession::UnserializableType, "Objects of type #{input.class.name} cannot be serialized in the global session"
|
212
212
|
end
|
213
213
|
|
214
214
|
return output
|
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: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 3
|
10
|
+
version: 3.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Spataro
|
@@ -15,9 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2014-03-12 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
+
type: :runtime
|
22
|
+
name: json
|
21
23
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
24
|
none: false
|
23
25
|
requirements:
|
@@ -28,11 +30,11 @@ dependencies:
|
|
28
30
|
- 1
|
29
31
|
- 4
|
30
32
|
version: "1.4"
|
31
|
-
type: :runtime
|
32
|
-
requirement: *id001
|
33
33
|
prerelease: false
|
34
|
-
|
34
|
+
requirement: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
+
type: :runtime
|
37
|
+
name: rack-contrib
|
36
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
37
39
|
none: false
|
38
40
|
requirements:
|
@@ -43,11 +45,11 @@ dependencies:
|
|
43
45
|
- 1
|
44
46
|
- 0
|
45
47
|
version: "1.0"
|
46
|
-
type: :runtime
|
47
|
-
requirement: *id002
|
48
48
|
prerelease: false
|
49
|
-
|
49
|
+
requirement: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
+
type: :runtime
|
52
|
+
name: right_support
|
51
53
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
54
|
none: false
|
53
55
|
requirements:
|
@@ -66,11 +68,11 @@ dependencies:
|
|
66
68
|
- 8
|
67
69
|
- 2
|
68
70
|
version: 2.8.2
|
69
|
-
type: :runtime
|
70
|
-
requirement: *id003
|
71
71
|
prerelease: false
|
72
|
-
|
72
|
+
requirement: *id003
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
+
type: :runtime
|
75
|
+
name: simple_uuid
|
74
76
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
75
77
|
none: false
|
76
78
|
requirements:
|
@@ -82,11 +84,11 @@ dependencies:
|
|
82
84
|
- 2
|
83
85
|
- 0
|
84
86
|
version: 0.2.0
|
85
|
-
type: :runtime
|
86
|
-
requirement: *id004
|
87
87
|
prerelease: false
|
88
|
-
|
88
|
+
requirement: *id004
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
+
type: :development
|
91
|
+
name: cucumber
|
90
92
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
91
93
|
none: false
|
92
94
|
requirements:
|
@@ -97,11 +99,11 @@ dependencies:
|
|
97
99
|
- 1
|
98
100
|
- 0
|
99
101
|
version: "1.0"
|
100
|
-
type: :development
|
101
|
-
requirement: *id005
|
102
102
|
prerelease: false
|
103
|
-
|
103
|
+
requirement: *id005
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
|
+
type: :development
|
106
|
+
name: debugger
|
105
107
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
106
108
|
none: false
|
107
109
|
requirements:
|
@@ -112,11 +114,11 @@ dependencies:
|
|
112
114
|
- 1
|
113
115
|
- 5
|
114
116
|
version: "1.5"
|
115
|
-
type: :development
|
116
|
-
requirement: *id006
|
117
117
|
prerelease: false
|
118
|
-
|
118
|
+
requirement: *id006
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
|
+
type: :development
|
121
|
+
name: flexmock
|
120
122
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
121
123
|
none: false
|
122
124
|
requirements:
|
@@ -127,11 +129,11 @@ dependencies:
|
|
127
129
|
- 0
|
128
130
|
- 8
|
129
131
|
version: "0.8"
|
130
|
-
type: :development
|
131
|
-
requirement: *id007
|
132
132
|
prerelease: false
|
133
|
-
|
133
|
+
requirement: *id007
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
|
+
type: :development
|
136
|
+
name: httpclient
|
135
137
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
136
138
|
none: false
|
137
139
|
requirements:
|
@@ -141,11 +143,11 @@ dependencies:
|
|
141
143
|
segments:
|
142
144
|
- 0
|
143
145
|
version: "0"
|
144
|
-
type: :development
|
145
|
-
requirement: *id008
|
146
146
|
prerelease: false
|
147
|
-
|
147
|
+
requirement: *id008
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
|
+
type: :development
|
150
|
+
name: jeweler
|
149
151
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
150
152
|
none: false
|
151
153
|
requirements:
|
@@ -157,11 +159,11 @@ dependencies:
|
|
157
159
|
- 8
|
158
160
|
- 3
|
159
161
|
version: 1.8.3
|
160
|
-
type: :development
|
161
|
-
requirement: *id009
|
162
162
|
prerelease: false
|
163
|
-
|
163
|
+
requirement: *id009
|
164
164
|
- !ruby/object:Gem::Dependency
|
165
|
+
type: :development
|
166
|
+
name: msgpack
|
165
167
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
166
168
|
none: false
|
167
169
|
requirements:
|
@@ -172,11 +174,11 @@ dependencies:
|
|
172
174
|
- 0
|
173
175
|
- 4
|
174
176
|
version: "0.4"
|
175
|
-
type: :development
|
176
|
-
requirement: *id010
|
177
177
|
prerelease: false
|
178
|
-
|
178
|
+
requirement: *id010
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
|
+
type: :development
|
181
|
+
name: rake
|
180
182
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
181
183
|
none: false
|
182
184
|
requirements:
|
@@ -187,11 +189,11 @@ dependencies:
|
|
187
189
|
- 0
|
188
190
|
- 8
|
189
191
|
version: "0.8"
|
190
|
-
type: :development
|
191
|
-
requirement: *id011
|
192
192
|
prerelease: false
|
193
|
-
|
193
|
+
requirement: *id011
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
|
+
type: :development
|
196
|
+
name: right_develop
|
195
197
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
196
198
|
none: false
|
197
199
|
requirements:
|
@@ -202,11 +204,11 @@ dependencies:
|
|
202
204
|
- 1
|
203
205
|
- 2
|
204
206
|
version: "1.2"
|
205
|
-
type: :development
|
206
|
-
requirement: *id012
|
207
207
|
prerelease: false
|
208
|
-
|
208
|
+
requirement: *id012
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
+
type: :development
|
211
|
+
name: rspec
|
210
212
|
version_requirements: &id013 !ruby/object:Gem::Requirement
|
211
213
|
none: false
|
212
214
|
requirements:
|
@@ -217,11 +219,11 @@ dependencies:
|
|
217
219
|
- 1
|
218
220
|
- 3
|
219
221
|
version: "1.3"
|
220
|
-
type: :development
|
221
|
-
requirement: *id013
|
222
222
|
prerelease: false
|
223
|
-
|
223
|
+
requirement: *id013
|
224
224
|
- !ruby/object:Gem::Dependency
|
225
|
+
type: :development
|
226
|
+
name: ruby-debug
|
225
227
|
version_requirements: &id014 !ruby/object:Gem::Requirement
|
226
228
|
none: false
|
227
229
|
requirements:
|
@@ -232,10 +234,8 @@ dependencies:
|
|
232
234
|
- 0
|
233
235
|
- 10
|
234
236
|
version: "0.10"
|
235
|
-
type: :development
|
236
|
-
requirement: *id014
|
237
237
|
prerelease: false
|
238
|
-
|
238
|
+
requirement: *id014
|
239
239
|
description: This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database.
|
240
240
|
email: support@rightscale.com
|
241
241
|
executables: []
|