Commit Graph

5372 Commits

Author SHA1 Message Date
Nicholas Niro
f0914ff08e lib: Added a new much more thorough test to MultiBalanceReports.
This test makes sure that -H works correctly and it does not show
empty accounts.
2017-07-15 08:02:03 +01:00
Nicholas Niro
9873bcfcba lib: Added a new transaction to samplejournal.
The new entry effectively adds a loan which is placed in the checking account.
This loan is then closed by the "pay off" transaction (which was already
present).

This is mainly to be used as a test point for the -H option; to make
sure -H does not show empty accounts.

All previous tests were changed to reflect the new change.
The documentation of the journal module was updated too.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a7f6b551c5 lib: Implemented a testing context for the module MultiBalanceReports.
Of the 2 tests, the first is a simple test on a specific period.
The second is expected to fail at this point until the new upcoming
code to fix the issue with the history option is implemented.

For the record : this issue happens when we use the -H flag for a period
that does not contain any transactions. Currently, the ending balance
values are only taken into account if the current period contains
a Transaction containing one of the previous populated accounts.

For example, if we have a statement on the 2008/01/01 for $1
and we do a command (with -H) to check the value on the
(without transactions) 2008/01/02, we will not get the $1 from
2008/01/01. In that same example, if we had a transaction for the same
account as 2008/01/01 in say 2008/01/03 then the -H command would
successfully show the statement from 2008/01/03 with the initial amount
that we set in 2008/01/01.
2017-07-15 08:02:03 +01:00
Nicholas Niro
fe2a1b35da lib: Added 2 new tests to BalanceReport.
These tests verify the behavior when we input a very specific period.
The second test is meant to make sure that the new upcoming code in
MultiBalanceReports will not change anything in the behavior of
the module BalanceReport.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a204908be6 lib: Added a comment to explain the type MultiBalanceReportTotals 2017-07-15 08:02:03 +01:00
Simon Michael
5079727f3b site: download: note sierra/ghc issue, provide older ghc commands 2017-07-13 09:21:16 +01:00
Simon Michael
874f58ed9b site: download: note an issue when global resolver is too old 2017-07-13 08:50:46 +01:00
Simon Michael
711590cef6 site: download: streamline notes a bit 2017-07-13 08:45:09 +01:00
Simon Michael
e908d96fd9 bin: new hledger-tags addon, lists tags in matched transactions 2017-07-12 22:11:36 +01:00
Simon Michael
15e8d77968 tools: travis: skip the build if only markdown files are changed (2) 2017-07-12 07:54:56 +01:00
Simon Michael
f8674f46c0 tools: travis: skip the build if only markdown files are changed
Credit: tritoch at https://github.com/travis-ci/travis-ci/issues/6301#issuecomment-313559284
2017-07-12 07:41:06 +01:00
Simon Michael
1831f83a81 tools: appveyor: fix complaint
[travis skip]
2017-07-12 06:59:53 +01:00
Simon Michael
9e012ba30f site: link to appveyor artifacts dir
[ci skip]
2017-07-12 06:53:50 +01:00
Simon Michael
547868cadc site: download: less pleading
[ci skip]
2017-07-11 06:51:13 +01:00
Simon Michael
3f0b2524d6 site: download: sandstorm help wanted
[ci skip]
2017-07-11 06:27:40 +01:00
Simon Michael
5228171fa0 site: download: tweaks
[ci skip]
2017-07-11 06:00:24 +01:00
Simon Michael
46c0369bb8 site: download: better advertisement of windows/mac limitations
and remove debian limitation, I think it's resolved.

