reckon 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -9
- data/.gitignore +3 -0
- data/CHANGELOG.md +13 -1
- data/Gemfile.lock +3 -1
- data/bin/build-new-version.sh +1 -1
- data/lib/reckon/version.rb +1 -1
- data/reckon.gemspec +1 -0
- data/spec/integration/test.sh +8 -6
- metadata +151 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08cdfad096b04db11f671775c0119fcecefa7db46134f1c43677e949628498db'
|
4
|
+
data.tar.gz: 5ed2722b2843a5147faabdd82b0027fe590ff9dd66000100e756fad6de13a116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ebe28c482f091424d405efa1dc4b94cdc76022b114ce6f0db22a96e3ec6104a6e1efecec833af981f9c97f4c705cbbbd7f791403b5b669452abccd2caf295c8
|
7
|
+
data.tar.gz: 7af0ef7c71bcca9b189d23939ebeb93eedbe0875373818419d878461c33035a5e92359204c939ac3d8933935ad29b8a9cec319ddb84ea13626e22f51897f2fea
|
data/.github/workflows/ruby.yml
CHANGED
@@ -21,17 +21,11 @@ jobs:
|
|
21
21
|
matrix:
|
22
22
|
ruby-version:
|
23
23
|
# Current ruby stable version
|
24
|
+
- 3.1.2
|
25
|
+
# Ubuntu 22.04
|
24
26
|
- 3.0
|
25
|
-
# Ubuntu 20.
|
27
|
+
# Ubuntu 20.04
|
26
28
|
- 2.7
|
27
|
-
# Ubuntu 19.10
|
28
|
-
- 2.5
|
29
|
-
# Mac v11 Big Sur
|
30
|
-
# - 2.6?
|
31
|
-
# Mac v10.15 Catalina
|
32
|
-
- 2.6
|
33
|
-
# Mac v10.14 Mojave
|
34
|
-
- 2.3.7
|
35
29
|
steps:
|
36
30
|
- uses: actions/checkout@v2
|
37
31
|
- name: Update package
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.8.1](https://github.com/cantino/reckon/tree/v0.8.1) (2022-07-02)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/cantino/reckon/compare/v0.8.0...v0.8.1)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Reckon files every transaction \(incoming and outgoing\) as Income:Unknown [\#116](https://github.com/cantino/reckon/issues/116)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- fix bugs with test.sh [\#117](https://github.com/cantino/reckon/pull/117) ([benprew](https://github.com/benprew))
|
14
|
+
|
3
15
|
## [v0.8.0](https://github.com/cantino/reckon/tree/v0.8.0) (2021-08-08)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/cantino/reckon/compare/v0.7.2...v0.8.0)
|
@@ -222,7 +234,6 @@
|
|
222
234
|
- Unattended mode and custom tokens support [\#47](https://github.com/cantino/reckon/pull/47) ([vzctl](https://github.com/vzctl))
|
223
235
|
- \[RFC\] Implement issue \#40: Tab completion [\#46](https://github.com/cantino/reckon/pull/46) ([BlackEdder](https://github.com/BlackEdder))
|
224
236
|
- set readline to allow for backspace in ask dialog [\#44](https://github.com/cantino/reckon/pull/44) ([mrtazz](https://github.com/mrtazz))
|
225
|
-
- Fix --encoding option [\#41](https://github.com/cantino/reckon/pull/41) ([mamciek](https://github.com/mamciek))
|
226
237
|
|
227
238
|
## [v0.3.10](https://github.com/cantino/reckon/tree/v0.3.10) (2014-08-16)
|
228
239
|
|
@@ -230,6 +241,7 @@
|
|
230
241
|
|
231
242
|
**Merged pull requests:**
|
232
243
|
|
244
|
+
- Fix --encoding option [\#41](https://github.com/cantino/reckon/pull/41) ([mamciek](https://github.com/mamciek))
|
233
245
|
- Bumped version number [\#37](https://github.com/cantino/reckon/pull/37) ([BlackEdder](https://github.com/BlackEdder))
|
234
246
|
|
235
247
|
## [v0.3.9](https://github.com/cantino/reckon/tree/v0.3.9) (2014-02-20)
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
reckon (0.8.
|
4
|
+
reckon (0.8.1)
|
5
5
|
chronic (>= 0.3.0)
|
6
6
|
highline (>= 1.5.2)
|
7
|
+
matrix (>= 0.4.2)
|
7
8
|
rchardet (>= 1.8.0)
|
8
9
|
|
9
10
|
GEM
|
@@ -13,6 +14,7 @@ GEM
|
|
13
14
|
coderay (1.1.2)
|
14
15
|
diff-lcs (1.3)
|
15
16
|
highline (2.0.3)
|
17
|
+
matrix (0.4.2)
|
16
18
|
method_source (0.9.2)
|
17
19
|
pry (0.12.2)
|
18
20
|
coderay (~> 1.1.0)
|
data/bin/build-new-version.sh
CHANGED
@@ -5,7 +5,7 @@ set -e
|
|
5
5
|
VERSION=$1
|
6
6
|
|
7
7
|
echo "Install github_changelog_generator"
|
8
|
-
|
8
|
+
gem install --user github_changelog_generator
|
9
9
|
|
10
10
|
echo "Update 'lib/reckon/version.rb'"
|
11
11
|
echo -e "module Reckon\n VERSION=\"$VERSION\"\nend" > lib/reckon/version.rb
|
data/lib/reckon/version.rb
CHANGED
data/reckon.gemspec
CHANGED
data/spec/integration/test.sh
CHANGED
@@ -58,7 +58,7 @@ cli_test () {
|
|
58
58
|
OUTPUT_FILE=$(mktemp)
|
59
59
|
CLI_CMD="$RECKON_CMD --table-output-file $OUTPUT_FILE $(cat test_args)"
|
60
60
|
TEST_CMD="expect -d -c 'spawn $CLI_CMD' cli_input.exp"
|
61
|
-
eval $TEST_CMD 2>&1
|
61
|
+
eval "$TEST_CMD" 2>&1
|
62
62
|
ERROR=0
|
63
63
|
TEST_DIFF=$(diff -u "$OUTPUT_FILE" expected_output)
|
64
64
|
|
@@ -73,7 +73,7 @@ cli_test () {
|
|
73
73
|
unattended_test() {
|
74
74
|
OUTPUT_FILE=$(mktemp)
|
75
75
|
TEST_CMD="$RECKON_CMD -o $OUTPUT_FILE $(cat test_args)"
|
76
|
-
eval $TEST_CMD 2>&1
|
76
|
+
eval "$TEST_CMD" 2>&1
|
77
77
|
ERROR=0
|
78
78
|
|
79
79
|
compare_output "$OUTPUT_FILE"
|
@@ -114,11 +114,13 @@ compare_output_for () {
|
|
114
114
|
EXPECTED_FILE=$(mktemp)
|
115
115
|
ACTUAL_FILE=$(mktemp)
|
116
116
|
|
117
|
-
|
118
|
-
|
117
|
+
EXPECTED_CMD="$LEDGER -f output.ledger r >$EXPECTED_FILE"
|
118
|
+
echo "$EXPECTED_CMD"
|
119
|
+
eval "$EXPECTED_CMD" || return 1
|
119
120
|
|
120
|
-
|
121
|
-
|
121
|
+
ACTUAL_CMD="$LEDGER -f \"$OUTPUT_FILE\" r"
|
122
|
+
echo "running $ACTUAL_CMD"
|
123
|
+
eval $ACTUAL_CMD >$ACTUAL_FILE || return 1
|
122
124
|
|
123
125
|
TEST_DIFF=$(diff -u "$EXPECTED_FILE" "$ACTUAL_FILE")
|
124
126
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reckon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Cantino
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -96,6 +96,20 @@ dependencies:
|
|
96
96
|
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: 1.8.0
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: matrix
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 0.4.2
|
106
|
+
type: :runtime
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.4.2
|
99
113
|
description: Reckon automagically converts CSV files for use with the command-line
|
100
114
|
accounting tool Ledger. It also helps you to select the correct accounts associated
|
101
115
|
with the CSV data using Bayesian machine learning.
|
@@ -282,9 +296,142 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
296
|
- !ruby/object:Gem::Version
|
283
297
|
version: '0'
|
284
298
|
requirements: []
|
285
|
-
rubygems_version: 3.
|
299
|
+
rubygems_version: 3.3.7
|
286
300
|
signing_key:
|
287
301
|
specification_version: 4
|
288
302
|
summary: Utility for interactively converting and labeling CSV files for the Ledger
|
289
303
|
accounting tool.
|
290
|
-
test_files:
|
304
|
+
test_files:
|
305
|
+
- spec/cosine_training_and_test.rb
|
306
|
+
- spec/data_fixtures/51-sample.csv
|
307
|
+
- spec/data_fixtures/51-tokens.yml
|
308
|
+
- spec/data_fixtures/73-sample.csv
|
309
|
+
- spec/data_fixtures/73-tokens.yml
|
310
|
+
- spec/data_fixtures/73-transactions.ledger
|
311
|
+
- spec/data_fixtures/85-date-example.csv
|
312
|
+
- spec/data_fixtures/austrian_example.csv
|
313
|
+
- spec/data_fixtures/bom_utf8_file.csv
|
314
|
+
- spec/data_fixtures/broker_canada_example.csv
|
315
|
+
- spec/data_fixtures/chase.csv
|
316
|
+
- spec/data_fixtures/danish_kroner_nordea_example.csv
|
317
|
+
- spec/data_fixtures/english_date_example.csv
|
318
|
+
- spec/data_fixtures/extratofake.csv
|
319
|
+
- spec/data_fixtures/french_example.csv
|
320
|
+
- spec/data_fixtures/german_date_example.csv
|
321
|
+
- spec/data_fixtures/harder_date_example.csv
|
322
|
+
- spec/data_fixtures/ing.csv
|
323
|
+
- spec/data_fixtures/intuit_mint_example.csv
|
324
|
+
- spec/data_fixtures/invalid_header_example.csv
|
325
|
+
- spec/data_fixtures/inversed_credit_card.csv
|
326
|
+
- spec/data_fixtures/nationwide.csv
|
327
|
+
- spec/data_fixtures/simple.csv
|
328
|
+
- spec/data_fixtures/some_other.csv
|
329
|
+
- spec/data_fixtures/spanish_date_example.csv
|
330
|
+
- spec/data_fixtures/suntrust.csv
|
331
|
+
- spec/data_fixtures/test_money_column.csv
|
332
|
+
- spec/data_fixtures/tokens.yaml
|
333
|
+
- spec/data_fixtures/two_money_columns.csv
|
334
|
+
- spec/data_fixtures/yyyymmdd_date_example.csv
|
335
|
+
- spec/integration/another_bank_example/input.csv
|
336
|
+
- spec/integration/another_bank_example/output.ledger
|
337
|
+
- spec/integration/another_bank_example/test_args
|
338
|
+
- spec/integration/ask_for_account/cli_input.exp
|
339
|
+
- spec/integration/ask_for_account/expected_output
|
340
|
+
- spec/integration/ask_for_account/input.csv
|
341
|
+
- spec/integration/ask_for_account/test_args
|
342
|
+
- spec/integration/austrian_example/input.csv
|
343
|
+
- spec/integration/austrian_example/output.ledger
|
344
|
+
- spec/integration/austrian_example/test_args
|
345
|
+
- spec/integration/bom_utf8_file/input.csv
|
346
|
+
- spec/integration/bom_utf8_file/output.ledger
|
347
|
+
- spec/integration/bom_utf8_file/test_args
|
348
|
+
- spec/integration/broker_canada_example/input.csv
|
349
|
+
- spec/integration/broker_canada_example/output.ledger
|
350
|
+
- spec/integration/broker_canada_example/test_args
|
351
|
+
- spec/integration/chase/account_tokens_and_regex/output.ledger
|
352
|
+
- spec/integration/chase/account_tokens_and_regex/test_args
|
353
|
+
- spec/integration/chase/account_tokens_and_regex/tokens.yml
|
354
|
+
- spec/integration/chase/default_account_names/output.ledger
|
355
|
+
- spec/integration/chase/default_account_names/test_args
|
356
|
+
- spec/integration/chase/input.csv
|
357
|
+
- spec/integration/chase/learn_from_existing/learn.ledger
|
358
|
+
- spec/integration/chase/learn_from_existing/output.ledger
|
359
|
+
- spec/integration/chase/learn_from_existing/test_args
|
360
|
+
- spec/integration/chase/simple/output.ledger
|
361
|
+
- spec/integration/chase/simple/test_args
|
362
|
+
- spec/integration/danish_kroner_nordea_example/input.csv
|
363
|
+
- spec/integration/danish_kroner_nordea_example/output.ledger
|
364
|
+
- spec/integration/danish_kroner_nordea_example/test_args
|
365
|
+
- spec/integration/english_date_example/input.csv
|
366
|
+
- spec/integration/english_date_example/output.ledger
|
367
|
+
- spec/integration/english_date_example/test_args
|
368
|
+
- spec/integration/extratofake/input.csv
|
369
|
+
- spec/integration/extratofake/output.ledger
|
370
|
+
- spec/integration/extratofake/test_args
|
371
|
+
- spec/integration/french_example/input.csv
|
372
|
+
- spec/integration/french_example/output.ledger
|
373
|
+
- spec/integration/french_example/test_args
|
374
|
+
- spec/integration/german_date_example/input.csv
|
375
|
+
- spec/integration/german_date_example/output.ledger
|
376
|
+
- spec/integration/german_date_example/test_args
|
377
|
+
- spec/integration/harder_date_example/input.csv
|
378
|
+
- spec/integration/harder_date_example/output.ledger
|
379
|
+
- spec/integration/harder_date_example/test_args
|
380
|
+
- spec/integration/ing/input.csv
|
381
|
+
- spec/integration/ing/output.ledger
|
382
|
+
- spec/integration/ing/test_args
|
383
|
+
- spec/integration/intuit_mint_example/input.csv
|
384
|
+
- spec/integration/intuit_mint_example/output.ledger
|
385
|
+
- spec/integration/intuit_mint_example/test_args
|
386
|
+
- spec/integration/invalid_header_example/input.csv
|
387
|
+
- spec/integration/invalid_header_example/output.ledger
|
388
|
+
- spec/integration/invalid_header_example/test_args
|
389
|
+
- spec/integration/inversed_credit_card/input.csv
|
390
|
+
- spec/integration/inversed_credit_card/output.ledger
|
391
|
+
- spec/integration/inversed_credit_card/test_args
|
392
|
+
- spec/integration/ledger_date_format/compare_cmds
|
393
|
+
- spec/integration/ledger_date_format/input.csv
|
394
|
+
- spec/integration/ledger_date_format/output.ledger
|
395
|
+
- spec/integration/ledger_date_format/test_args
|
396
|
+
- spec/integration/nationwide/input.csv
|
397
|
+
- spec/integration/nationwide/output.ledger
|
398
|
+
- spec/integration/nationwide/test_args
|
399
|
+
- spec/integration/regression/issue_51_account_tokens/input.csv
|
400
|
+
- spec/integration/regression/issue_51_account_tokens/output.ledger
|
401
|
+
- spec/integration/regression/issue_51_account_tokens/test_args
|
402
|
+
- spec/integration/regression/issue_51_account_tokens/tokens.yml
|
403
|
+
- spec/integration/regression/issue_64_date_column/input.csv
|
404
|
+
- spec/integration/regression/issue_64_date_column/output.ledger
|
405
|
+
- spec/integration/regression/issue_64_date_column/test_args
|
406
|
+
- spec/integration/regression/issue_73_account_token_matching/input.csv
|
407
|
+
- spec/integration/regression/issue_73_account_token_matching/output.ledger
|
408
|
+
- spec/integration/regression/issue_73_account_token_matching/test_args
|
409
|
+
- spec/integration/regression/issue_73_account_token_matching/tokens.yml
|
410
|
+
- spec/integration/regression/issue_85_date_example/input.csv
|
411
|
+
- spec/integration/regression/issue_85_date_example/output.ledger
|
412
|
+
- spec/integration/regression/issue_85_date_example/test_args
|
413
|
+
- spec/integration/spanish_date_example/input.csv
|
414
|
+
- spec/integration/spanish_date_example/output.ledger
|
415
|
+
- spec/integration/spanish_date_example/test_args
|
416
|
+
- spec/integration/suntrust/input.csv
|
417
|
+
- spec/integration/suntrust/output.ledger
|
418
|
+
- spec/integration/suntrust/test_args
|
419
|
+
- spec/integration/test.sh
|
420
|
+
- spec/integration/test_money_column/input.csv
|
421
|
+
- spec/integration/test_money_column/output.ledger
|
422
|
+
- spec/integration/test_money_column/test_args
|
423
|
+
- spec/integration/two_money_columns/input.csv
|
424
|
+
- spec/integration/two_money_columns/output.ledger
|
425
|
+
- spec/integration/two_money_columns/test_args
|
426
|
+
- spec/integration/yyyymmdd_date_example/input.csv
|
427
|
+
- spec/integration/yyyymmdd_date_example/output.ledger
|
428
|
+
- spec/integration/yyyymmdd_date_example/test_args
|
429
|
+
- spec/reckon/app_spec.rb
|
430
|
+
- spec/reckon/csv_parser_spec.rb
|
431
|
+
- spec/reckon/date_column_spec.rb
|
432
|
+
- spec/reckon/ledger_parser_spec.rb
|
433
|
+
- spec/reckon/money_column_spec.rb
|
434
|
+
- spec/reckon/money_spec.rb
|
435
|
+
- spec/reckon/options_spec.rb
|
436
|
+
- spec/spec.opts
|
437
|
+
- spec/spec_helper.rb
|