Use regex instead of hard coded paths
This commit is contained in:
parent
ab87cd0baa
commit
40113454b1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user