Skip to content

Conversation

@bquorning
Copy link
Collaborator

In two recent pull requests, new contributors have had CI failing because they used Ruby 3.3 (or older) to run the documentation Rake tasks. (Ruby 3.4 formats hashes a bit differently, adding whitespace around hashrockets.)

By adding a .ruby-version file, most contributors will automatically be using the same Ruby version. Ideally we would not need to specify the patch version in .ruby-version, but I believe that the major.minor.patch format is what is compatible with the most Ruby version managers out there.

I found this discussion about writing a specification for .ruby-version, but it doesn't seem to be completed yet: ruby/rubygems#7074

In two recent pull requests, new contributors have had CI failing
because they used Ruby 3.3 (or older) to run the documentation Rake
tasks. (Ruby 3.4 formats hashes a bit differently, adding whitespace
around hashrockets.)

By adding a .ruby-version file, most contributors will automatically be
using the same Ruby version. Ideally we would not need to specify the
patch version in .ruby-version, but I believe that the
`major.minor.patch` format is what is compatible with the most Ruby
version managers out there.

I found this discussion about writing a specification for .ruby-version,
but it doesn't seem to be completed yet:
ruby/rubygems#7074
@bquorning bquorning marked this pull request as ready for review November 6, 2025 23:03
@bquorning bquorning requested a review from a team as a code owner November 6, 2025 23:03
@bquorning bquorning mentioned this pull request Nov 6, 2025
13 tasks
@pirj pirj merged commit 44b9294 into master Nov 7, 2025
27 checks passed
@pirj pirj deleted the add-dot-ruby-version branch November 7, 2025 05:02
@pirj
Copy link
Member

pirj commented Nov 7, 2025

Thank you!

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.

4 participants