dalli 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dalli might be problematic. Click here for more details.
- data/History.md +6 -0
- data/lib/active_support/cache/dalli_store.rb +6 -2
- data/lib/dalli/version.rb +1 -1
- data/lib/rack/session/dalli.rb +2 -1
- metadata +2 -2
data/History.md
CHANGED
@@ -39,8 +39,12 @@ module ActiveSupport
|
|
39
39
|
@options = options.dup
|
40
40
|
@options[:compress] ||= @options[:compression]
|
41
41
|
@raise_errors = !!@options[:raise_errors]
|
42
|
-
|
43
|
-
|
42
|
+
servers = if addresses.empty?
|
43
|
+
nil # use the default from Dalli::Client
|
44
|
+
else
|
45
|
+
addresses
|
46
|
+
end
|
47
|
+
@data = Dalli::Client.new(servers, @options)
|
44
48
|
end
|
45
49
|
|
46
50
|
def fetch(name, options=nil)
|
data/lib/dalli/version.rb
CHANGED
data/lib/rack/session/dalli.rb
CHANGED
@@ -57,7 +57,8 @@ module Rack
|
|
57
57
|
def with_lock(env, default=nil)
|
58
58
|
@mutex.lock if env['rack.multithread']
|
59
59
|
yield
|
60
|
-
rescue Dalli::DalliError, Errno::ECONNREFUSED
|
60
|
+
rescue ::Dalli::DalliError, Errno::ECONNREFUSED
|
61
|
+
raise if $!.message =~ /undefined class/
|
61
62
|
if $VERBOSE
|
62
63
|
warn "#{self} is unable to find memcached server."
|
63
64
|
warn $!.inspect
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
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: 2012-09-
|
12
|
+
date: 2012-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_shoulda
|