summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-25 20:01:45 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-09 18:25:09 +0100
commitdaa04db90e7d55c5ad7c1501f38cf718c62061f4 (patch)
treeff0a6981feb1dcbfb4665980acb2a4304388fc44
parent40382ba6add58a56634f117b08b994b0cb091aeb (diff)
downloadbundler-daa04db90e7d55c5ad7c1501f38cf718c62061f4.tar.gz
bundle_dir is already a Pathname
So we can instead call `parent` on it.
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 9a96fac11a..0d9a523310 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -279,7 +279,7 @@ module Bundler
rescue GemfileNotFound
bundle_dir = default_bundle_dir
raise GemfileNotFound, "Could not locate Gemfile or .bundle/ directory" unless bundle_dir
- Pathname.new(File.expand_path("..", bundle_dir))
+ bundle_dir.parent
end
end