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.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb
index 999479cfcb..b7eb6a6e56 100644
--- a/lib/bundler/cli/info.rb
+++ b/lib/bundler/cli/info.rb
@@ -16,16 +16,7 @@ module Bundler
end
spec = Bundler::CLI::Common.select_spec(gem_name, :regex_match)
- return unless spec
-
- path = spec.full_gem_path
- return Bundler.ui.info(path) if options[:path]
-
- unless File.directory?(path)
- Bundler.ui.warn("The gem #{gem_name} has been deleted. It was installed at:")
- end
-
- print_gem_info spec
+ return print_gem_info(spec) if spec
end
private
@@ -38,6 +29,7 @@ module Bundler
\tSummary: #{spec.summary || "No description available."}
\tHomepage: #{spec.homepage || "No website available."}
\tStatus: #{outdated?(spec, latest) ? "Outdated - #{spec.version} < #{latest.version}" : "Up to date"}
+ \tPath: #{spec.full_gem_path}
END
end