Don't show script name when bundle exec and call ruby script directly.

This commit is contained in:
Hiroshi SHIBATA 2024-08-21 14:30:08 +09:00
parent c97dc7739e
commit 71c14c8889
Notes: git 2024-08-21 07:48:54 +00:00

View File

@ -103,6 +103,11 @@ module Gem::BUNDLED_GEMS
require_found = true
end
end
# Don't show script name when bundle exec and call ruby script directly.
if cl.path.end_with?("bundle")
frame_count = 0
break
end
end
require_found ? 1 : frame_count - 1
end