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

Update CI Matrix to include recent MRI, JRuby and truffleruby versions #7

Merged
merged 2 commits into from
Apr 19, 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/action-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest] # macos-latest
ruby: ['2.5', '2.6', '2.7', '3.0'] # Due to https://github.com/actions/runner/issues/849, we have to use quotes
ruby: ['truffleruby', 'jruby', '2.7', '3.0', '3.1', '3.2', '3.3'] # Due to https://github.com/actions/runner/issues/849, we have to use quotes

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
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 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7
DisplayCopNames: true
NewCops: enable # but feel free to disable them below
SuggestExtensions: false
Expand Down
14 changes: 8 additions & 6 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ The only other runtime dependency is Ruby's latest code loader [**zeitwerk**](ht

### Ruby version

| Chimera version | Ruby version |
|:----------------|:-----------------------------------|
| >= 1.4 | >= 2.5 (3.0 compatibility ensured) |
| >= 1.1 | >= 2.5 |
| = 1.0 | >= 2.4, <= 3.0 |
| <= 0.5 | >= 2.1, <= 3.0 |
| Chimera version | Ruby version |
|:----------------|:------------------------------------|
| >= 1.6 | >= 2.7 (all 3.x versions supported) |
| >= 1.4 | >= 2.5 (3.0 compatibility ensured) |
| >= 1.1 | >= 2.5 |
| = 1.0 | >= 2.4, <= 3.0 |
| <= 0.5 | >= 2.1, <= 3.0 |

The test suite of v1.4 passes on **MRI Ruby** (2.5, 2.6, 2.7, 3.0) and on **JRuby**, but not on **TruffleRuby**.
The test suite of v1.6 passes on **MRI Ruby** (2.7, 3.0, 3.1, 3.2, 3.3) and on **JRuby** and **TruffleRuby**.

### ENV variables

Expand Down
2 changes: 1 addition & 1 deletion chimera_http_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "chimera_http_client/version"

Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 2.5.0" # without Deserializer's `rescue` in block it would be 2.4.4 (because of zeitwerk)
spec.required_ruby_version = ">= 2.7.0" # probably 2.5.0 still works, but 2.7 is the oldest tested version

spec.name = "chimera_http_client"
spec.version = ChimeraHttpClient::VERSION
Expand Down