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

Add support for activerecord 7.2, ruby 3.3 #35

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jmpage
Copy link
Contributor

@jmpage jmpage commented Sep 17, 2024

What did we change?

  • Bump dependency requirements so that this gem is compatible with ActiveRecord 7.2
  • Test against ActiveRecord 7.2
  • Test against Ruby 3.3

Why are we doing this?

Resolves #34 so that people who are using rails 7.2 can also use this gem.

NOTES

Ruby 3.0 has been EOL for almost 5 months. I figure that a breaking change for dropping this probably warrants a separate release. Rails 6.1 is EOL in 2 weeks, so it probably makes sense to drop support for that simultaneously.

How was it tested?

  • Specs
  • Locally
  • Staging

@jmpage jmpage force-pushed the jmp/add-activerecord-7.2-ruby-3.3-support branch 3 times, most recently from 23cd800 to cac6c52 Compare September 17, 2024 12:52
@jmpage jmpage force-pushed the jmp/add-activerecord-7.2-ruby-3.3-support branch from cac6c52 to 52890c4 Compare September 17, 2024 12:55
@jmpage jmpage marked this pull request as ready for review September 17, 2024 12:58
@@ -17,7 +19,7 @@
Thread.new do
listener_loop(**listener_options)
ensure
base_class.clear_active_connections!
Copy link
Contributor Author

@jmpage jmpage Sep 17, 2024

Choose a reason for hiding this comment

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

NOTE: delegation to the connection handler was deprecated in activerecord 7.1 and removed in activerecord 7.2.

Comment on lines +43 to +44
- activerecord: '7.2'
ruby: '3.0'
Copy link
Contributor Author

@jmpage jmpage Sep 17, 2024

Choose a reason for hiding this comment

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

NOTE: activerecord 7.2 requires ruby 3.1 or greater. I added this exclusion so that we can continue to support ruby 3.0 for the time being.

@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "ostruct"
Copy link
Contributor Author

@jmpage jmpage Sep 17, 2024

Choose a reason for hiding this comment

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

We must have had a dependency which was loading this as tests were failing because OpenStruct was not loaded. I haven't tracked this down because our old build logs appear to have passed the retention period and I don't think that it's worth the effort to try to reproduce successful builds without this import.

@jmpage jmpage merged commit 0b795f7 into main Sep 17, 2024
17 checks passed
@jmpage jmpage deleted the jmp/add-activerecord-7.2-ruby-3.3-support branch September 17, 2024 13:13
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.

Please add/ensure compatibility with Rails 7.2
2 participants