Skip to content

Commit 0060435

Browse files
committed
Drop Ruby 2.5 like redis-client
1 parent 2775519 commit 0060435

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
ruby: ["3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "jruby-9.3.6.0"]
32+
ruby: ["3.2", "3.1", "3.0", "2.7", "2.6", "jruby-9.3.6.0"]
3333
runs-on: ubuntu-latest
3434
env:
3535
LOW_TIMEOUT: "0.01"
@@ -122,7 +122,7 @@ jobs:
122122
- name: Set up Ruby
123123
uses: ruby/setup-ruby@v1
124124
with:
125-
ruby-version: "2.5"
125+
ruby-version: "2.6"
126126
bundler-cache: true
127127
- name: Cache local temporary directory
128128
uses: actions/cache@v4
@@ -159,7 +159,7 @@ jobs:
159159
- name: Set up Ruby
160160
uses: ruby/setup-ruby@v1
161161
with:
162-
ruby-version: "2.5"
162+
ruby-version: "2.6"
163163
bundler-cache: true
164164
- name: Cache local temporary directory
165165
uses: actions/cache@v4
@@ -194,7 +194,7 @@ jobs:
194194
- name: Set up Ruby
195195
uses: ruby/setup-ruby@v1
196196
with:
197-
ruby-version: "2.5"
197+
ruby-version: "2.6"
198198
bundler-cache: true
199199
- name: Cache local temporary directory
200200
uses: actions/cache@v4

.rubocop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 2.5
4+
TargetRubyVersion: 2.6
55

66
Layout/LineLength:
77
Max: 120
@@ -56,6 +56,9 @@ Metrics/PerceivedComplexity:
5656
Style/PercentLiteralDelimiters:
5757
Enabled: false
5858

59+
Style/SlicingWithRange:
60+
Enabled: false
61+
5962
Style/TrailingCommaInArrayLiteral:
6063
Enabled: false
6164

cluster/test/helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ def redis_cluster_mock(commands, options = {})
7272
port = nil
7373

7474
cluster_subcommands = if commands.key?(:cluster)
75-
commands.delete(:cluster)
76-
.to_h { |k, v| [k.to_s.downcase, v] }
75+
commands.delete(:cluster).transform_keys { |k| k.to_s.downcase }
7776
else
7877
{}
7978
end

redis.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
4343
s.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "lib/**/*"]
4444
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
4545

46-
s.required_ruby_version = '>= 2.5.0'
46+
s.required_ruby_version = '>= 2.6.0'
4747

4848
s.add_runtime_dependency('redis-client', '>= 0.17.0')
4949
end

0 commit comments

Comments
 (0)