summaryrefslogtreecommitdiff
path: root/spec/bundler/support/bundle.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2022-12-12 09:09:23 +0900
committerHiroshi SHIBATA <[email protected]>2022-12-12 10:49:43 +0900
commitbbe56a643734025aef6a3cbeb07c5306505040f6 (patch)
treec6980a39ce6571c032695702bd974431eee4d516 /spec/bundler/support/bundle.rb
parentf1cdc129d4d6440168b840fa852fa6c3e28d46a9 (diff)
Merge RubyGems/Bundler master
from https://github.com/rubygems/rubygems/commit/bfb0ae69776069155d2092702bfbb5a12617d85a
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6906
Diffstat (limited to 'spec/bundler/support/bundle.rb')
-rw-r--r--spec/bundler/support/bundle.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/bundler/support/bundle.rb b/spec/bundler/support/bundle.rb
index bb21526d35..5f808531ff 100644
--- a/spec/bundler/support/bundle.rb
+++ b/spec/bundler/support/bundle.rb
@@ -1,6 +1,8 @@
# frozen_string_literal: true
require "rubygems"
+Gem.instance_variable_set(:@ruby, ENV["RUBY"]) if ENV["RUBY"]
+
require_relative "path"
bundler_gemspec = Spec::Path.loaded_gemspec
bundler_gemspec.instance_variable_set(:@full_gem_path, Spec::Path.source_root)