summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-09 17:57:50 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-14 18:52:21 +0100
commit5f4ed556d849a3c34b81b964556cb1b0ba1fd587 (patch)
tree079c306c751870ce1e200b2d82b35de82b390a56 /lib
parent309729f5bfde799aad6fb985d6239633de2cb450 (diff)
downloadbundler-5f4ed556d849a3c34b81b964556cb1b0ba1fd587.tar.gz
Fix `bundle info bundler` path
Diffstat (limited to 'lib')
-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)