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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56babb2362639cca3fd24225eea2a76a0d9a075a3b113b7f8ea09814a79bf59a
4
- data.tar.gz: 309f6be3fce52b38608c4b22e5dce439e68944796fbe1f2240b2ed40760e8700
3
+ metadata.gz: f81141d870bf96f502734833c9e63678c4f034a2e5cdb6a28bf1fe54b5a6f8f2
4
+ data.tar.gz: abbb39311cd429b8546397b1c5ba0555024f104e49a6b23fd97b3386408cb5e6
5
5
  SHA512:
6
- metadata.gz: 16847c7b39ff624deeb5fecd324d3f0bddafdcd6096c5f65cfa7a79e8b2369930b7078e8fc019bd49015c3415b43f33ea07cf85380b28d3c46199339bc9aeb2a
7
- data.tar.gz: 890f87a779947ec269fb9889334eaa7b4424a654995b9b12b723dee7452f82de066b538465800c20bf9ed9bb2c5a81fbca3ae5ff382340f241f0525ad158df0c
6
+ metadata.gz: 1a6af753aa61a1e80ed734eabb2fa70b8c14e2c1d2fd43a8f95f600732c02d2de08018cb9f41ce776d7796815f8da52fff4a95b05fccb732fe58506d6c38cb2f
7
+ data.tar.gz: 1724f003506854bc011c90402584a898534059b022de87385e0f8f2b24879897f23d33219f732489212aaf86b58eaa3c6d6ceb4e86c028daacd5180bc3be07ae
data/History.md CHANGED
@@ -4,6 +4,11 @@ Dalli Changelog
4
4
  Unreleased
5
5
  ==========
6
6
 
7
+ 3.2.1
8
+ ==========
9
+
10
+ - Fix null replacement bug on some SASL-authenticated services (veritas1)
11
+
7
12
  3.2.0
8
13
  ==========
9
14
 
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
- @servers = ::Dalli::ServersArgNormalizer.normalize_servers(servers)
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
- # TODO: This server initialization should probably be pushed down
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
@@ -15,7 +15,7 @@ module Dalli
15
15
 
16
16
  # Substitute spaces for the \x00 returned by
17
17
  # memcached as a separator for easier
18
- content&.tr("\u0000", ' ')
18
+ content&.tr!("\u0000", ' ')
19
19
  mechanisms = content&.split
20
20
  [status, mechanisms]
21
21
  end
@@ -194,7 +194,7 @@ module Dalli
194
194
  bitflags_token = tokens.find { |t| t.start_with?(flag) }
195
195
  return 0 unless bitflags_token
196
196
 
197
- bitflags_token[1..-1]
197
+ bitflags_token[1..]
198
198
  end
199
199
 
200
200
  def read_line
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(servers, options)
27
- @servers = 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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dalli
4
- VERSION = '3.2.0'
4
+ VERSION = '3.2.1'
5
5
 
6
6
  MIN_SUPPORTED_MEMCACHED_VERSION = '1.4'
7
7
  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: 3.2.0
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-01-03 00:00:00.000000000 Z
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.5'
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.4
167
+ rubygems_version: 3.3.7
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: High performance memcached client for Ruby