hledger-forecast 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21be14ce391292a910e85657b5dd77e6e40648fc06a0c6ffe5d6aaabb8a4a52d
4
- data.tar.gz: 7764b423d46ed8f656af7907374fbdac9519a63b92de6ac0fd8e85db80fdc715
3
+ metadata.gz: 410b448de275184312f25f5f5cc008fbaf945c27c40827c9f203fd3c14422729
4
+ data.tar.gz: d9c9f019852246dee148758231bd8619f10e8246459dd2b719ede97f31ee8e05
5
5
  SHA512:
6
- metadata.gz: c52628b6b7259c24710e797a38f3bb01cfe85e4c199b26284d0e4aea7a2b2ec42f588cd69607b8a642c6637fd2d9d4a0d625c08e59c522f79bcd04a9a692b69d
7
- data.tar.gz: dc8e7808c9f51444ffbc3d09af9845a2d971f9750cdd07c8210f56e6b84274e3b8a6159d5c09c718586b58d2655d8f463e97471dffe503bc4dddf26ca6557c2f
6
+ metadata.gz: 7700e2fc1778ad1e0548cd53ce3648b38ec2f56ce493204b5bb1efedff0d6621c3563ec09494ed2362f926aa3fe22c10f06394f551b5907cb8c9106c2642e3a1
7
+ data.tar.gz: fba3f08d0c906fddaab46c31a236602b2843a0c6a5f56723cac9fdc89453e46b6871f129d0e8a684d369883f4dfa8a81cfde64e5997cf8ee4485e90e345ad772
data/README.md CHANGED
@@ -347,11 +347,11 @@ settings:
347
347
 
348
348
  **Yaml config file and output**
349
349
 
350
- <img src="https://user-images.githubusercontent.com/9512444/234382872-b81ac84d-2bcc-4488-a041-364f72627087.png" alt="Hledger-Forecast" />
350
+ <img src="https://github.com/olimorris/hledger-forecast/assets/9512444/c3c3222e-f797-4643-bebd-9c94134bee92" alt="Hledger-Forecast" />
351
351
 
352
352
  **Summarize command**
353
353
 
354
- <img src="https://user-images.githubusercontent.com/9512444/234386807-1301c8d9-af77-4f58-a3c3-a345b5e890a2.png" alt="Summarize command" />
354
+ <img src="https://github.com/olimorris/hledger-forecast/assets/9512444/f5017ea2-9606-46ec-8b38-8840dc175e7b" alt="Summarize command" />
355
355
 
356
356
  ## :paintbrush: Rationale
357
357
 
@@ -85,9 +85,17 @@ module HledgerForecast
85
85
  # Sort the array
86
86
  sorted_sums = sort_roll_up(sum_hash, :sum)
87
87
 
88
- sorted_sums.each do |hash|
89
- @table.add_row [{ value: hash[:category], colspan: 2, alignment: :left },
90
- { value: format_amount(hash[:sum]), alignment: :right }]
88
+ if @settings[:verbose]
89
+ sorted_sums.each do |hash|
90
+ @table.add_row [{ value: hash[:category], colspan: 1, alignment: :left },
91
+ { value: hash[:descriptions], colspan: 1, alignment: :left },
92
+ { value: format_amount(hash[:sum]), alignment: :right }]
93
+ end
94
+ else
95
+ sorted_sums.each do |hash|
96
+ @table.add_row [{ value: hash[:category], colspan: 2, alignment: :left },
97
+ { value: format_amount(hash[:sum]), alignment: :right }]
98
+ end
91
99
  end
92
100
  end
93
101
 
@@ -1,3 +1,3 @@
1
1
  module HledgerForecast
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hledger-forecast
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oli Morris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2023-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize