Skip to content

Project: Remove spec.required_ruby_version#53

Merged
amotl merged 1 commit into
mainfrom
rm-required-ruby-version
Feb 10, 2026
Merged

Project: Remove spec.required_ruby_version#53
amotl merged 1 commit into
mainfrom
rm-required-ruby-version

Conversation

@amotl

@amotl amotl commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Problem

Because rubocop >= 1.51.0 depends on Ruby >= 2.7.0
and Gemfile depends on rubocop = 1.84.1,
Ruby >= 2.7.0 is required.
So, because current Ruby version is = 2.5.9,
version solving has failed.

-- https://github.com/crate/crate_ruby/network/updates/1239572576

Thoughts

The version constraint might prevent Dependabot from working properly. A library should support many upstream and downstream software versions anyway, so removing the constraint makes sense also from that perspective.

The README also says "You will need Ruby 2.0 or greater."

@amotl amotl force-pushed the rm-required-ruby-version branch from 4238dff to d9cc94f Compare February 10, 2026 17:28
Comment thread .rubocop.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.5

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocop doesn't like it.

Gemspec/RequiredRubyVersion: required_ruby_version should be specified.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved using this snippet in .rubocop.yml.

Gemspec/RequiredRubyVersion:
  Enabled: false

It might prevent Dependabot from working properly.

Because rubocop >= 1.51.0 depends on Ruby >= 2.7.0
  and Gemfile depends on rubocop = 1.84.1,
  Ruby >= 2.7.0 is required.
So, because current Ruby version is = 2.5.9,
  version solving has failed.

-- https://github.com/crate/crate_ruby/network/updates/1239572576

The README also says "You will need Ruby 2.0 or greater."
@amotl amotl force-pushed the rm-required-ruby-version branch from d9cc94f to ec6a957 Compare February 10, 2026 17:39
@amotl amotl merged commit b1cebf6 into main Feb 10, 2026
12 checks passed
@amotl amotl deleted the rm-required-ruby-version branch February 10, 2026 17:43
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