rack-redis-session-store 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack-redis-session-store.rb +4 -1
- data/lib/version.rb +1 -1
- data/rack-redis-session-store.gemspec +1 -0
- metadata +24 -2
@@ -42,7 +42,10 @@ module ActionDispatch
|
|
42
42
|
def set_session(env, session_id, new_session, options)
|
43
43
|
if (!new_session.empty?)
|
44
44
|
@redis.with do |redis|
|
45
|
-
|
45
|
+
json = Jbuilder.encode do |json|
|
46
|
+
json.(new_session, *new_session.keys)
|
47
|
+
end
|
48
|
+
redis.setex session_id, options[:expire_after],json
|
46
49
|
end
|
47
50
|
end
|
48
51
|
#For some reason, rack doesn't set new session_id to options[:id]
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '1.
|
1
|
+
VERSION = '1.2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-redis-session-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: jbuilder
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
description: Multi-threaded Redis store for rack ID-based session (connection pooled
|
79
95
|
with option for maximum redis connection)
|
80
96
|
email:
|
@@ -104,12 +120,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
120
|
- - ! '>='
|
105
121
|
- !ruby/object:Gem::Version
|
106
122
|
version: '0'
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
hash: -3266731057163129730
|
107
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
127
|
none: false
|
109
128
|
requirements:
|
110
129
|
- - ! '>='
|
111
130
|
- !ruby/object:Gem::Version
|
112
131
|
version: '0'
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
hash: -3266731057163129730
|
113
135
|
requirements: []
|
114
136
|
rubyforge_project:
|
115
137
|
rubygems_version: 1.8.25
|