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

Upgrade to ruby 3 #71

Merged
merged 3 commits into from
Jun 13, 2024
Merged

Upgrade to ruby 3 #71

merged 3 commits into from
Jun 13, 2024

Conversation

wendy-clio
Copy link
Contributor

@wendy-clio wendy-clio commented Jun 7, 2024

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).

@wendy-clio wendy-clio requested review from a team as code owners June 7, 2024 14:56
@wendy-clio wendy-clio force-pushed the upgrade_to_ruby_3 branch from e57c1bc to 44d2727 Compare June 7, 2024 15:07
@anthonyoconnorclio anthonyoconnorclio requested review from a team, anthonyoconnorclio, parsahonarmand99, Drew-Goddyn and peerkleio and removed request for a team June 7, 2024 15:12
peerkleio
peerkleio previously approved these changes Jun 7, 2024
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@@ -14,8 +14,6 @@ jobs:
matrix:
gemfile:
- Gemfile
- Gemfile.5.2
Copy link
Contributor Author

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"
Copy link
Contributor Author

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.

@wendy-clio wendy-clio merged commit a411d51 into master Jun 13, 2024
2 checks passed
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.

6 participants