Skip to content

Commit 628c4e3

Browse files
committed
Release 4.4.0
1 parent 9f2a94c commit 628c4e3

File tree

3 files changed

+34
-12
lines changed

3 files changed

+34
-12
lines changed

CHANGELOG.md

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

3+
# 4.5.0
4+
5+
* Handle parts of the command using incompatible encodings. See #1037.
6+
* Add GET option to SET command. See #1036.
7+
* Add ZRANDMEMBER command. See #1035.
8+
* Add LMOVE/BLMOVE commands. See #1034.
9+
* Add ZMSCORE command. See #1032.
10+
* Add LT/GT options to ZADD. See #1033.
11+
* Add SMISMEMBER command. See #1031.
12+
* Add EXAT/PXAT options to SET. See #1028.
13+
* Add GETDEL/GETEX commands. See #1024.
14+
* `Redis#exists` now returns an Integer by default, as warned since 4.2.0. The old behavior can be restored with `Redis.exists_returns_integer = false`.
15+
* Fix Redis < 6 detection during connect. See #1025.
16+
* Fix fetching command details in Redis cluster when the first node is unhealthy. See #1026.
17+
318
# 4.4.0
419

520
* Redis cluster: fix cross-slot validation in pipelines. Fix ##1019.

Rakefile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,8 @@
22

33
require 'bundler/gem_tasks'
44
require 'rake/testtask'
5-
Rake::TestTask.new :test do |t|
6-
if ENV['SOCKET_PATH'].nil?
7-
sock_file = Dir.glob("#{__dir__}/**/redis.sock").first
8-
9-
if sock_file.nil?
10-
puts '`SOCKET_PATH` environment variable required'
11-
exit 1
12-
end
13-
14-
ENV['SOCKET_PATH'] = sock_file
15-
end
165

6+
Rake::TestTask.new :test do |t|
177
t.libs = %w(lib test)
188

199
if ARGV.size == 1
@@ -25,4 +15,21 @@ Rake::TestTask.new :test do |t|
2515
t.options = '-v' if ENV['CI'] || ENV['VERBOSE']
2616
end
2717

18+
namespace :test do
19+
task :set_socket_path do
20+
if ENV['SOCKET_PATH'].nil?
21+
sock_file = Dir.glob("#{__dir__}/**/redis.sock").first
22+
23+
if sock_file.nil?
24+
puts '`SOCKET_PATH` environment variable required'
25+
exit 1
26+
end
27+
28+
ENV['SOCKET_PATH'] = sock_file
29+
end
30+
end
31+
end
32+
33+
Rake::Task[:test].enhance(["test:set_socket_path"])
34+
2835
task default: :test

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.4.0'
4+
VERSION = '4.5.0'
55
end

0 commit comments

Comments
 (0)