aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-17 05:39:16 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-17 05:39:16 +0800
commit8db0de92a8454b449efb243f380f5d2b68c38d7c (patch)
tree178ddd7f41c3a2af6ef909983b214b005febf2fd /spec/bundler
parentab7f54688b495b3218843e58992b713c3b28011f (diff)
downloadruby-8db0de92a8454b449efb243f380f5d2b68c38d7c.tar.gz
Restore tracked_files for ruby core repo
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/support/path.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index 5323f06280..f0f701a7cb 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -80,7 +80,13 @@ module Spec
end
def shipped_files
- @shipped_files ||= ruby_core? ? loaded_gemspec.files.map{|f| f.gsub(/^exe\//, "libexec/")} : loaded_gemspec.files
+ @shipped_files ||= if ruby_core_tarball?
+ loaded_gemspec.files.map{|f| f.gsub(/^exe\//, "libexec/")}
+ elsif ruby_core?
+ tracked_files
+ else
+ loaded_gemspec.files
+ end
end
def lib_tracked_files