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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4201628cc2942c6e826292a9821a3e7e74d25eb6
4
- data.tar.gz: 439063bfe5bbfa96d88d2285b2fc6e637925101e
3
+ metadata.gz: 48a1900b60f7b23659f287bf87e5ca7df6d6836b
4
+ data.tar.gz: 1224ffb2349322d5cc7b6d1407f79ace6c66e94a
5
5
  SHA512:
6
- metadata.gz: 073f31a44929aa4a89784c2bd37fe261013be2ac0d456a0a656db1c83ce38bc1ed56339409bfc63feec9373dfb1410f9dda8dc866877c43b22e94b97f9b9d070
7
- data.tar.gz: 759b68e936ba516e84adabfb3038dfbec45fc8e7aa9c96ed89c320aa2a784411ba7a556d31c159ddf9aa25556704b47dd26fc125f667d158f48f2069b30ce250
6
+ metadata.gz: e879365b990235ca020ae517b1ad907a0e8a227b65e5365cd393bd79a23e61c0425288b2278f53a06642df6596cdb231c6af45781da613d1c50405811c132474
7
+ data.tar.gz: 48f8bd21d97f0fc45447414c23874818751ee9d3d841a4488e929061ff7cb3599f70455a86abd7a37d0c1cabd040b3ec5af67aad6ff15eb53248b21953479db7
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [sequel-sessions]
1
+ sequel-sessions
2
2
  =================
3
3
 
4
4
  Sequel-based session middleware for Rack 2.0 and above.
@@ -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
- session = Marshal.load(record[:session].unpack('m*').first)
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
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Session
3
3
  class Sequel
4
- VERSION = "1.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack