summaryrefslogtreecommitdiff
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-24 19:45:53 +0200
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-08-16 14:30:23 +0900
commit500c3cb6a59eb991567714311e9301eeb377be9d (patch)
treeba01bb0da7d2f65f360f136b05b4c6352883db5a /lib/bundler/source
parentcd41378ef906c279ee925a0f5d6ba3bf606953db (diff)
[bundler/bundler] Reuse `root` method
https://github.com/bundler/bundler/commit/42363091da
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2366
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb
index c1d25fc4da..05d4d78bb5 100644
--- a/lib/bundler/source/path.rb
+++ b/lib/bundler/source/path.rb
@@ -20,7 +20,7 @@ module Bundler
@allow_cached = false
@allow_remote = false
- @root_path = options["root_path"] || Bundler.root
+ @root_path = options["root_path"] || root
if options["path"]
@path = Pathname.new(options["path"])
@@ -136,7 +136,7 @@ module Bundler
def lockfile_path
return relative_path(original_path) if original_path.absolute?
- expand(original_path).relative_path_from(Bundler.root)
+ expand(original_path).relative_path_from(root)
end
def app_cache_path(custom_path = nil)