Skip to content

Commit 2e9ab38

Browse files
committed
Release 5.0.3
1 parent a06bed1 commit 2e9ab38

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
# 5.0.3
4+
35
- Add `OutOfMemoryError` as a subclass of `CommandError`
46

57
# 5.0.2

lib/redis/client.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ class Client < ::RedisClient
1515
RedisClient::WrongTypeError => Redis::WrongTypeError,
1616
RedisClient::ReadOnlyError => Redis::ReadOnlyError,
1717
RedisClient::ProtocolError => Redis::ProtocolError,
18+
RedisClient::OutOfMemoryError => Redis::OutOfMemoryError,
1819
}
1920

20-
if defined?(RedisClient::OutOfMemoryError)
21-
ERROR_MAPPING[RedisClient::OutOfMemoryError] = Redis::OutOfMemoryError
22-
end
23-
2421
class << self
2522
def config(**kwargs)
2623
super(protocol: 2, **kwargs)

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 = '5.0.2'
4+
VERSION = '5.0.3'
55
end

redis.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ Gem::Specification.new do |s|
4545

4646
s.required_ruby_version = '>= 2.5.0'
4747

48-
s.add_runtime_dependency('redis-client', '~> 0.7')
48+
s.add_runtime_dependency('redis-client', '>= 0.7.4')
4949
end

0 commit comments

Comments
 (0)