Skip to content

Commit

Permalink
Require Ruby 3+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sds committed Jan 15, 2024
1 parent 3974db9 commit ecdfaf6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion mock_redis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ecdfaf6

Please sign in to comment.