rack-redis-session-store 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack-redis-session-store.rb +4 -1
- data/lib/version.rb +1 -1
- data/rack-redis-session-store.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a96d1a2a9a03f9f3d7519c4d33436bc1b344c697
|
4
|
+
data.tar.gz: ef320b63cc9dddcf944b7553226c5fd4dbee9a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c55a24b8ed416a32d1fd36f4409559b26afd97cf61993eba0771264d96869d7c7dfb7c508830060a9387634a11453cf0d0daa146d2c90d19811287427f46317
|
7
|
+
data.tar.gz: 33c42fc9918a9355de6157347971cb04380e81404e4ade71a13eec7dc2a925a756bfc70d8132cb95229cdd48808cb384e6d340ed18b5ae7cf926109105f8e570
|
@@ -37,7 +37,10 @@ module ActionDispatch
|
|
37
37
|
expiry = expiry.nil? ? 0 : expiry + 1
|
38
38
|
|
39
39
|
@redis.with do |redis|
|
40
|
-
|
40
|
+
# Due to 53-bit restriction integer in javascript, must provide monkey patch for jbuilder to overcome this issue (by to_s)
|
41
|
+
json = Jbuilder.encode do |json|
|
42
|
+
json.(new_session, *new_session.keys)
|
43
|
+
end
|
41
44
|
redis.setex session_id, expiry,json
|
42
45
|
session_id
|
43
46
|
end
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '2.
|
1
|
+
VERSION = '2.2.0'
|
@@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "redis"
|
24
24
|
spec.add_dependency "hiredis"
|
25
25
|
spec.add_dependency 'multi_json', '~> 1.0'
|
26
|
+
spec.add_dependency "jbuilder" #In case you need to provide the custom session serialization, monnkey patch jbuilder will serve that purpose
|
26
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-redis-session-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Le Duc Duy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jbuilder
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: Multi-threaded Redis store for rack ID-based session (connection pooled
|
84
98
|
with option for maximum redis connection)
|
85
99
|
email:
|