Skip to content

Commit

Permalink
Support Ruby 3.2
Browse files Browse the repository at this point in the history
Update hiredis-client to version v0.12.0 to support ruby 3.2.0.
  • Loading branch information
miry committed Jan 10, 2023
1 parent e1252f5 commit c03ac9f
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG RUBY_VERSION=3.1.3
ARG RUBY_VERSION=3.2.0
FROM ruby:${RUBY_VERSION} as base

# Avoid warnings by switching to noninteractive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
-
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.2"
bundler-cache: true
-
name: Ruby Linting
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Update gems for all Gemfiles
runs-on: ubuntu-latest
container:
image: ruby:3.1
image: ruby:3.2
steps:
-
name: Checkout
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
fail-fast: true
matrix:
ruby:
- "3.2"
- "3.1"
- "3.0"
- "2.7"
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- "3.2"
- "3.1"
- "3.0"
- "2.7"
Expand Down Expand Up @@ -170,11 +172,8 @@ jobs:
bundle install
-
name: Build C extension
env:
BUNDLE_GEMFILE: Gemfile
run: |
bundle config path vendor/bundle
bundle install --without test,lint
bundle exec rake build
-
name: Tests
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Refactor: Replace `Time.now` with `CLOCK_MONOTONIC` in Resource `updated_at` field. (#443)
Replace `Timecop.travel` for tests with custom mock solution to support monotonic clocks.
* Refactor: Replace `Time.now` with `CLOCK_MONOTONIC` in `CircuitBreaker`. (#441)
* Support Ruby 3.2.0. (#463)

# v0.16.0

Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ group :test do
gem "mysql2", "~> 0.5"
gem "activerecord", ">= 7.0.3"
gem "hiredis", "~> 0.6"
gem "hiredis-client"
# NOTE: v0.12.0 required for ruby 3.2.0. https://github.com/redis-rb/redis-client/issues/58
gem "hiredis-client", ">= 0.12.0"
gem "redis"
end

Expand Down
18 changes: 5 additions & 13 deletions Gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dockerfiles/semian-ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG RUBY_VERSION=3.1.3
ARG RUBY_VERSION=3.2.0
FROM ruby:${RUBY_VERSION} as base

# Avoid warnings by switching to noninteractive
Expand Down
10 changes: 1 addition & 9 deletions gemfiles/grpc.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gemfiles/mysql2.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gemfiles/net_http.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gemfiles/rails.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions gemfiles/redis_4.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gemfiles/redis_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem "toxiproxy"
gem "webrick"

gem "hiredis", "~> 0.6"
gem "hiredis-client"
gem "hiredis-client", ">= 0.12.0"
gem "redis"

gemspec path: "../"
10 changes: 5 additions & 5 deletions gemfiles/redis_5.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions gemfiles/redis_client.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c03ac9f

Please sign in to comment.