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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e7bf4198ae8265e025b20821adea75c3acc7cc9493298ac6e7604b342e04bb1
4
- data.tar.gz: 4e7e9be82a15f1aef0ab7667e4a751b7e52472673fe0f57359e5d7c5fdac80f6
3
+ metadata.gz: 13ec00f6b1277d98d6df6264af61020310ab5bf61197412a116a2f61901e6214
4
+ data.tar.gz: cf1b1e21a64fac57a5796b64f53da971a48c4bb3f439be94fd847441c5b36a0f
5
5
  SHA512:
6
- metadata.gz: eb4ce5f4bcb0b9663b5ab89c5071086bf6b13c157f4d45d1608dc1b530b076b82402b25003b4156882b8c56441f66c1cc97867cd781cb8a6b8386804eddb0673
7
- data.tar.gz: ec5941351ad06d6bf029af5b47a9453a611c4a17aa14bddbe8b5b2cf4584bcdceb134a0c9016d32f046832ea507a611807a159a2f85a673374bbf591a063a42a
6
+ metadata.gz: 450fb569cf8509563edd5fb36239965b9cd29b28d544399bcc10cf510a146d68fb56c3dd1737a1904cd7f23ab3453128d522fb07159068bbc6ed2d44cb0fe1d6
7
+ data.tar.gz: 461bade5035f16c278131102df52b91e39a365b18c3e73875730616b5489f07f7c0528094da13a06558791b4238d1d6cc495452b14c917b15eef5eea2719e909
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## [0.7.0](https://github.com/cantino/reckon/tree/0.7.0) (2021-02-06)
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.6.2...0.7.0)
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reckon (0.7.0)
4
+ reckon (0.7.1)
5
5
  chronic (>= 0.3.0)
6
6
  highline (>= 1.5.2)
7
7
  rchardet (>= 1.8.0)
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 in the CSV file - the first column is column 1
45
+ Columns to ignore, starts from 1
46
46
  --money-column 2
47
- Specify the money column instead of letting Reckon guess - the first column is column 1
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
- Specify the date column instead of letting Reckon guess - the first column is column 1
51
+ Column number of the date column, starts from 1
52
52
  --contains-header [N]
53
- The first row of the CSV is a header and should be skipped. Optionally add the number of rows to skip.
53
+ Skip N header rows - default 1
54
54
  --csv-separator ','
55
- Separator for parsing the CSV - default is comma.
55
+ CSV separator (default ',')
56
56
  --comma-separates-cents
57
- Use comma instead of period to deliminate dollars from cents when parsing ($100,50 instead of $100.50)
57
+ Use comma to separate cents ($100,50 vs. $100.50)
58
58
  --encoding 'UTF-8'
59
- Specify an encoding for the CSV file; not usually needed
60
- -c, --currency '$' Currency symbol to use, defaults to $ (£, EUR)
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. Used with --learn-from or --account-tokens options.
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
- If --currency should be used as a suffix. Defaults to false.
72
+ Append currency symbol as a suffix.
71
73
  -h, --help Show this message
72
74
  --version Show version
73
75
 
@@ -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 "3. Run changelog generator (requires $TOKEN to be your github token)"
15
- github_changelog_generator -u cantino -p reckon -t $TOKEN --future-release $VERSION
16
- echo "4. Commit changes"
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 "7. Build new gem"
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"
@@ -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? ") do |q|
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"
@@ -1,3 +1,3 @@
1
1
  module Reckon
2
- VERSION="0.7.0"
2
+ VERSION="0.7.1"
3
3
  end
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.0
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-06 00:00:00.000000000 Z
13
+ date: 2021-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec