summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-01 16:12:48 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-12 16:46:32 +0200
commit73ff5d58831161aa73fbe21e8600c509d63bda8c (patch)
treeb6d7399b49dfd85ef83d3bb2b2b6f98d16c26503
parentf5ddf680f1bba8bd3720b50829611c1d4ff10fca (diff)
downloadbundler-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.rb4
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