diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-01 11:07:12 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:31 +0200 |
commit | 0c9aeb96fb1e263830de65f335f1c091da06a7c1 (patch) | |
tree | 9e04c20f0cc6ec93cc252f978d80e6db3608e10a | |
parent | 5ab4db12e8b943c8bb8ecebc0b043a67e9a5f42a (diff) | |
download | bundler-0c9aeb96fb1e263830de65f335f1c091da06a7c1.tar.gz |
Consistenly pass strings to method that prints a table
-rw-r--r-- | lib/bundler/cli/outdated.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 3c2b47333a..f04c875273 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -116,7 +116,7 @@ module Bundler dependency = gem[:dependency].requirement if gem[:dependency] && gem[:dependency].specific? ret_val = [gem[:active_spec].name, current_version, spec_version, dependency.to_s, gem[:groups].to_s] - ret_val << gem[:active_spec].loaded_from if options[:verbose] + ret_val << gem[:active_spec].loaded_from.to_s if options[:verbose] ret_val end @@ -260,14 +260,14 @@ module Bundler columns = data.first.size column_sizes = Array.new(columns) do |index| - data.max_by {|row| row[index].to_s.length }[index].length + data.max_by {|row| row[index].length }[index].length end data.sort_by! {|row| row[0] } data.each do |row| row = row.each_with_index.map do |element, index| - element.to_s.ljust(column_sizes[index]) + element.ljust(column_sizes[index]) end Bundler.ui.info row.join(" ") + "\n" |