dalli 2.7.7 → 2.7.8
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.
- checksums.yaml +4 -4
- data/History.md +14 -0
- data/lib/active_support/cache/dalli_store.rb +1 -1
- data/lib/dalli/version.rb +1 -1
- data/lib/rack/session/dalli.rb +1 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c031a1c9cb46cdd1c12b7f52d123de5edd393c8061353cb7842b3106b97d13f
|
4
|
+
data.tar.gz: 43a26b17146ebb001fb073df967c5f77c04660f3f71d791c3bf67d05b9a10425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a104d5ebc991e0a28dc44315328a4526dfa7b217284c9b7bfbc2d8b1478daf1d473541799fc46b81afac1e28d1c2f7fa10cfceaea7eb330d3a6738b061e037
|
7
|
+
data.tar.gz: e03f4510b72135c59bda4c50f9737a933beb8e791b7a6baa8d1ab4909e297e3a5c73f0b2f1c879f830b92807b5b714b8a379b8e2a53921ec787ec92c458b0121
|
data/History.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
Dalli Changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
2.7.8
|
5
|
+
==========
|
6
|
+
- Rails 5.2 compatibility (pbougie)
|
7
|
+
- Fix Session Cache compatibility (pixeltrix)
|
8
|
+
|
9
|
+
2.7.7
|
10
|
+
==========
|
11
|
+
- Support large cache keys on fetch multi (sobrinho)
|
12
|
+
- Not found checks no longer trigger the result's equality method (dannyfallon)
|
13
|
+
- Use SVG build badges (olleolleolle)
|
14
|
+
- Travis updates (junaruga, tiarly, petergoldstein)
|
15
|
+
- Update default down_retry_delay (jaredhales)
|
16
|
+
- Close kgio socket after IO.select timeouts
|
17
|
+
- Documentation updates (tipair)
|
4
18
|
- Instrument DalliStore errors with instrument_errors configuration option. (btatnall)
|
5
19
|
|
6
20
|
2.7.6
|
@@ -341,7 +341,7 @@ module ActiveSupport
|
|
341
341
|
namespace = options[:namespace] if options
|
342
342
|
prefix = namespace.is_a?(Proc) ? namespace.call : namespace
|
343
343
|
key = "#{prefix}:#{key}" if prefix
|
344
|
-
key = "#{key[0, 213]}:md5:#{Digest::MD5.hexdigest(key)}" if key && key.size > 250
|
344
|
+
key = "#{key[0, 213]}:md5:#{::Digest::MD5.hexdigest(key)}" if key && key.size > 250
|
345
345
|
key
|
346
346
|
end
|
347
347
|
alias :normalize_key :namespaced_key
|
data/lib/dalli/version.rb
CHANGED
data/lib/rack/session/dalli.rb
CHANGED
@@ -157,18 +157,9 @@ module Rack
|
|
157
157
|
[nil, mserv, mopts, popts]
|
158
158
|
end
|
159
159
|
|
160
|
-
# Capture generate_sid's super so we can call it from generate_sid_with
|
161
|
-
alias_method :generate_sid_super, :generate_sid
|
162
|
-
|
163
|
-
def generate_sid
|
164
|
-
# no way to check env['rack.multithread'] here so fall back on
|
165
|
-
# Dalli::Client or ConnectionPool's internal mutex cf. our own
|
166
|
-
@pool.with {|dc| generate_sid_with(dc) }
|
167
|
-
end
|
168
|
-
|
169
160
|
def generate_sid_with(dc)
|
170
161
|
while true
|
171
|
-
sid =
|
162
|
+
sid = generate_sid
|
172
163
|
break sid unless dc.get(sid)
|
173
164
|
end
|
174
165
|
end
|
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.7.
|
4
|
+
version: 2.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter M. Goldstein
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|