sequel-sessions 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/session/sequel.rb +1 -5
- 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: bf3e3c8ed303d0394af07b5965ada434ae1ced99
|
4
|
+
data.tar.gz: cf8e34ee796225fc999bb328266fde7614b6f69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a155a41779da49461cfcce5d717486afa8b75f0aa519dc33eadffcb38092a9953f076fb960100b83f7e9a57919a4a5766b621692e7d0d4136ec722013f9b0585
|
7
|
+
data.tar.gz: d6f2a6d1f91b2918f77299c6d131f2eaa7b1ce1e4a5a0e883dcae8632e8cf250ad6cc98f9482181fc626216df89e00a160f66316fde23710c8f6739522a4c767
|
data/lib/rack/session/sequel.rb
CHANGED
@@ -18,11 +18,7 @@ module Rack
|
|
18
18
|
def find_session(env, sid)
|
19
19
|
record = table.filter(sid: sid).first
|
20
20
|
if record
|
21
|
-
|
22
|
-
session = Marshal.load(record[:session].unpack('m*').first)
|
23
|
-
rescue ArgumentError
|
24
|
-
session = {}
|
25
|
-
end
|
21
|
+
session = Marshal.load(record[:session].unpack('m*').first)
|
26
22
|
else
|
27
23
|
sid, session = generate_sid, {}
|
28
24
|
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: 1.0.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|