summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/info.rb')
-rw-r--r--lib/bundler/cli/info.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb
index 6fd71597aa..61d4001c6f 100644
--- a/lib/bundler/cli/info.rb
+++ b/lib/bundler/cli/info.rb
@@ -39,7 +39,13 @@ module Bundler
end
def print_gem_path(spec)
- Bundler.ui.info spec.full_gem_path
+ path = if spec.name == "bundler"
+ File.expand_path("../../../..", __FILE__)
+ else
+ spec.full_gem_path
+ end
+
+ Bundler.ui.info path
end
def print_gem_info(spec)