From 40113454b1362554dee83454df76e5892999247f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 16 Dec 2023 19:40:19 +0800 Subject: [PATCH] Use regex instead of hard coded paths --- spec/bundler/support/path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index bb1ac2454d..5323f06280 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -80,7 +80,7 @@ module Spec end def shipped_files - @shipped_files ||= ruby_core? ? (loaded_gemspec.files - ["exe/bundle", "exe/bundler"] + ["libexec/bundle", "libexec/bundler"]) : loaded_gemspec.files + @shipped_files ||= ruby_core? ? loaded_gemspec.files.map{|f| f.gsub(/^exe\//, "libexec/")} : loaded_gemspec.files end def lib_tracked_files