Use regex instead of hard coded paths

This commit is contained in:
Hiroshi SHIBATA 2023-12-16 19:40:19 +08:00
parent ab87cd0baa
commit 40113454b1

View File

@ -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