diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-01 16:12:48 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:32 +0200 |
commit | 73ff5d58831161aa73fbe21e8600c509d63bda8c (patch) | |
tree | b6d7399b49dfd85ef83d3bb2b2b6f98d16c26503 | |
parent | f5ddf680f1bba8bd3720b50829611c1d4ff10fca (diff) | |
download | bundler-73ff5d58831161aa73fbe21e8600c509d63bda8c.tar.gz |
Normalize `bundle outdated --verbose` option handling
`--parseable` checks `Bundler.ui.debug?` instead of look at the option
directly.
-rw-r--r-- | lib/bundler/cli/outdated.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 7f66eaae74..5599017e98 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -210,7 +210,7 @@ module Bundler dependency = dependency.requirement if dependency ret_val = [active_spec.name, current_version, spec_version, dependency.to_s, groups.to_s] - ret_val << active_spec.loaded_from.to_s if options[:verbose] + ret_val << active_spec.loaded_from.to_s if Bundler.ui.debug? ret_val end @@ -280,7 +280,7 @@ module Bundler def table_header header = ["Gem", "Locked", "Latest", "Requested", "Groups"] - header << "Path" if options[:verbose] + header << "Path" if Bundler.ui.debug? header end |