summaryrefslogtreecommitdiff
path: root/spec/bundler/support/rubygems_version_manager.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-15 21:31:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-22 20:32:30 +0900
commitc7ebeb7eda9f7f6bbb48effe1efc026eeb64d09c (patch)
treeb516b3b5119331d4d8431b4d17f552e2c8e798fe /spec/bundler/support/rubygems_version_manager.rb
parentf4f157fc81b940c0f76a01ee266a08e6bba69b6b (diff)
Sync Bundler PR #3624
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3114
Diffstat (limited to 'spec/bundler/support/rubygems_version_manager.rb')
-rw-r--r--spec/bundler/support/rubygems_version_manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/support/rubygems_version_manager.rb b/spec/bundler/support/rubygems_version_manager.rb
index aa4cfc460b..a74cb64337 100644
--- a/spec/bundler/support/rubygems_version_manager.rb
+++ b/spec/bundler/support/rubygems_version_manager.rb
@@ -96,7 +96,7 @@ private
def resolve_local_copy_path
return expanded_source if source_is_path?
- rubygems_path = root.join("tmp/rubygems")
+ rubygems_path = source_root.join("tmp/rubygems")
unless rubygems_path.directory?
rubygems_path.parent.mkpath
@@ -111,7 +111,7 @@ private
end
def expanded_source
- @expanded_source ||= Pathname.new(@source).expand_path(root)
+ @expanded_source ||= Pathname.new(@source).expand_path(source_root)
end
def resolve_target_tag