Skip to content

Commit 4018e50

Browse files
committed
Release 4.2.1
1 parent 8e93b7c commit 4018e50

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Unreleased
22

3-
* Setting `Redis.exists_returns_integer = false` disables warning message about new behaviour.
3+
# 4.2.1
4+
5+
* Fix `exists?` returning an actual boolean when called with multiple keys. See #918.
6+
* Setting `Redis.exists_returns_integer = false` disables warning message about new behaviour. See #920.
47

58
# 4.2.0
69

lib/redis.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class << self
1010
def exists_returns_integer=(value)
1111
unless value
1212
message = "`Redis#exists(key)` will return an Integer by default in redis-rb 4.3. The option to explicitly " \
13-
"disable this behaviour via `Redis.exists_returns_integer` will be removed in 5.0. You should use " \
14-
"`exists?` instead. "
13+
"disable this behaviour via `Redis.exists_returns_integer` will be removed in 5.0. You should use " \
14+
"`exists?` instead."
1515

1616
::Kernel.warn(message)
1717
end

lib/redis/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
class Redis
4-
VERSION = '4.2.0'
4+
VERSION = '4.2.1'
55
end

0 commit comments

Comments
 (0)