-
Notifications
You must be signed in to change notification settings - Fork 12
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
[WIP] Support Rails 7.0 #133
Changes from all commits
4142743
fac3da9
40315ba
69f7193
c4a3491
59f5642
2ed7523
9a2a503
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 | ||||
---|---|---|---|---|---|---|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec| | |||||
|
||||||
spec.require_paths = ["lib"] | ||||||
|
||||||
spec.add_runtime_dependency "activerecord", "~> 6.1.0" | ||||||
spec.add_runtime_dependency "activerecord", ">=6.1.7.6" | ||||||
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. agreed, this needs to be:
Suggested change
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. and then also drop the 6.1 test suites. 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. will do this once 6.1/7.0 get feature parity. |
||||||
|
||||||
spec.add_development_dependency "byebug" | ||||||
spec.add_development_dependency "database_cleaner-active_record", "~> 2.1" | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ | |
end | ||
end | ||
end | ||
|
||
require "active_record" | ||
puts | ||
puts "\e[93mUsing ActiveRecord #{ActiveRecord.version}\e[0m" |
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.
I think this was the main sticking point in #125 and is why I closed it - in production this unlocks all versions of Rails, but this gem is intentionally not semver and matches the version of Rails that it supports directly. That is, this gem at this version can't (and shouldn't) work with versions >= 6.1.
In my PR I tried to make this part dynamic and only for test, but it turns out you really can't have "dynamic" code in a gemspec because it won't be packaged properly.