Skip to content

Commit cf4cffc

Browse files
committed
redis_cluster is now rediscluster
Both `redis-cluster` and `redis_cluster` are already used by abandoned gems.
1 parent 6b4f53c commit cf4cffc

39 files changed

+16
-14
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
TIMEOUT: "15"
223223
LOW_TIMEOUT: "0.14"
224224
REDIS_BRANCH: "7.0"
225-
BUNDLE_GEMFILE: redis_cluster/Gemfile
225+
BUNDLE_GEMFILE: cluster/Gemfile
226226
steps:
227227
- name: Check out code
228228
uses: actions/checkout@v3

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ Bundler/OrderedGems:
151151

152152
Gemspec/RequiredRubyVersion:
153153
Exclude:
154-
- redis_cluster/redis_cluster.gemspec
154+
- cluster/rediscluster.gemspec

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Changed `sadd` and `srem` to now always return an Integer.
77
- Added `sadd?` and `srem?` which always return a Boolean.
88
- Added support for `IDLE` paramter in `xpending`.
9-
- Cluster support has been moved to a `redis_cluster` companion gem.
9+
- Cluster support has been moved to a `rediscluster` companion gem.
1010
- `select` no longer record the current database. If the client has to reconnect after `select` was used, it will reconnect to the original database.
1111
- Better support Float timeout in blocking commands. See #977.
1212
- Removed positional timeout in blocking commands (`BLPOP`, etc). Timeout now must be passed as an option: `r.blpop("key", timeout: 2.5)`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ redis = Redis.new(name: 'mymaster', sentinels: SENTINELS, role: :master)
133133

134134
## Cluster support
135135

136-
[Clustering](https://redis.io/topics/cluster-spec). is supported via the [`redis_cluster` gem](redis_cluster/).
136+
[Clustering](https://redis.io/topics/cluster-spec). is supported via the [`rediscluster` gem](cluster/).
137137

138138
## Pipelining
139139

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'bundler/gem_tasks'
4-
Bundler::GemHelper.install_tasks(dir: "redis_cluster", name: "redis_cluster")
4+
Bundler::GemHelper.install_tasks(dir: "cluster", name: "rediscluster")
55

66
require 'rake/testtask'
77

@@ -22,9 +22,9 @@ namespace :test do
2222
end
2323

2424
Rake::TestTask.new(:cluster) do |t|
25-
t.libs << "redis_cluster/test" << "test"
26-
t.libs << "redis_cluster/lib" << "lib"
27-
t.test_files = FileList["redis_cluster/test/**/*_test.rb"]
25+
t.libs << "cluster/test" << "test"
26+
t.libs << "cluster/lib" << "lib"
27+
t.test_files = FileList["cluster/test/**/*_test.rb"]
2828
t.options = '-v' if ENV['CI'] || ENV['VERBOSE']
2929
end
3030
end

bin/cluster_creator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ puts ARGV.join(" ")
55
require 'bundler/setup'
66

77
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
8-
require_relative '../redis_cluster/test/support/orchestrator'
8+
require_relative '../cluster/test/support/orchestrator'
99

1010
urls = ARGV.map { |host_port| "redis://#{host_port}" }
1111
orchestrator = ClusterOrchestrator.new(urls, timeout: 3.0)
File renamed without changes.
File renamed without changes.
File renamed without changes.

redis_cluster/README.md renamed to cluster/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
Install with:
66

77
```
8-
$ gem install redis_cluster
8+
$ gem install rediscluster
99
```
1010

1111
You can connect to Redis by instantiating the `Redis::Cluter` class:
1212

1313
```ruby
14-
require "redis_cluster"
14+
require "rediscluster"
1515

1616
redis = Redis::Cluter.new(nodes: (7000..7005).map { |port| "redis://127.0.0.1:#{port}" })
1717
```
1818

19+
NB: Both `redis_cluster` and `redis-cluster` are unrelated and abandoned gems.
20+
1921
```ruby
2022
# Nodes can be passed to the client as an array of connection URLs.
2123
nodes = (7000..7005).map { |port| "redis://127.0.0.1:#{port}" }

0 commit comments

Comments
 (0)