summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/show.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/show.rb')
-rw-r--r--lib/bundler/cli/show.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/show.rb b/lib/bundler/cli/show.rb
index 96c1490209..161e931c72 100644
--- a/lib/bundler/cli/show.rb
+++ b/lib/bundler/cli/show.rb
@@ -31,12 +31,12 @@ module Bundler
end
if options[:paths]
- Bundler.load.specs.sort_by { |s| s.name }.map do |s|
+ Bundler.load.specs.sort_by(&:name).map do |s|
Bundler.ui.info s.full_gem_path
end
else
Bundler.ui.info "Gems included by the bundle:"
- Bundler.load.specs.sort_by { |s| s.name }.each do |s|
+ Bundler.load.specs.sort_by(&:name).each do |s|
desc = " * #{s.name} (#{s.version}#{s.git_version})"
if @verbose
latest = latest_specs.find { |l| l.name == s.name }