diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-23 11:36:10 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-23 21:04:12 +0200 |
commit | 11597fef24274bf1542384512faed697d7f41e3b (patch) | |
tree | 358d833fcef7e37e9f67cadfd8093049bd47381e /lib/bundler/shared_helpers.rb | |
parent | 9d733d92abe4e492f07027fc5928a5a1172d6b31 (diff) | |
download | bundler-11597fef24274bf1542384512faed697d7f41e3b.tar.gz |
Remove unnecessary BUNDLER_SPEC_RUNremove_bundler_spec_run
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r-- | lib/bundler/shared_helpers.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 73c6dc3097..43ef7b2560 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -255,19 +255,6 @@ module Bundler current = File.expand_path(SharedHelpers.pwd).untaint until !File.directory?(current) || current == previous - if ENV["BUNDLE_SPEC_RUN"] - # avoid stepping above the tmp directory when testing - gemspec = if ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"] - # 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)) - end - names.each do |name| filename = File.join(current, name) yield filename |