couchrest_session_store 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.files = `git ls-files`.split("\n")
15
15
  gem.name = "couchrest_session_store"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = '0.2.1'
17
+ gem.version = '0.2.2'
18
18
 
19
19
  gem.add_dependency "couchrest"
20
20
  gem.add_dependency "couchrest_model"
@@ -62,6 +62,8 @@ class CouchRest::Session::Store < ActionDispatch::Session::AbstractStore
62
62
  doc = build_or_update_doc(sid, session, options)
63
63
  doc.save
64
64
  return sid
65
+ rescue CouchRest::Model::Errors::ConnectionFailed
66
+ return false
65
67
  end
66
68
 
67
69
  def destroy_session(env, sid, options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchrest_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-11-21 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: couchrest