lib/zold/commands/show.rb in zold-0.19.2 vs lib/zold/commands/show.rb in zold-0.20.0
- old
+ new
@@ -75,17 +75,23 @@
wallet.txns.each do |t|
@log.info(t.to_text)
end
@log.info(
[
+ '',
"The balance of #{wallet}: #{balance} (#{balance.to_i} zents)",
"Network: #{wallet.network}",
"Transactions: #{wallet.txns.count}",
"Taxes: #{Tax.new(wallet).paid} paid, the debt is #{Tax.new(wallet).debt}",
"File size: #{Size.new(wallet.size)}, #{Copies.new(File.join(@copies, wallet.id)).all.count} copies",
"Modified: #{wallet.mtime.utc.iso8601} (#{Age.new(wallet.mtime.utc.iso8601)} ago)",
"Digest: #{wallet.digest}"
].join("\n")
+ )
+ @log.info(
+ "\n" + Copies.new(File.join(@copies, wallet.id)).all.map do |c|
+ "##{c[:name]}: #{c[:score]} #{Wallet.new(c[:path]).mnemo}"
+ end.join("\n")
)
balance
end
end
end