-
Notifications
You must be signed in to change notification settings - Fork 30
Add support and testing for new versions #45
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
Changes from all commits
6245db6
8d81ef0
d1f549e
8bafc0a
2eb9943
6af4645
69d9e3a
9cbf8e4
bb4e6fa
d836b52
c2de210
a721170
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /pkg | ||
| *~ | ||
| \.DS_Store | ||
| *.sqlite | ||
| *.sqlite* | ||
| Gemfile.lock | ||
| Gemfile.local | ||
| gemfiles/*.lock | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,6 @@ | |
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'activerecord', '~> 5.1.0' | ||
| gem 'activerecord', '~> 7.2.0' | ||
|
|
||
| gemspec path: '..' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,6 @@ | |
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'activerecord', '~> 5.2.0' | ||
| gem 'activerecord', '~> 8.0.0' | ||
|
|
||
| gemspec path: '..' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module Multidb | ||
| VERSION = '0.7.0' | ||
| VERSION = '0.8.0' | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ | |
| $LOAD_PATH.unshift(File.expand_path('lib', __dir__)) | ||
| require 'multidb' | ||
|
|
||
| Dir[File.join(__dir__, 'support', '**', '*.rb')].sort.each { |f| require f } | ||
| Dir[File.join(__dir__, 'support', '**', '*.rb')].each { |f| require f } | ||
|
|
||
| RSpec.configure do |config| | ||
| config.disable_monkey_patching! | ||
|
|
@@ -39,7 +39,7 @@ | |
| end | ||
|
|
||
| config.before do | ||
| ActiveRecord::Base.clear_all_connections! | ||
| ActiveRecord::Base.connection_handler.clear_all_connections! | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this seriously the only change needed to get it working on 7.1+? Have you tested it IN a rails application to ensure if fully works in 7.1+? (not wanting to just trust the tests here).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I plan to test today in a Rails application. It definitely seemed weird but I noticed the code (line 14 in candidate.rb) was already using the connection handler so it seemed plausible it will work. The older AR versions would be supported with maybe some careful changes to their gemfiles. I'll keep you posted. |
||
| Multidb.reset! | ||
| end | ||
|
|
||
|
|
||
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.
@joe-sharp a small typo here.. (should be
Rails 7.2 and 8.0)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.
Can we merge this? I can fix the typo if that's the only thing left here.
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.
@ar31an if you can fix the typo and squash the commits down I'll get it merged in.
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.
@urkle Didn't have write access to that repo, so here's the new PR from that fork: #46
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks y'all. Got stuck fixing other stuff so we could test on Rails 7.2. I'll report any issues we find in testing.