Skip to content

Commit 5950096

Browse files
authored
Support Ruby 4 (#422)
* Update to ruby_4_0 in flake * `ruby -e 'puts RUBY_VERSION' > .ruby-version` * Update to Ruby 4 in related code * Update ruby requirements in README
1 parent 16999ad commit 5950096

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.github/workflows/ci-ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
matrix:
3434
os: [ubuntu-24.04]
3535
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
36-
ruby: ['head', '3.4', '3.3']
36+
ruby: ['head', '4.0', '3.4']
3737
gemfile: ['Gemfile', 'gemfiles/oldest/Gemfile']
3838
runs-on: ${{ matrix.os }}
3939
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins:
22
- rubocop-rake
33

44
AllCops:
5-
TargetRubyVersion: 3.3
5+
TargetRubyVersion: 3.4
66
DisplayCopNames: true
77
DisabledByDefault: true
88
Exclude:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.8
1+
4.0.0

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Use power_assert inspection in irb
77

88
## Usage
99

10-
Tested only in ruby-head and the last 2 stable versions\
11-
So require Ruby 3.3 or higher
10+
Requires Ruby 4.0, 3.4, or newer.
1211

1312
```console
1413
$ gem install irb-power_assert

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
nixfmt-rfc-style
2929
nixd
3030

31-
ruby_3_4
31+
ruby_4_0
3232
# Required to build psych via irb dependency
3333
# https://github.com/kachick/irb-power_assert/issues/116
3434
# https://github.com/ruby/irb/pull/648

irb-power_assert.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323
gem.add_dependency 'irb', '>= 1.14.0', '< 2.0'
2424
gem.add_dependency 'power_assert', '>= 2.0.3', '< 4.0'
2525

26-
gem.required_ruby_version = '>= 3.3'
26+
gem.required_ruby_version = '>= 3.4'
2727

2828
# common
2929

0 commit comments

Comments
 (0)