reckon 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -3
- data/Gemfile.lock +1 -1
- data/README.md +12 -10
- data/bin/build-new-version.sh +8 -8
- data/lib/reckon/options.rb +3 -1
- data/lib/reckon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13ec00f6b1277d98d6df6264af61020310ab5bf61197412a116a2f61901e6214
|
4
|
+
data.tar.gz: cf1b1e21a64fac57a5796b64f53da971a48c4bb3f439be94fd847441c5b36a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 450fb569cf8509563edd5fb36239965b9cd29b28d544399bcc10cf510a146d68fb56c3dd1737a1904cd7f23ab3453128d522fb07159068bbc6ed2d44cb0fe1d6
|
7
|
+
data.tar.gz: 461bade5035f16c278131102df52b91e39a365b18c3e73875730616b5489f07f7c0528094da13a06558791b4238d1d6cc495452b14c917b15eef5eea2719e909
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [v0.7.1](https://github.com/cantino/reckon/tree/v0.7.1) (2021-02-06)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/cantino/reckon/compare/v0.
|
5
|
+
[Full Changelog](https://github.com/cantino/reckon/compare/v0.7.0...v0.7.1)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- bug when asking for account name [\#103](https://github.com/cantino/reckon/issues/103)
|
10
|
+
|
11
|
+
## [v0.7.0](https://github.com/cantino/reckon/tree/v0.7.0) (2021-02-06)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/cantino/reckon/compare/v0.6.2...v0.7.0)
|
6
14
|
|
7
15
|
**Closed issues:**
|
8
16
|
|
@@ -181,6 +189,7 @@
|
|
181
189
|
**Merged pull requests:**
|
182
190
|
|
183
191
|
- Better ISO 8601 dates support [\#49](https://github.com/cantino/reckon/pull/49) ([vzctl](https://github.com/vzctl))
|
192
|
+
- Unattended mode and custom tokens support [\#47](https://github.com/cantino/reckon/pull/47) ([vzctl](https://github.com/vzctl))
|
184
193
|
- \[RFC\] Implement issue \#40: Tab completion [\#46](https://github.com/cantino/reckon/pull/46) ([BlackEdder](https://github.com/BlackEdder))
|
185
194
|
- set readline to allow for backspace in ask dialog [\#44](https://github.com/cantino/reckon/pull/44) ([mrtazz](https://github.com/mrtazz))
|
186
195
|
|
@@ -204,7 +213,6 @@
|
|
204
213
|
|
205
214
|
**Merged pull requests:**
|
206
215
|
|
207
|
-
- Unattended mode and custom tokens support [\#47](https://github.com/cantino/reckon/pull/47) ([vzctl](https://github.com/vzctl))
|
208
216
|
- Added spec for csv files from Broker Canada [\#36](https://github.com/cantino/reckon/pull/36) ([BlackEdder](https://github.com/BlackEdder))
|
209
217
|
- Date format [\#35](https://github.com/cantino/reckon/pull/35) ([BlackEdder](https://github.com/BlackEdder))
|
210
218
|
- Added example from a french bank [\#34](https://github.com/cantino/reckon/pull/34) ([BlackEdder](https://github.com/BlackEdder))
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -42,32 +42,34 @@ Learn more:
|
|
42
42
|
-o, --output-file FILE The ledger file to append to
|
43
43
|
-l, --learn-from FILE An existing ledger file to learn accounts from
|
44
44
|
--ignore-columns 1,2,5
|
45
|
-
Columns to ignore
|
45
|
+
Columns to ignore, starts from 1
|
46
46
|
--money-column 2
|
47
|
-
|
47
|
+
Column number of the money column, starts from 1
|
48
48
|
--raw-money
|
49
49
|
Don't format money column (for stocks)
|
50
50
|
--date-column 3
|
51
|
-
|
51
|
+
Column number of the date column, starts from 1
|
52
52
|
--contains-header [N]
|
53
|
-
|
53
|
+
Skip N header rows - default 1
|
54
54
|
--csv-separator ','
|
55
|
-
|
55
|
+
CSV separator (default ',')
|
56
56
|
--comma-separates-cents
|
57
|
-
Use comma
|
57
|
+
Use comma to separate cents ($100,50 vs. $100.50)
|
58
58
|
--encoding 'UTF-8'
|
59
|
-
Specify an encoding for the CSV file
|
60
|
-
-c, --currency '$' Currency symbol to use
|
59
|
+
Specify an encoding for the CSV file
|
60
|
+
-c, --currency '$' Currency symbol to use - default $ (ex £, EUR)
|
61
61
|
--date-format '%d/%m/%Y'
|
62
62
|
Force the date format (see Ruby DateTime strftime)
|
63
|
-
-u, --unattended Don't ask questions and guess all the accounts automatically.
|
63
|
+
-u, --unattended Don't ask questions and guess all the accounts automatically. Use with --learn-from or --account-tokens options.
|
64
64
|
-t, --account-tokens FILE YAML file with manually-assigned tokens for each account (see README)
|
65
65
|
--default-into-account NAME
|
66
66
|
Default into account
|
67
67
|
--default-outof-account NAME
|
68
68
|
Default 'out of' account
|
69
|
+
--fail-on-unknown-account
|
70
|
+
Fail on unmatched transactions.
|
69
71
|
--suffixed
|
70
|
-
|
72
|
+
Append currency symbol as a suffix.
|
71
73
|
-h, --help Show this message
|
72
74
|
--version Show version
|
73
75
|
|
data/bin/build-new-version.sh
CHANGED
@@ -11,16 +11,16 @@ echo "Update 'lib/reckon/version.rb'"
|
|
11
11
|
echo -e "module Reckon\n VERSION=\"$VERSION\"\nend" > lib/reckon/version.rb
|
12
12
|
echo "Run `bundle install` to build updated Gemfile.lock"
|
13
13
|
bundle install
|
14
|
-
echo "
|
15
|
-
github_changelog_generator -u cantino -p reckon -t $TOKEN --future-release $VERSION
|
16
|
-
echo "
|
14
|
+
echo "Run changelog generator (requires $TOKEN to be your github token)"
|
15
|
+
github_changelog_generator -u cantino -p reckon -t $TOKEN --future-release v$VERSION
|
16
|
+
echo "Commit changes"
|
17
17
|
git add CHANGELOG.md lib/reckon/version.rb Gemfile.lock
|
18
18
|
git commit -m "Release $VERSION"
|
19
|
-
echo "
|
20
|
-
gem build reckon.gemspec
|
21
|
-
echo "5. Tag release"
|
19
|
+
echo "Tag release"
|
22
20
|
git tag v$VERSION
|
21
|
+
echo "Build new gem"
|
22
|
+
gem build reckon.gemspec
|
23
23
|
echo "Push changes and tags"
|
24
|
-
echo git push && git push --tags
|
24
|
+
echo "git push && git push --tags"
|
25
25
|
echo "Push new gem"
|
26
|
-
echo gem push reckon-$VERSION.gem
|
26
|
+
echo "gem push reckon-$VERSION.gem"
|
data/lib/reckon/options.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Reckon
|
2
2
|
class Options
|
3
|
+
@@cli = HighLine.new
|
4
|
+
|
3
5
|
def self.parse(args = ARGV, stdin = $stdin)
|
4
6
|
options = { output_file: $stdout }
|
5
7
|
OptionParser.new do |opts|
|
@@ -134,7 +136,7 @@ module Reckon
|
|
134
136
|
unless options[:bank_account]
|
135
137
|
raise "Must specify --account in unattended mode" if options[:unattended]
|
136
138
|
|
137
|
-
options[:bank_account] = @@cli.ask("What is this account named in Ledger
|
139
|
+
options[:bank_account] = @@cli.ask("What is this account named in Ledger?\n") do |q|
|
138
140
|
q.readline = true
|
139
141
|
q.validate = /^.{2,}$/
|
140
142
|
q.default = "Assets:Bank:Checking"
|
data/lib/reckon/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.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: 2021-02-
|
13
|
+
date: 2021-02-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|