lib/bundled_gems.rb: more reliable caller detection
The 2 skipped frames went out of sync and now it should be 3.
2
3
Rather than just update the offset, we can implement a way that is adaptative as long as all require decorators are also called require.
Also we should compute the corresponding uplevel otherwise the warning will still point decorators.
uplevel
Co-authored-by: "Hiroshi SHIBATA" hsbt@ruby-lang.org
lib/bundled_gems.rb: more reliable caller detection
The
2skipped frames went out of sync and now it should be3.Rather than just update the offset, we can implement a way that
is adaptative as long as all require decorators are also called require.
Also we should compute the corresponding
uplevelotherwise thewarning will still point decorators.
Co-authored-by: "Hiroshi SHIBATA" hsbt@ruby-lang.org