From 91c63828f7b841df6b7b124acb752c0a3bca66c0 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Thu, 15 Aug 2019 18:12:34 +0200 Subject: [bundler/bundler] Extract a `gem_bin` path helper https://github.com/bundler/bundler/commit/8eedbecac0 --- spec/bundler/support/path.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/bundler/support/path.rb') diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 302d79dc46..80616ce546 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -17,6 +17,10 @@ module Spec @bindir ||= root.join(ruby_core? ? "libexec" : "exe") end + def gem_bin + @gem_bin ||= ruby_core? ? ENV["BUNDLE_GEM"] : "#{Gem.ruby} -S gem" + end + def spec_dir @spec_dir ||= root.join(ruby_core? ? "spec/bundler" : "spec") end -- cgit v1.2.3