-
Notifications
You must be signed in to change notification settings - Fork 25
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
Upgrade to ruby 3 #71
Conversation
e57c1bc
to
44d2727
Compare
44d2727
to
b01c62a
Compare
@@ -14,8 +14,6 @@ jobs: | |||
matrix: | |||
gemfile: | |||
- Gemfile | |||
- Gemfile.5.2 |
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.
Removing CI job for unsupported rail versions.
@@ -1,5 +1,6 @@ | |||
source 'https://rubygems.org' | |||
|
|||
gem "activerecord", ">=7" | |||
gem "sqlite3", "~> 1.4" |
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.
This is a constraint on ActiveRecord connection https://github.com/rails/rails/blob/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
Without it, we will get higher version of sqlite3 which break the connection.
Latest beta version already fixed the problem, we just need to wait until the stable version to upgrade.
b01c62a
to
9fc8289
Compare
Upgrade to ruby 3.1
From another PR with a CI outcome that enables deprecation warnings, we can see that only tests with Gemfile 5.2(ActiveRecord ~>5.2) has warnings on the method within the ActiveModel gem, which comes with ActiveRecord.
After checking the ruby/rail support list, Rail version < 6.1 is no longer supported and not compatible with ruby version >= 3.0.0. So, I take this PR a chance to also remove unsupported Rail versions (5.2 & 6.0).