aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-06-25 14:28:43 +0900
committerSamuel Giddins <segiddins@segiddins.me>2016-06-27 16:17:38 -0500
commita682e88735f80930aa81a8983d179744a5f324d0 (patch)
tree5a47eaf0334b04989e0c8cc4eab827ca7839d58c /lib
parente4fd51d0e05bf38a4e3bc928c9331d55adae3807 (diff)
downloadbundler-a682e88735f80930aa81a8983d179744a5f324d0.tar.gz
Auto merge of #4715 - jenseng:fix_absolute_path_message, r=segiddins
Don't incorrectly relativize sibling `--path` with the same prefix Given current working directory `/foo/app`, when you install with `--path /foo/app_cache`, ensure that the messaging says: Bundled gems are installed into /foo/app_cache instead of the incorrect: Bundled gems are installed into ._cache (cherry picked from commit 3b928d83c1b606b4598c6662528b20482762a14d)
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index dbe25977..a087ab42 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -69,7 +69,7 @@ module Bundler
if Bundler.settings[:path]
absolute_path = File.expand_path(Bundler.settings[:path])
- relative_path = absolute_path.sub(File.expand_path("."), ".")
+ relative_path = absolute_path.sub(File.expand_path(".") + File::SEPARATOR, "." + File::SEPARATOR)
Bundler.ui.confirm "Bundled gems are installed into #{relative_path}."
else
Bundler.ui.confirm "Use `bundle show [gemname]` to see where a bundled gem is installed."