-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the weird nesting?
There was a problem hiding this comment.
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.
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