-
-
Notifications
You must be signed in to change notification settings - Fork 246
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 Rails 8 #419
base: master
Are you sure you want to change the base?
Add Rails 8 #419
Changes from all commits
d578a7a
97bf3f6
d16dac8
24bb5c0
d373559
038c0bf
147fd43
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 |
---|---|---|
|
@@ -8,5 +8,6 @@ Gemfile.lock | |
/travis/*.lock | ||
/test/database_local.yml | ||
.idea | ||
debug.log | ||
debug.log* | ||
/test/db/* | ||
/test/storage/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec| | |
spec.platform = Gem::Platform::RUBY | ||
|
||
# ruby-lang.org/en/downloads/branches | ||
spec.required_ruby_version = ">= 3.1.0" | ||
spec.required_ruby_version = ">= 3.2.0" | ||
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. Shouldn't we keep Support for 3.1 until EOL ? (2025-03-31) 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. Rails 8 required ruby_version >= 3.2.0 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. Then, also need to remove ruby 3.1 from the test matrix. |
||
|
||
spec.add_dependency "activerecord", "~> 7.2.0" | ||
spec.add_dependency "activerecord", "~> 8.0.0" | ||
spec.add_dependency "rgeo-activerecord", "~> 8.0.0" | ||
|
||
spec.add_development_dependency "rake", "~> 13.0" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,13 @@ connections: | |
username: <%= ENV["PGUSER"] || "postgres" %> | ||
password: <%= ENV["PGPASSWORD"] || "" %> | ||
setup: default | ||
schema_search_path: public | ||
arunit2: | ||
host: <%= ENV["PGHOST"] || "127.0.0.1" %> | ||
port: <%= ENV["PGPORT"] || "5432" %> | ||
database: <%= ENV["PGDATABASE"] || "postgis_adapter_test" %> | ||
username: <%= ENV["PGUSER"] || "postgres" %> | ||
password: <%= ENV["PGPASSWORD"] || "" %> | ||
setup: default | ||
schema_search_path: public | ||
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. This helps with test like
But I have no idea why 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. Not sure either. Looking at the original test it does some filtering of the events based on schema name, so maybe adding this search path adds another unexpected query. 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. But I don't think this is a big deal to remove 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. Contextual note to pair with #419 (comment) |
||
arunit_without_prepared_statements: | ||
min_messages: warning | ||
prepared_statements: false | ||
|
@@ -25,4 +23,3 @@ connections: | |
username: <%= ENV["PGUSER"] || "postgres" %> | ||
password: <%= ENV["PGPASSWORD"] || "" %> | ||
setup: default | ||
schema_search_path: public |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exclude "test_#resolve_raises_if_the_adapter_is_using_the_pre_7.2_adapter_registration_API", TRIAGE_MSG | ||
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. This test checked error message
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
exclude "test_schema_dump_with_timestamptz_datetime_format", TRIAGE_MSG | ||
exclude "test_schema_dump_when_changing_datetime_type_for_an_existing_app", TRIAGE_MSG | ||
if ActiveRecord::Base.lease_connection.pool.server_version(ActiveRecord::Base.lease_connection) < 15_00_00 | ||
exclude "test_schema_dumps_unique_constraints", TRIAGE_MSG | ||
end | ||
Comment on lines
+3
to
+5
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. 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. It's failing because my local version pg is 14, but I think originally test should check version 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. This test fails because |
||
exclude "test_foreign_keys_are_dumped_at_the_bottom_to_circumvent_dependency_issues", TRIAGE_MSG |
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 we should add 3.4 due to the phrasing in the README.md file for other versions - some examples:
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 do agree but probably best on a separated PR.