sequel-sessions 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rack/session/sequel.rb +5 -1
- data/lib/rack/session/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a1900b60f7b23659f287bf87e5ca7df6d6836b
|
4
|
+
data.tar.gz: 1224ffb2349322d5cc7b6d1407f79ace6c66e94a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e879365b990235ca020ae517b1ad907a0e8a227b65e5365cd393bd79a23e61c0425288b2278f53a06642df6596cdb231c6af45781da613d1c50405811c132474
|
7
|
+
data.tar.gz: 48f8bd21d97f0fc45447414c23874818751ee9d3d841a4488e929061ff7cb3599f70455a86abd7a37d0c1cabd040b3ec5af67aad6ff15eb53248b21953479db7
|
data/README.md
CHANGED
data/lib/rack/session/sequel.rb
CHANGED
@@ -18,7 +18,11 @@ module Rack
|
|
18
18
|
def find_session(env, sid)
|
19
19
|
record = table.filter(sid: sid).first
|
20
20
|
if record
|
21
|
-
|
21
|
+
begin
|
22
|
+
session = Marshal.load(record[:session].unpack('m*').first)
|
23
|
+
rescue ArgumentError
|
24
|
+
session = {}
|
25
|
+
end
|
22
26
|
else
|
23
27
|
sid, session = generate_sid, {}
|
24
28
|
end
|
data/lib/rack/session/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-sessions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Wardrop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|