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 CHANGED
@@ -1,6 +1,12 @@
1
1
  Dalli Changelog
2
2
  =====================
3
3
 
4
+ 2.2.1
5
+ =======
6
+
7
+ - Fix issues with ENV-based connections. [#266]
8
+ - Fix problem with SessionStore in Rails 4.0 [#265]
9
+
4
10
  2.2.0
5
11
  =======
6
12
 
@@ -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
- addresses << 'localhost:11211' if addresses.empty?
43
- @data = Dalli::Client.new(addresses, @options)
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
@@ -1,3 +1,3 @@
1
1
  module Dalli
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
@@ -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.0
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-03 00:00:00.000000000 Z
12
+ date: 2012-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_shoulda