We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d5b02 commit ce91590Copy full SHA for ce91590
lib/mri/rubygems/core_ext/kernel_warn.rb
@@ -4,7 +4,7 @@
4
if RUBY_VERSION >= "2.5"
5
6
module Kernel
7
- path = "#{__dir__}/" # Frames to be skipped start with this path.
+ rubygems_path = "#{__dir__}/" # Frames to be skipped start with this path.
8
9
# Suppress "method redefined" warning
10
original_warn = instance_method(:warn)
@@ -32,7 +32,8 @@ module Kernel
32
33
start += 1
34
35
- unless loc.path.start_with?(path)
+ path = loc.path
36
+ unless path.start_with?(rubygems_path) or path.start_with?('<internal:')
37
# Non-rubygems frames
38
uplevel -= 1
39
end
0 commit comments