aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/support
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-21 09:22:15 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-21 09:22:15 +0000
commit4525cf2cd599389be3fab30ae4c13e22050705b5 (patch)
tree33165c2a9ec72863caa8c476e380e36eeb9c6a69 /spec/bundler/support
parent85277d5be0b24638ea4bf84c422e71a1219465e7 (diff)
downloadruby-4525cf2cd599389be3fab30ae4c13e22050705b5.tar.gz
Merge release version of bundler-1.16.1 from upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/bundler/support')
-rw-r--r--spec/bundler/support/hax.rb6
-rw-r--r--spec/bundler/support/helpers.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/spec/bundler/support/hax.rb b/spec/bundler/support/hax.rb
index aee55a0ac9..b14e4a5943 100644
--- a/spec/bundler/support/hax.rb
+++ b/spec/bundler/support/hax.rb
@@ -12,6 +12,12 @@ module Gem
@local = new(ENV["BUNDLER_SPEC_PLATFORM"]) if ENV["BUNDLER_SPEC_PLATFORM"]
end
@platforms = [Gem::Platform::RUBY, Gem::Platform.local]
+
+ if defined?(@path_to_default_spec_map) && !ENV["BUNDLER_SPEC_KEEP_DEFAULT_BUNDLER_GEM"]
+ @path_to_default_spec_map.delete_if do |_path, spec|
+ spec.name == "bundler"
+ end
+ end
end
if ENV["BUNDLER_SPEC_VERSION"]
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index 01ddb49977..5f77ce6be9 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -220,7 +220,7 @@ module Spec
def rake
if ENV['BUNDLE_RUBY'] && ENV['BUNDLE_GEM']
- "#{ENV['BUNDLE_RUBY']} #{ENV['GEM_PATH']}/bin/rake"
+ "'#{ENV['BUNDLE_RUBY']}' -S '#{ENV['GEM_PATH']}/bin/rake'"
else
'rake'
end