ldgr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -5
  3. data/lib/ldgr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ee16cbdc1fb5e552a788d70eff66c55a6583f34
4
- data.tar.gz: 497b5ab7dc28b3bc8c15e0615af5fe7a2aa27834
3
+ metadata.gz: 1cdd71b68327e76f3c01194a9a24e5e2c053b310
4
+ data.tar.gz: 55fb61cbb6400393d965e131165934c015d64d10
5
5
  SHA512:
6
- metadata.gz: 1f48fcb8df5a50017812d10f59ae110e5d8c15d4c8127a62365be7df02599ba194ac9f7f5847983006c667708d4406b90fddb080f2568670a2a661ff8d53b04c
7
- data.tar.gz: e7d3ee64ad5fe0b0dd3b76ffacf695c59c165996915e626d0a362a95fe385baf1042fab12718141433fc5a5db67fe18b3ae035b647d2e6045fbf5893297aa332
6
+ metadata.gz: 2ca3cc59260eb2b85bf97a9a14a9213320c3f66994fb64b1e8b486f264dd9e616d190e2b7827f1ea124c9dac88ccce5215dbe4d0754a2011dce52a51ea2cd570
7
+ data.tar.gz: e646c0f9cdc2505bd5300b0eccbc4fdc835e83291caa6a04dd897d289a6e196be715315bc5c779614f8ca17f605a4bb6f84188894646defd4aa47d1da4a0b2e2
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Ldgr
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ldgr`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Ldgr is a command-line tool for adding, sorting and tagging transactions in your Ledger file.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,38 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Type `ldgr -h` at the command-line to see available commands and options.
24
+
25
+ ## CLI
26
+ ```sh
27
+ ldgr add --payee Brandon \
28
+ --amount 1000 \
29
+ --account Something \
30
+ --equity Cash \
31
+ --date 2017-02-01 \
32
+ --effective 2017-02-03 \
33
+ --cleared`
34
+ ldgr clear
35
+ ldgr sort
36
+ ```
37
+
38
+ ## Library
39
+
40
+ ~~~ruby
41
+ transaction = Ldgr::Transaction.new do |t|
42
+ t.payee = 'Brandon'
43
+ t.amount = 1000
44
+ t.account = 'Something'
45
+ t.equity = 'Cash
46
+ t.date = Date.today + 1'
47
+ t.effective = Date.today + 10'
48
+ t.cleared = true
49
+ end
50
+ ~~~
51
+
52
+ ## TODO
53
+
54
+ Currently, the Ledger file is a constant set to `~/.config/ledger/transactions.dat`. This should probably be customizable, possibly with a `.ldgrrc` in the future. Also, the default currency is Japanese Yen. You can change this the `--currency $` flag on the command line or setting it in the `Transaction.new` block. In the future, this should be set in an rc file.
26
55
 
27
56
  ## Development
28
57
 
@@ -32,7 +61,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
61
 
33
62
  ## Contributing
34
63
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/Brandon Pittman/ldgr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
64
+ Bug reports and pull requests are welcome on GitHub at https://github.com/brandonpittman/ldgr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
65
 
37
66
 
38
67
  ## License
@@ -1,3 +1,3 @@
1
1
  module Ldgr
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Pittman