Commit Graph

6693 Commits

Author SHA1 Message Date
Joseph Weston
1fca47cf18 lib: update documentation for globs in 'include' directive 2018-07-26 06:12:31 +01:00
Joseph Weston
f2c1586238 lib: sort the matched include files lexicographically
Now the files are included in the same order as they would be
listed by 'ls'.
2018-07-26 06:12:31 +01:00
Joseph Weston
e8c362e3e5 lib: modify testcase to test for lexicographic inclusion order 2018-07-26 06:12:31 +01:00
Joseph Weston
1ec16c2dc0 lib: explicitly specify that the 'Glob' package should be used
Without this there are conflicts with the 'filemanip' package,
which itself exports a module 'System.FilePath.Glob'.
2018-07-26 06:12:31 +01:00
Joseph Weston
c69b16d826 lib: prefer use of 'parseErrorAt' to generic 'fail'
'fail' will just terminate the current parse branch, whereas here
we have encountered a definite error. Also bring the code to
get the current working directory inside 'getFilePaths', as it
logically belongs there.
2018-07-26 06:12:31 +01:00
Joseph Weston
c472bb6ff3 lib: remove correct files at test end, and do not remove recursively
We are not removing directories, so no need for the '-r' flag to rm.
2018-07-26 06:12:31 +01:00
Joseph Weston
5077443a84 lib: add tests and code for nonexistant files and malformed globs 2018-07-26 06:12:31 +01:00
Joseph Weston
2c4d0c0acd lib: factor out logic for obtaining a list of files to include 2018-07-26 06:12:31 +01:00
Joseph Weston
2d420a33a4 lib: update cabal file with 'Glob' library depdendency 2018-07-26 06:12:31 +01:00
Joseph Weston
0ade323d2a lib: use glob matching if filename in 'include' directive is a glob pattern 2018-07-26 06:12:31 +01:00
Joseph Weston
96f7a03487 lib: factor out parsing child journal into separate function 2018-07-26 06:12:31 +01:00
Joseph Weston
52da073828 lib: expand current directory separately from filepath
We will need the current directory as an absolute path when
adding glob patterns in a few commits time.
2018-07-26 06:12:31 +01:00
Joseph Weston
9e56ad24e2 lib: reorder code for reading include files
This should be before all journal and parser state manipulations,
so that those can be readily factored in a few commits time.
2018-07-26 06:12:31 +01:00
Joseph Weston
c6c412632b lib: add failing functional test for glob pattern includes 2018-07-26 06:12:31 +01:00
Simon Michael
aab7d2d964 lib: fix error triggered by upper-case day in period expression (#847) 2018-07-24 14:36:45 +01:00
Simon Michael
da8047d286 lib: type signatures 2018-07-24 14:24:45 +01:00
Simon Michael
39aed387e9 tools: make functest: exclude test files/dirs beginning with _
[ci skip]
2018-07-24 14:05:23 +01:00
Simon Michael
fe73f2a6b5 csv: interpolated field names in values are now case insensitive
Field names are supposed to be case insensitive, but a field assignment like

fields  ...,Transaction_Date,...
date %Transaction_Date

was failing, because of the capitalised letters. Fixed now.
2018-07-22 22:26:24 +01:00
Simon Michael
7266064557 site: streamline release notes
[ci skip]
2018-07-21 05:44:36 +01:00
Simon Michael
56704aff35 site: download: mention #832 again
[ci skip]
2018-07-17 07:36:02 +01:00
Simon Michael
49b3751088 tools: appveyor: show bin dir, indicating cache status (#832)
[ci skip]
2018-07-17 07:34:48 +01:00
Simon Michael
db4f8007f8 install: silence not found warnings for uninstalled tools 2018-07-17 07:24:15 +01:00
Simon Michael
aebd6c50d6 smooth: smoothes out irregular transactions (experimental addon) 2018-07-16 23:36:06 +01:00
Simon Michael
d5430e7ddf clean up debug helpers (api change) 2018-07-16 15:28:58 +01:00
Simon Michael
9d2e80aa2c lib: Debug: simplify pprint, export ppShow as pshow (api change) 2018-07-16 12:51:50 +01:00
Simon Michael
f62e308c9c csv: examples: more coinbase rules
[ci skip]
2018-07-16 06:30:36 +01:00
Simon Michael
37be414885 site: download: update fedora C deps
[ci skip]
2018-07-16 04:57:19 +01:00
Simon Michael
3c28e7db85 install: bump version 2018-07-15 18:38:10 +01:00
Simon Michael
04a5050826
Merge pull request #839 from yang-ling/installer
Wrap $(cmd_version xxxx) with double quotes to solve installation failure
2018-07-15 18:18:46 +01:00
Simon Michael
efc75db8d8
Merge branch 'master' into installer 2018-07-15 18:18:35 +01:00
Simon Michael
f2b814ff52 site: download: tweak
[ci skip]
2018-07-15 15:52:58 +01:00
Simon Michael
d0933f1f54 site: download: tweak
[ci skip]
2018-07-15 15:48:57 +01:00
Simon Michael
e5de3e1ec3 site: download: update stack install instructions, lts-12
[ci skip]
2018-07-15 15:42:50 +01:00
SpicyCat
0877d9f169
Wrap $(cmd_version xxxx) with double quotes
cmd_version xxxx like cmd_version hledger will return empty string if
hledger is not installed, and then `cmpver $(cmd_version hledger) $HLEDGER_VERSION`
will become `cmpver $HLEDGER_VERSION`
Wrapping $(cmd_version xxxx) with double quotes can solve this.
2018-07-15 22:18:17 +08:00
Simon Michael
8a7db87427 doc: update manuals 2018-07-15 09:21:10 +01:00
Simon Michael
92404bb847 prices: allow filtering by query, clarify docs
Query arguments are allowed, prices can be filtered by date, and
postings providing transaction prices can be filtered by anything.
2018-07-15 09:21:10 +01:00
Simon Michael
91e5baf617 lib: clean up queryDateSpan, queryDateSpan' (api change)
These now intersect date AND'ed date spans, instead of unioning them,
and docs are clearer.
2018-07-15 08:35:39 +01:00
Simon Michael
2fbebc6c64 lib: clarify 2018-07-14 10:57:05 +01:00
Simon Michael
acff169dba site: download: update appveyor links (#832)
[ci skip]
2018-07-11 20:18:39 +01:00
Simon Michael
363e4e3925 install: bump resolver, hledger-ui version 2018-07-11 10:01:56 +01:00
Simon Michael
b701ddeca0 tools: appveyor: stack#4125: fix
[ci skip]
2018-07-10 10:31:36 +01:00
Simon Michael
9a8ebb8f58 tools: appveyor: stack#4125: use already-installed stack-master
[ci skip]
2018-07-10 10:23:04 +01:00
Simon Michael
a1b0872d00 tools: appveyor: stack#4125: fix
[ci skip]
2018-07-10 07:53:58 +01:00
Simon Michael
c2dbadd5bb tools: appveyor: stack#4125: refetch working version, now in master
[ci skip]
2018-07-10 07:50:27 +01:00
Simon Michael
4ac46489fe stack: bump to latest nightly resolver 2018-07-10 07:50:12 +01:00
Simon Michael
15d56a8997 tools: appveyor: troubleshooting stack#4125
[ci skip]
2018-07-05 09:07:08 +01:00
Simon Michael
e7c85b237c tools: appveyor: troubleshooting stack#4125
Show/save stack exes

[ci skip]
2018-07-05 06:14:44 +01:00
Simon Michael
aa0996f265 tools: appveyor: troubleshooting stack#4125
Try harder to save custom stack*exe, and list them

[ci skip]
2018-07-05 06:09:12 +01:00
Simon Michael
0c9820e248 tools: appveyor: troubleshooting stack#4125
Save all custom stack*exe's in cache

[ci skip]
2018-07-05 06:05:25 +01:00
Simon Michael
d13ae42f4c tools: appveyor: troubleshooting stack#4125
Add --git as well.

[ci skip]
2018-07-05 05:39:52 +01:00