diff options
author | Carl Lerche <carllerche@mac.com> | 2010-07-15 11:37:42 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-07-15 11:37:42 -0700 |
commit | a0082b979c0c60b0ba49fce99c173d80794c3d50 (patch) | |
tree | 4a0aea4450a8bfb3a6eeab7673ef59fec4b7fa66 /lib/bundler/cli.rb | |
parent | aebee5916f3613cfeec2d751d4db503388901a42 (diff) | |
download | bundler-a0082b979c0c60b0ba49fce99c173d80794c3d50.tar.gz |
Make sure that bundle show bundler shows the correct path
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index e468232e4c..786f9eb391 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -297,6 +297,9 @@ module Bundler def locate_gem(name) spec = Bundler.load.specs.find{|s| s.name == name } raise GemNotFound, "Could not find gem '#{name}' in the current bundle." unless spec + if spec.name == 'bundler' + return File.expand_path('../../../', __FILE__) + end spec.full_gem_path end |