diff options
author | Steve Frank <lardcanoe@gmail.com> | 2014-02-08 14:15:42 -0500 |
---|---|---|
committer | Steve Frank <lardcanoe@gmail.com> | 2014-02-20 23:02:18 -0500 |
commit | 5d7473d2e72a7d53015490e70e77b59c2f483eed (patch) | |
tree | f1d2424bbed9c40c81b13cb900222beb5545bd58 /lib/bundler/cli/show.rb | |
parent | bb8f694147cb07cd820297978b0378ffa4c6d54b (diff) | |
download | bundler-5d7473d2e72a7d53015490e70e77b59c2f483eed.tar.gz |
Add summary option to 'show' cli command
Add summary option to 'show' cli command
Add summary option to 'show' cli command
Diffstat (limited to 'lib/bundler/cli/show.rb')
-rw-r--r-- | lib/bundler/cli/show.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bundler/cli/show.rb b/lib/bundler/cli/show.rb index a2269a6c..07ff63dc 100644 --- a/lib/bundler/cli/show.rb +++ b/lib/bundler/cli/show.rb @@ -35,10 +35,14 @@ module Bundler else Bundler.ui.info "Gems included by the bundle:" Bundler.load.specs.sort_by { |s| s.name }.each do |s| - Bundler.ui.info " * #{s.name} (#{s.version}#{s.git_version})" + desc = " * #{s.name} (#{s.version}#{s.git_version})" + if @options[:verbose] + Bundler.ui.info "#{desc} - #{s.summary || 'No description available.'}" + else + Bundler.ui.info desc + end end end end - end end |