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

Support Rails 7.1.2 #93

Merged
merged 15 commits into from
Jan 2, 2024

Conversation

brianjaustin
Copy link

@brianjaustin brianjaustin commented Dec 29, 2023

Adds new methods to the Percona adapter required by a few changes in Rails 7.1:

On the tests front, I replaced ActiveRecord::Migrator with ActiveRecord::MigrationContext to solve method missing issues.

Gemspec/CI changes from #92

brianjaustin and others added 7 commits December 29, 2023 15:54
`internal_exec_query`: https://github.com/rails/rails/pull/48188/files
`raw_execute`: rails/rails@63c0d6b
Implementations for these are just copied from the MySQL2 adapter. For `reconnect`, only a stub
is present because retries make less sense when offloading to PTOSC
The signature of Migrator has changed again, and does not seem friendly
to external usage. Standardization on MigrationContext fixes the missing method
issue.
Ref: departurerb#92

Co-authored-by: Katie Edgar <[email protected]>
@brianjaustin brianjaustin marked this pull request as ready for review December 29, 2023 22:58
@brianjaustin
Copy link
Author

I updated the target Ruby version to support https://github.com/departurerb/departure/pull/93/files#diff-bc2049c1721297c73775182ffa5184cc75a4da11beea53183cb354db6f8af502R93 which triggered issues in a lot of other files (including some not updated in this PR). Personally, it seems like a good idea to keep the target version equal to the oldest version this library supports, but I can alter the code to avoid &. if that's preferred

departure.gemspec Outdated Show resolved Hide resolved
@benlangfeld benlangfeld merged commit 6f7bd48 into departurerb:master Jan 2, 2024
15 checks passed
@brianjaustin brianjaustin deleted the feat/support-rails-7-1 branch January 2, 2024 15:30
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