[ci skip]
2017-07-11 05:49:21 +01:00
Simon Michael
27ab22fc37 docs: readme: add appveyor badge
[ci skip]
2017-07-11 05:49:15 +01:00
Simon Michael
1b72d6c23c site: download, contributing: appveyor link tweaks #424
[ci skip]
2017-07-11 05:09:46 +01:00
Simon Michael
ef5476d8c3 tools: appveyor: note how ci skip works
[ci skip]
2017-07-11 04:59:37 +01:00
Simon Michael
0bc3f8f23e tools: appveyor: try preserving stack root cache more #424
[ci skip]
2017-07-11 04:51:24 +01:00
Simon Michael
4851000495 tools: appveyor: caching tweaks
[ci skip]
2017-07-11 04:33:42 +01:00
Simon Michael
337ab19190 site: download, contributing: link appveyor & binaries again #424
[ci skip]
2017-07-11 04:33:34 +01:00
Simon Michael
e9b6d0b9d0 tools: appveyor: more thorough -j1 workaround for permission error #424 2017-07-11 04:01:06 +01:00
Simon Michael
69c41cdd99 cli, help: usage tweaks
[ci skip]
2017-07-08 08:34:45 +01:00
Simon Michael
bd2d9b829c help: yet another manual tweak; update builtin manuals
[ci skip]
2017-07-08 08:15:33 +01:00
Simon Michael
ed47bc52ff help: update manual
[ci skip]
2017-07-08 08:06:52 +01:00
Simon Michael
5a033fad89 help: update manual
[ci skip]
2017-07-08 08:04:59 +01:00
Simon Michael
9938aa5e79 help: allow substring matching
[ci skip]
2017-07-08 07:37:15 +01:00
Simon Michael
5e69d6de84 help: use more standard names for tool manuals
[ci skip]
2017-07-08 07:36:52 +01:00
Simon Michael
6df81962ed cli, bin: mention -h in commands list and addons' usage messages
[ci skip]
2017-07-08 06:49:25 +01:00
Simon Michael
50977288bb doc: updates (#579) 2017-07-07 15:58:26 +01:00
Simon Michael
9195989979 doc: update builtin manuals 2017-07-07 15:42:22 +01:00
Simon Michael
9eb1520b6f help: add --info/--man/--pager/--cat flags, & choose best one by default (#579)
You can select a docs format/viewer with one of the `--info`, `--man`, `--pager`, `--cat` flags.
Otherwise, it will use info if available, otherwise man if available,
otherwise $PAGER if defined, otherwise less if available, otherwise it
prints on stdout (and always prints on stdout when piped).

Preferring info over man might not suit everyone.
2017-07-07 15:42:22 +01:00
Simon Michael
daa9550929 cli: fix -h/--help debug output (#579) 2017-07-07 15:42:16 +01:00
Simon Michael
6e00247df3 rewrite: make test use compiled version like the others
That's the current most robust way. Otherwise, it can fail due to
stack's progress output as it reinstalls hledger libs, and that
reinstallation also forces all the addons to be relinked.
2017-07-07 02:14:29 +01:00
Simon Michael
ee735514fe doc: update builtin manuals 2017-07-07 02:08:38 +01:00
Simon Michael
7e896572a7 make --help and -h the same, drop --man and --info for now (#579) 2017-07-07 02:08:34 +01:00
Simon Michael
23c77a3ae8 doc: mockups: new help notes (#579)
[ci skip]
2017-07-07 02:08:14 +01:00
Simon Michael
190bab5c33 ui: help: tweak key order 2017-07-06 14:11:23 +01:00
Simon Michael
38752565a9 csv: test stderr output more accurately 2017-07-06 14:10:54 +01:00
Simon Michael
b3b33336b4 csv: show the "creating/using rules file" message only with --debug 2017-07-06 14:07:46 +01:00
Simon Michael
817292a1dd bin: mention make addons in readme 2017-07-05 18:27:44 +01:00
Simon Michael
0b6b063fcc check-dupes: requires the hledger package too (#580) 2017-07-05 18:27:13 +01:00
Simon Michael
e94f04311d csv: fix multiple includes in one rules file 2017-07-05 16:08:13 +01:00
Simon Michael
6614aab5d7 csv: add newest-first directive for more robust same-day ordering 2017-07-05 15:24:17 +01:00
Simon Michael
28e8c76a8e csv: rename csv-read.test for easy file finding 2017-07-05 14:49:48 +01:00
Simon Michael
d4268b4c2e tools: make draft-changelog-start, draft-changelog-update
[ci skip]
2017-07-05 08:17:01 +01:00
Simon Michael
d4457931ef cli: document journalApplyValue 2017-07-05 08:08:20 +01:00
Simon Michael
9a5903a505 site: relnote tweaks
[ci skip]
2017-07-01 19:13:37 +01:00