Skip to content

Remove ruby-version files - #145

Merged
seuros merged 1 commit into
ClosureTree:masterfrom
jdufresne:rm-ruby-version
Aug 5, 2026
Merged

Remove ruby-version files#145
seuros merged 1 commit into
ClosureTree:masterfrom
jdufresne:rm-ruby-version

Conversation

@jdufresne

@jdufresne jdufresne commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

As a library, the project is compatible with a wide range of Ruby versions as described in the gemspec. So, the project doesn't need to be pinned to a single specific Ruby version.

I discovered this file deep in the bundler directory during routine greps:

./vendor/bundle/ruby/4.0.0/gems/with_advisory_lock-7.5.0/.ruby-version

Other projects, such as Rails itself, do not distribute a .ruby-version file. So no need here either.

@seuros

seuros commented Aug 5, 2026

Copy link
Copy Markdown
Member

This is required for CI.

You can edit the gemspec to ignore and update this PR.

As a library, the project should compatible with a range of Ruby as
described in the gemspec. So, the project doesn't need to be pinned to a
specific Ruby version.

I discovered this see the ruby-version deep in the bundler directory:

./vendor/bundle/ruby/4.0.0/gems/with_advisory_lock-7.5.0/.ruby-version

Other projects, such as Rails itself, do not ship a .ruby-version file.
@jdufresne

jdufresne commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

In CI, the Ruby version is specified directly on the setup-ruby step, so these files are ignored. See:

ruby-version: ${{ matrix.ruby }}

After rebasing, all CI is green.

Is there a different CI job that I should look at? To me, this still looks unnecessary and safe to remove.

@seuros

seuros commented Aug 5, 2026

Copy link
Copy Markdown
Member

Damn it , i was half asleep, that legacy ci.

@seuros
seuros merged commit 681fd66 into ClosureTree:master Aug 5, 2026
15 checks passed
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.

2 participants