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 #20

Merged
merged 7 commits into from
Jun 11, 2024
Merged

Update to Ruby 3 #20

merged 7 commits into from
Jun 11, 2024

Conversation

peerkleio
Copy link
Contributor

@peerkleio peerkleio commented Jun 10, 2024

Updates the gem to use Ruby v3. This also updates the CI runs to use multiple versions of Ruby and ActiveRecord while excluding incompatible versions (e.g. Ruby 3.2 won't work with Rails 6.1)

Other code changes that were necessary,

  1. Replace update_attributes with update_attribute as the former has been deprecated.
  2. Update a call to ActiveRecord::MigrationContext with additional argument required for v6.1
  3. Update ActiveSupport::Dependencies.constantize(lookup) to lookup.constantize
  4. Add Gemfile.lock to .gitignore as we don't want to save this when doing multiple version CI

Remove combinations that are not supported Ruby vs AR
- 6.1.0
- 7.0.0
- 7.1.0
exclude:

Choose a reason for hiding this comment

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

🚀

@peerkleio peerkleio merged commit 9c7e5a3 into master Jun 11, 2024
10 checks passed
@peerkleio peerkleio deleted the ruby-3 branch June 11, 2024 13:39
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.

3 participants