hledger-forecast 1.2.1 → 1.4.0

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.
@@ -0,0 +1,27 @@
1
+ require_relative '../lib/hledger_forecast'
2
+
3
+ output = <<~JOURNAL
4
+ ~ monthly from 2023-03-01 * Mortgage
5
+ Expenses:Mortgage £2,000.55; Mortgage
6
+ Assets:Bank
7
+
8
+ ~ monthly from 2023-03-01 * Food
9
+ Expenses:Food £100.00 ; Food
10
+ Assets:Bank
11
+
12
+ ~ monthly from 2023-03-01 * Savings
13
+ Assets:Bank £-1,000.00; Savings
14
+ Assets:Savings
15
+
16
+ JOURNAL
17
+
18
+ RSpec.describe 'verbose command' do
19
+ it 'does not group similar type transactions together in the output' do
20
+ generated_journal = './test_output.journal'
21
+ File.delete(generated_journal) if File.exist?(generated_journal)
22
+
23
+ system("./bin/hledger-forecast generate -f ./spec/stubs/forecast.csv -o ./test_output.journal --verbose --force")
24
+
25
+ expect(File.read(generated_journal)).to eq(output)
26
+ end
27
+ 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.1
4
+ version: 1.4.0
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-29 00:00:00.000000000 Z
11
+ date: 2023-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -109,12 +109,14 @@ files:
109
109
  - LICENSE
110
110
  - README.md
111
111
  - bin/hledger-forecast
112
+ - example.csv
112
113
  - example.journal
113
114
  - example.yml
114
115
  - hledger-forecast.gemspec
115
116
  - lib/hledger_forecast.rb
116
117
  - lib/hledger_forecast/calculator.rb
117
118
  - lib/hledger_forecast/cli.rb
119
+ - lib/hledger_forecast/csv_parser.rb
118
120
  - lib/hledger_forecast/formatter.rb
119
121
  - lib/hledger_forecast/generator.rb
120
122
  - lib/hledger_forecast/settings.rb
@@ -126,6 +128,8 @@ files:
126
128
  - lib/hledger_forecast/version.rb
127
129
  - spec/command_spec.rb
128
130
  - spec/computed_amounts_spec.rb
131
+ - spec/csv_and_yml_comparison_spec.rb
132
+ - spec/csv_parser_spec.rb
129
133
  - spec/custom_spec.rb
130
134
  - spec/half-yearly_spec.rb
131
135
  - spec/modifier_spec.rb
@@ -134,12 +138,14 @@ files:
134
138
  - spec/monthly_spec.rb
135
139
  - spec/once_spec.rb
136
140
  - spec/quarterly_spec.rb
141
+ - spec/stubs/forecast.csv
137
142
  - spec/stubs/forecast.yml
138
143
  - spec/stubs/transactions_found.journal
139
144
  - spec/stubs/transactions_found_inverse.journal
140
145
  - spec/stubs/transactions_not_found.journal
141
146
  - spec/summarizer_spec.rb
142
147
  - spec/track_spec.rb
148
+ - spec/verbose_output_spec.rb
143
149
  - spec/yearly_spec.rb
144
150
  homepage: https://github.com/olimorris/hledger-forecast
145
151
  licenses:
@@ -160,13 +166,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
166
  - !ruby/object:Gem::Version
161
167
  version: '0'
162
168
  requirements: []
163
- rubygems_version: 3.2.3
169
+ rubygems_version: 3.4.13
164
170
  signing_key:
165
171
  specification_version: 4
166
172
  summary: An extended wrapper around hledger's forecasting functionality
167
173
  test_files:
168
174
  - spec/command_spec.rb
169
175
  - spec/computed_amounts_spec.rb
176
+ - spec/csv_and_yml_comparison_spec.rb
177
+ - spec/csv_parser_spec.rb
170
178
  - spec/custom_spec.rb
171
179
  - spec/half-yearly_spec.rb
172
180
  - spec/modifier_spec.rb
@@ -175,10 +183,12 @@ test_files:
175
183
  - spec/monthly_spec.rb
176
184
  - spec/once_spec.rb
177
185
  - spec/quarterly_spec.rb
186
+ - spec/stubs/forecast.csv
178
187
  - spec/stubs/forecast.yml
179
188
  - spec/stubs/transactions_found.journal
180
189
  - spec/stubs/transactions_found_inverse.journal
181
190
  - spec/stubs/transactions_not_found.journal
182
191
  - spec/summarizer_spec.rb
183
192
  - spec/track_spec.rb
193
+ - spec/verbose_output_spec.rb
184
194
  - spec/yearly_spec.rb