Skip to content

Commit ad3a0c5

Browse files
authored
Add Ruby 4 to CI (#559)
Ruby 4.0 was released on Dec 25, 2025. This PR adds it to our CI matrix. Since 4.0 no longer includes the `benchmark` gem, I also added it as an explicit development dependency to fix the following error: > 'Kernel.require': cannot load such file -- benchmark (LoadError)
1 parent a60f2fa commit ad3a0c5

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "head"]
11+
ruby:
12+
[
13+
"2.5",
14+
"2.6",
15+
"2.7",
16+
"3.0",
17+
"3.1",
18+
"3.2",
19+
"3.3",
20+
"3.4",
21+
"4.0",
22+
"head",
23+
]
1224
steps:
1325
- uses: actions/checkout@v6
1426
- name: Set up Ruby

sshkit.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Gem::Specification.new do |gem|
2828
gem.add_runtime_dependency('net-sftp', '>= 2.1.2')
2929
gem.add_runtime_dependency('ostruct')
3030

31+
gem.add_development_dependency('benchmark')
3132
gem.add_development_dependency('danger')
3233
gem.add_development_dependency('minitest', '>= 5.0.0')
3334
gem.add_development_dependency('minitest-reporters')

0 commit comments

Comments
 (0)