From 10aa797a0d747b7a86b90146cb65bc47b7a7f07e Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Mon, 15 Jan 2024 11:37:40 -0800 Subject: [PATCH] Require Ruby 3+ Ruby 2.7 reached EoL in March 2023. It's time to drop support since our CI is now complaining about Bundler not supporting Ruby < 3. --- .github/workflows/lint.yml | 4 ++-- README.md | 2 +- mock_redis.gemspec | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6fc3d3d..750caf4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,9 +14,9 @@ jobs: - uses: actions/checkout@v2 - name: Set up Ruby - uses: ruby/setup-ruby@v1.97.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 - name: Install dependencies run: bundle install diff --git a/README.md b/README.md index 1925f3a..b31c4bd 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ for use in tests. ## Requirements -Ruby 2.7+ +Ruby 3.0+ The current implementation is tested against Redis 6.2. Older versions may work, but can also return different results or not support some commands. diff --git a/mock_redis.gemspec b/mock_redis.gemspec index 50f2200..0629d33 100644 --- a/mock_redis.gemspec +++ b/mock_redis.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] - s.required_ruby_version = '>= 2.7' + s.required_ruby_version = '>= 3.0' s.add_development_dependency 'rake', '~> 13' s.add_development_dependency 'redis', '~> 4.8.0'