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

Support Ruby 3.2 #463

Merged
merged 1 commit into from
Jan 11, 2023
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
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not required to install all gems to build Semian gem. It saves time to install gems not from cache.

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.