Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Ruby 3+ #295

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml
AllCops:
NewCops: disable
SuggestExtensions: false
TargetRubyVersion: '2.7'
TargetRubyVersion: '3.0'

Layout/ArgumentAlignment:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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
4 changes: 2 additions & 2 deletions lib/mock_redis/geospatial_methods.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class MockRedis
module GeospatialMethods
LNG_RANGE = (-180..180).freeze
LAT_RANGE = (-85.05112878..85.05112878).freeze
LNG_RANGE = (-180..180)
LAT_RANGE = (-85.05112878..85.05112878)
STEP = 26
UNITS = {
m: 1,
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
Loading