Skip to content

884: Ruby upgrade#29

Open
ehimen-io wants to merge 8 commits intomainfrom
owens/884/ruby-upgrade
Open

884: Ruby upgrade#29
ehimen-io wants to merge 8 commits intomainfrom
owens/884/ruby-upgrade

Conversation

@ehimen-io
Copy link

@ehimen-io ehimen-io commented Feb 13, 2026

Upgraded Ruby to 4.0.1 and faraday to 2.14, addressing the breaking changes for the upgrades as well.

require 'webmock/rspec'

# Require everything in the `support` directory
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].sort.each { |f| require f }
Copy link
Author

Choose a reason for hiding this comment

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

no need to sort here IMO

Copy link
Contributor

Choose a reason for hiding this comment

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

Aha, it looks like we originally did the sort because of https://docs.rubocop.org/rubocop/cops_lint.html#lintnondeterministicrequireorder, but that's no longer relevant with ruby 3+

Enabled: false
Style/Documentation:
Enabled: false
Style/HashAsLastArrayItem:
Copy link
Author

Choose a reason for hiding this comment

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

The CI server has a cached version of rubocop that treats this rule differently depending on the ruby version. That's why this is added.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I don't understand. What is it that the CI server does if we don't disable this rule?

Copy link
Contributor

@lavaturtle lavaturtle left a comment

Choose a reason for hiding this comment

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

Are we dropping support for ruby < 4.0, or are we aiming to support both 3.x and 4.0?

If the former, this should be a major version bump, since it's a breaking change.
If the latter, we should have the Github CI run the tests against all supported ruby versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments