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.
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
withcaller_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.