summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-10-21 21:37:58 +0200
committergit <svn-admin@ruby-lang.org>2024-10-23 08:52:45 +0000
commit4790ecc86f7f73a0afbda836c730cb1226f5b786 (patch)
treeb88acd2fcea756c656590d39208ece024a639e4e /lib
parentffd51926bf1db49b4147398cc40fcb552958776c (diff)
[rubygems/rubygems] Do what the comment says, it's simpler
https://github.com/rubygems/rubygems/commit/0511d2c08d
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/shared_helpers.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index ac17885e46..efdc0fe8f5 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -274,15 +274,7 @@ module Bundler
until !File.directory?(current) || current == previous
if ENV["BUNDLER_SPEC_RUN"]
# avoid stepping above the tmp directory when testing
- gemspec = if ENV["GEM_COMMAND"]
- # for Ruby Core
- "lib/bundler/bundler.gemspec"
- else
- "bundler.gemspec"
- end
-
- # avoid stepping above the tmp directory when testing
- return nil if File.file?(File.join(current, gemspec))
+ return nil if File.directory?(File.join(current, "tmp"))
end
names.each do |name|