From 838cc13a49f6f44c3d5e3269d521372bfdd360ec 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 ++-- .github/workflows/tests.yml | 2 +- Gemfile | 2 +- README.md | 2 +- mock_redis.gemspec | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6fc3d3d..b32fdd3 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.0 - name: Install dependencies run: bundle install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 22a6307..ed6a29c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: ruby-version: - - '2.7' - '3.0' - '3.1' - '3.2' + - '3.3' redis-version: - '6.2' - '7.0' diff --git a/Gemfile b/Gemfile index c30b7d6..5438d2f 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'http://rubygems.org' gemspec # Run all pre-commit hooks via Overcommit during CI runs -gem 'overcommit', '0.53.0' +gem 'overcommit', '0.61.0' # Pin tool versions (which are executed by Overcommit) for CI builds gem 'rubocop', '1.44.1' 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'