-
Notifications
You must be signed in to change notification settings - Fork 0
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 Rails 7.2 #45
Conversation
911e8ad
to
2920f07
Compare
in the exception_handling module
a95b673
to
3dd9553
Compare
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.
My biggest worry is that one of twirp gem versions was breaking our app. If it's still the case, would be great if we will mark this version as not supported.
But generally this looks good to go for me.
exception_wrapper = ActionDispatch::ExceptionWrapper.new(backtrace_cleaner, e) | ||
# ExceptionWrapper.show? contains the logic that chooses to pass exceptions through or not based on the | ||
# `Rails.application.config.action_dispatch.show_exceptions` setting of :none, :rescuable and :all | ||
raise e unless exception_wrapper.show?(http_request) |
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.
thought: nice 👍🏻
.ruby-version
Outdated
@@ -1 +1 @@ | |||
3.3.0 | |||
3.3.3 |
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.
thought: do we really need .ruby-version in a gem's source code? Can we yank this file?
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.
Prob. Most of our codebases have it. But not all. Added multi version testing.
@@ -7,6 +7,7 @@ | |||
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)] | |||
require "rails/test_help" | |||
require "rails/test_unit/reporter" | |||
require "pry" |
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.
thought: do we really need pry
here for debugging? Would binding.irb
be enough?
In pbbuilder, for example, irb doesn't work. But for this gem we can easily debug without pry
.
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.
Sure yanked it out.
in favor of multi version testing
b7fdba4
to
7e03168
Compare
7e03168
to
a9a9c5d
Compare
Adding support for rails 7.1 by fixing the deprecation of
request.show_exceptions?
. Now this is controlled byRails.application.config.action_dispatch.show_exceptions
.NOTE: Wil merge this after the pbbuilder merge, so we can import the gem instead of the github code directly.