-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prefer caller_locations and Thread::Backtrace::Location methods
Mechanize has still been using `Kernel#caller` whose string representation has changed enough in Ruby 3.4.0.dev to break how deprecation messages were being handrolled. Replace all uses of `caller` with `caller_locations` which is both faster and returns an object with some nice methods we can use to isolate the method, the file, and the line number. This should get us green again on ruby-head.
- Loading branch information
1 parent
9de5c1d
commit 73b8a7e
Showing
4 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters