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.
@@ -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
- redis.setex session_id, options[:expire_after], new_session.to_json
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.0'
1
+ VERSION = '1.2.0'
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "connection_pool"
23
23
  spec.add_dependency "redis"
24
24
  spec.add_dependency "hiredis"
25
+ spec.add_dependency "jbuilder"
25
26
  end
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.1.0
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-04-05 00:00:00.000000000 Z
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