Skip to content
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

Update to Ruby 3.0 #29

Merged
merged 12 commits into from
Aug 28, 2023
Merged

Update to Ruby 3.0 #29

merged 12 commits into from
Aug 28, 2023

Conversation

noelrappin
Copy link
Collaborator

@noelrappin noelrappin commented Aug 21, 2023

The migration part of this was failing in Ruby 3.0 because of the keyword change in the enums.

Dropping support for Rails 5.1 and 5.2, which aren't compatible with Ruby 3.0.

Note that Rails 7 is also not supported because of a change in the Rails 7 active record internals, we'll catch that in another PR

@noelrappin noelrappin changed the title Update matrix for new ruby versions Update to Ruby 3.0 Aug 22, 2023
@noelrappin noelrappin requested review from dpep and tilo August 22, 2023 15:02
Copy link
Contributor

@dpep dpep left a comment

Choose a reason for hiding this comment

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

thanks for the upgrade! since this is technically a breaking change, can you please bump the major version also?

spec.add_dependency "activesupport", ">= 5.1"
spec.add_dependency "activerecord", ">= 5.1"
spec.add_dependency "activesupport", ">= 6.0", "< 7.0"
spec.add_dependency "activerecord", ">= 6.0", "< 7.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

could simplify to ~> 6

module ActiveRecord
module ConnectionAdapters
module MySQL
RSpec.describe ColumnMethods do
Copy link
Contributor

Choose a reason for hiding this comment

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

why the weird nesting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not weird. It's more robust than RSpec.describe ActiveRecord::ConnectionAdapters::MySQL::ColumnMethods against the possibility that the autoloader doesn't like something.

@noelrappin noelrappin merged commit 6eb00ba into main Aug 28, 2023
9 checks passed
@noelrappin noelrappin deleted the ruby-3-0-compatibility-check branch August 28, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants