summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/outdated.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-24 11:21:51 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-25 11:02:05 +0200
commit8bf7a6d80865d6ecfba3cdced140b5a49a6dbb95 (patch)
treefda739ffdf591ad60ad1fc8768a1fbd9ffdb2da9 /lib/bundler/cli/outdated.rb
parent61fd42db9ac5f598ac784c8816d8404148ace8a0 (diff)
downloadbundler-8bf7a6d80865d6ecfba3cdced140b5a49a6dbb95.tar.gz
Traverse `outdated_gems_by_groups` in a simpler way
Diffstat (limited to 'lib/bundler/cli/outdated.rb')
-rw-r--r--lib/bundler/cli/outdated.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb
index b15e7b61b9..1bcaf3f0d4 100644
--- a/lib/bundler/cli/outdated.rb
+++ b/lib/bundler/cli/outdated.rb
@@ -109,8 +109,7 @@ module Bundler
end
if options_include_groups
- outdated_gems_by_groups.keys.sort.each do |groups|
- gems = outdated_gems_by_groups[groups]
+ outdated_gems_by_groups.sort.each do |groups, gems|
next if gems.nil?
contains_group = groups.split(", ").include?(options[:group])