hledger-forecast 1.2.0 → 1.3.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/README.md +207 -196
- data/example.csv +16 -0
- data/example.journal +19 -23
- data/example.yml +8 -3
- data/lib/hledger_forecast/calculator.rb +1 -1
- data/lib/hledger_forecast/cli.rb +21 -4
- data/lib/hledger_forecast/csv_parser.rb +106 -0
- data/lib/hledger_forecast/generator.rb +2 -1
- data/lib/hledger_forecast/summarizer.rb +1 -1
- data/lib/hledger_forecast/summarizer_formatter.rb +11 -3
- data/lib/hledger_forecast/transactions/default.rb +18 -1
- data/lib/hledger_forecast/transactions/trackers.rb +7 -0
- data/lib/hledger_forecast/version.rb +1 -1
- data/lib/hledger_forecast.rb +2 -1
- data/spec/command_spec.rb +9 -1
- data/spec/csv_and_yml_comparison_spec.rb +32 -0
- data/spec/csv_parser_spec.rb +110 -0
- data/spec/custom_spec.rb +6 -9
- data/spec/stubs/forecast.csv +5 -0
- data/spec/summarizer_spec.rb +7 -7
- metadata +11 -3
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.
|
|
4
|
+
version: 1.3.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-
|
|
11
|
+
date: 2023-06-09 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,6 +138,7 @@ 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
|
|
@@ -160,13 +165,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
160
165
|
- !ruby/object:Gem::Version
|
|
161
166
|
version: '0'
|
|
162
167
|
requirements: []
|
|
163
|
-
rubygems_version: 3.
|
|
168
|
+
rubygems_version: 3.4.13
|
|
164
169
|
signing_key:
|
|
165
170
|
specification_version: 4
|
|
166
171
|
summary: An extended wrapper around hledger's forecasting functionality
|
|
167
172
|
test_files:
|
|
168
173
|
- spec/command_spec.rb
|
|
169
174
|
- spec/computed_amounts_spec.rb
|
|
175
|
+
- spec/csv_and_yml_comparison_spec.rb
|
|
176
|
+
- spec/csv_parser_spec.rb
|
|
170
177
|
- spec/custom_spec.rb
|
|
171
178
|
- spec/half-yearly_spec.rb
|
|
172
179
|
- spec/modifier_spec.rb
|
|
@@ -175,6 +182,7 @@ test_files:
|
|
|
175
182
|
- spec/monthly_spec.rb
|
|
176
183
|
- spec/once_spec.rb
|
|
177
184
|
- spec/quarterly_spec.rb
|
|
185
|
+
- spec/stubs/forecast.csv
|
|
178
186
|
- spec/stubs/forecast.yml
|
|
179
187
|
- spec/stubs/transactions_found.journal
|
|
180
188
|
- spec/stubs/transactions_found_inverse.journal
|