Show correct script name with sub-feature case
This commit is contained in:
parent
b41d79962a
commit
5fedf1c3ac
Notes:
git
2024-08-21 07:48:54 +00:00
@ -79,10 +79,12 @@ module Gem::BUNDLED_GEMS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.uplevel
|
def self.uplevel
|
||||||
|
frame_count = 0
|
||||||
frames_to_skip = 3
|
frames_to_skip = 3
|
||||||
uplevel = 0
|
uplevel = 0
|
||||||
require_found = false
|
require_found = false
|
||||||
Thread.each_caller_location do |cl|
|
Thread.each_caller_location do |cl|
|
||||||
|
frame_count += 1
|
||||||
if frames_to_skip >= 1
|
if frames_to_skip >= 1
|
||||||
frames_to_skip -= 1
|
frames_to_skip -= 1
|
||||||
next
|
next
|
||||||
@ -98,7 +100,7 @@ module Gem::BUNDLED_GEMS
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
require_found ? 1 : 2
|
require_found ? 1 : frame_count - 1
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.find_gem(path)
|
def self.find_gem(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user