Skip to content

Remove support for Ruby 3.1 and aligned JRuby 9.4. Add support for JRuby 10. #514

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

faisal
Copy link
Contributor

@faisal faisal commented Mar 28, 2025

Per https://endoflife.date/ruby, Ruby 3.1 is EOL. This PR prepares for when we want to drop support.

Note: this PR changes the JRuby CI tests from 9.4 (Ruby 3.1) to HEAD (Ruby 3.4, still in testing), because there isn't a post-9.4 stable JRuby with a newer Ruby version. I expect we'll want to change the CI again once one is available.

  • rubycritic.gemspec: update minimum Ruby version to 3.2, and improve support for JRuby.
  • .rubocop.yml: update target Ruby version to 3.2
  • CI: drop Ruby 3.1, and change jruby from 9.4 (Ruby 3.1) to 10 (Ruby 3.4), and mark HEAD with continue-on-error

Check list:

@faisal
Copy link
Contributor Author

faisal commented Mar 28, 2025

The JRuby failures make me think that in practice this PR needs to land on top of #508.

@faisal faisal force-pushed the ruby_3_1_eol branch 2 times, most recently from e290fa9 to 1a16b19 Compare April 1, 2025 11:58
@faisal faisal marked this pull request as draft April 1, 2025 12:02
@faisal faisal force-pushed the ruby_3_1_eol branch 2 times, most recently from e5a99e2 to 150583b Compare April 9, 2025 07:31
@faisal faisal marked this pull request as ready for review April 9, 2025 07:48
@faisal faisal marked this pull request as draft June 28, 2025 21:46
@faisal
Copy link
Contributor Author

faisal commented Jul 29, 2025

bundle exec rake features and bundle exec rake test now pass for me cleanly on jruby on my local machine.

@faisal faisal changed the title Remove support for Ruby 3.1 Remove support for Ruby 3.1 and aligned JRuby 9.4. Add support for JRuby 10. Jul 29, 2025
@faisal
Copy link
Contributor Author

faisal commented Jul 29, 2025

Note that this includes some of the JRuby support fixes from #508.

@faisal faisal marked this pull request as ready for review July 29, 2025 14:42
@faisal
Copy link
Contributor Author

faisal commented Jul 29, 2025

This could probably use more review than "we finally got CI to pass."

@faisal faisal mentioned this pull request Jul 31, 2025
…r JRuby 10

- rubycritic.gemspec: update minimum Ruby version to 3.2
- .rubocop.yml: update target Ruby version to 3.2
- CI: drop Ruby 3.1, and change jruby from 9.4 (Ruby 3.1) to jruby to 10 (Ruby 3.4)
- add platform value to the gemspec, and require jar-dependencies version

# Conflicts:
#	CHANGELOG.md
@faisal faisal marked this pull request as draft July 31, 2025 16:20
@faisal
Copy link
Contributor Author

faisal commented Jul 31, 2025

This patch only differs from the prior attempt in that the CHANGELOG was updated. This failure is the same failure as from two runs ago. I do not see it on my machine. I could use help investigating.

@faisal
Copy link
Contributor Author

faisal commented Aug 19, 2025

I can now intermittently reproduce this failure locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant