dalli 3.2.0 → 3.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.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/dalli/client.rb +2 -8
- data/lib/dalli/protocol/binary/sasl_authentication.rb +1 -1
- data/lib/dalli/protocol/meta/response_processor.rb +1 -1
- data/lib/dalli/ring.rb +4 -2
- data/lib/dalli/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f81141d870bf96f502734833c9e63678c4f034a2e5cdb6a28bf1fe54b5a6f8f2
|
4
|
+
data.tar.gz: abbb39311cd429b8546397b1c5ba0555024f104e49a6b23fd97b3386408cb5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6af753aa61a1e80ed734eabb2fa70b8c14e2c1d2fd43a8f95f600732c02d2de08018cb9f41ce776d7796815f8da52fff4a95b05fccb732fe58506d6c38cb2f
|
7
|
+
data.tar.gz: 1724f003506854bc011c90402584a898534059b022de87385e0f8f2b24879897f23d33219f732489212aaf86b58eaa3c6d6ceb4e86c028daacd5180bc3be07ae
|
data/History.md
CHANGED
data/lib/dalli/client.rb
CHANGED
@@ -47,7 +47,7 @@ module Dalli
|
|
47
47
|
# to communicate with memcached.
|
48
48
|
#
|
49
49
|
def initialize(servers = nil, options = {})
|
50
|
-
@
|
50
|
+
@normalized_servers = ::Dalli::ServersArgNormalizer.normalize_servers(servers)
|
51
51
|
@options = normalize_options(options)
|
52
52
|
@key_manager = ::Dalli::KeyManager.new(@options)
|
53
53
|
@ring = nil
|
@@ -392,13 +392,7 @@ module Dalli
|
|
392
392
|
end
|
393
393
|
|
394
394
|
def ring
|
395
|
-
|
396
|
-
# to the Ring
|
397
|
-
@ring ||= Dalli::Ring.new(
|
398
|
-
@servers.map do |s|
|
399
|
-
protocol_implementation.new(s, @options)
|
400
|
-
end, @options
|
401
|
-
)
|
395
|
+
@ring ||= Dalli::Ring.new(@normalized_servers, protocol_implementation, @options)
|
402
396
|
end
|
403
397
|
|
404
398
|
def protocol_implementation
|
data/lib/dalli/ring.rb
CHANGED
@@ -23,8 +23,10 @@ module Dalli
|
|
23
23
|
|
24
24
|
attr_accessor :servers, :continuum
|
25
25
|
|
26
|
-
def initialize(
|
27
|
-
@servers =
|
26
|
+
def initialize(servers_arg, protocol_implementation, options)
|
27
|
+
@servers = servers_arg.map do |s|
|
28
|
+
protocol_implementation.new(s, options)
|
29
|
+
end
|
28
30
|
@continuum = nil
|
29
31
|
@continuum = build_continuum(servers) if servers.size > 1
|
30
32
|
|
data/lib/dalli/version.rb
CHANGED
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: 3.2.
|
4
|
+
version: 3.2.1
|
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: 2022-
|
12
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: connection_pool
|
@@ -157,14 +157,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
157
|
requirements:
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: '2.
|
160
|
+
version: '2.6'
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.3.
|
167
|
+
rubygems_version: 3.3.7
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: High performance memcached client for Ruby
|