Commit Graph

7751 Commits

Author SHA1 Message Date
Simon Michael
eff1b31c86 csv: allow csv records with varying lengths, padding with empties
Sometimes trailing empty fields are omitted entirely (including the
commas) in CSV records. (I see this in exported Google spreadsheets.)
Now we don't raise an error in this case, instead we automatically pad
any "short" records with empty fields. Not yet well tested.
2019-10-07 14:54:36 -10:00
Simon Michael
6dcddadd9f ;journal: in generated-transaction:/posting: tags, add a space before the value 2019-10-07 14:54:36 -10:00
Simon Michael
40c089dcfc ;doc: regen manuals
[ci skip]
2019-10-07 14:54:36 -10:00
Alejandro García Montoro
4efd0242da web: Modify the --cors option to require a specific origin
- Modified the cors option to require a String
- Moved the logic to build the cors policy to WebOptions.hs
- Specify the --cors "*" example in the cors option help
- Added utf8-string dependency to convert a String into a ByteString
2019-10-07 14:54:18 -10:00
Alejandro García Montoro
e96dfe832f web: Allow CORS to be enabled in hledger-web
Add a --cors option to the CLI to enable simple cross-origin requests
2019-10-07 14:54:18 -10:00
Simon Michael
f1420cc770 ;doc: journal: oh, we can declare the null commodity
[ci skip]
2019-09-27 17:58:46 -10:00
Simon Michael
16973ce296 ;lib: fix journalInferCommodityStyles debug message 2019-09-27 18:51:37 -07:00
Simon Michael
58a313165c ;journal: infer amount styles more carefully, fix wrong output (#1091)
Certain journal entries could trigger a bug where we displayed amounts
with the same character for digit group mark and decimal mark. Now if
a comma or period digit group mark is detected, that forces the
decimal mark to be the other character.
2019-09-27 15:40:36 -10:00
Simon Michael
9967ead4c5 ;lib: let commodityStylesFromAmounts & co. return an error (#793, #1091)
And if they did, the stats command would now throw an error.

Changed:
journalApplyCommodityStyles
journalInferCommodityStyles
commodityStylesFromAmounts
2019-09-27 15:09:39 -10:00
Simon Michael
fd8c6935e8 ;doc: regen manuals
[ci skip]
2019-09-27 14:32:59 -10:00
Simon Michael
64f49a8c02 ;doc: journal: rewrite Amounts; switch to "digit group mark" term (#1091) 2019-09-27 14:25:32 -10:00
Simon Michael
b754abc36b ;lib: commodityStylesFromAmounts: simplify, disable #1091 test 2019-09-26 18:06:22 -10:00
Simon Michael
4884213a3e ;lib: commodityStylesFromAmounts: a failing unit test for #1091 2019-09-25 23:08:00 -10:00
Simon Michael
7ffe38677a ;lib: parseAndFinaliseJournal: note txns order issue (#1091) 2019-09-25 23:07:22 -10:00
Simon Michael
6037d701b6 ;lib: document RawNumber, AmbiguousNumber, DigitGrp (#1091) 2019-09-25 21:26:06 -10:00
Simon Michael
2bbc9b76e5 ;Shake clean/Clean: update, fix dangerous over-cleaning in site/
[ci skip]
2019-09-15 17:16:59 -07:00
Simon Michael
68c770af06 ;make: remove old site building stuff
[ci skip]
2019-09-15 17:16:58 -07:00
Simon Michael
4b3103cbb1 ;Shake: comment all the website generation stuff, sphinx does it now
[ci skip]
2019-09-15 17:16:58 -07:00
Simon Michael
24ce2686f4 drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles
in JournalReader.hs. If you still need this, feel free to work on
those errors. But hopefully not, because dropping base 4.8 should
permit some code cleanups.
2019-09-14 03:45:37 -07:00
Simon Michael
977d4f009e lib, cli: disable hledger-lib test suites, hledger benchmark suite
by default. hledger-lib's doctests and easytests test suites (each ?)
require an additional slow rebuild of hledger-lib and are not worth
the time, energy and carbon. hledger's test suite runs those same
easytest tests (but not the doctests).
2019-09-14 03:45:37 -07:00
Simon Michael
180f4baedb ;lib: csv: note cause of #1087
[ci skip]
2019-09-14 03:45:37 -07:00
Simon Michael
f92b2fe6ef ;lib: csv: refactor: clarify, get rid of some IO/ExceptT
Rule parsing doesn't need IO (since we are doing expandIncludes as a
pre-parsing step).
2019-09-14 03:45:37 -07:00
Simon Michael
3c05662ce2 ;lib: csv: clarify confusing imports 2019-09-13 18:11:40 -07:00
Simon Michael
46caa1d4ef ;lib: csv: rename error-prone default rules 2019-09-13 17:51:14 -07:00
Simon Michael
a0deb88796 ;doc: regen manuals
[ci skip]
2019-09-13 11:00:03 -07:00
Simon Michael
09ff703a9b ;Shake manuals: also regenerate embeddded command help txts
[ci skip]
2019-09-13 10:58:41 -07:00
Simon Michael
867ccb31d5 ;import: drop inconsistent period 2019-09-13 09:07:18 -07:00
Simon Michael
bf1e398ffd ;import: with --dry-run the no txns case should be parseable too 2019-09-13 09:02:32 -07:00
Simon Michael
f65fc47185 ;bump version to 1.15.99
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
e851bdf834 ;doc: changelogs
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
af21ae6eb6 ;doc: regen manuals
Wrapping and hyphenation has changed again, which I thought would
be more stable now with same tool versions on laptop and server.
Who knows.
2019-09-13 08:43:33 -07:00
Simon Michael
edaf92db5e import: message cleanups, mention input files
Only the --dry-run message needs the semicolon, so dry run output can
be piped into hledger.
2019-09-13 08:43:33 -07:00
Simon Michael
807273d9de import: --catchup marks all transactions imported, without importing 2019-09-13 08:43:33 -07:00
Simon Michael
35a90004ca import: also show a message when nothing was imported 2019-09-13 08:43:33 -07:00
Simon Michael
dfc0095fed import: create the journal if missing, like the add command
Streamlines import/migration instructions.
2019-09-13 08:43:33 -07:00
Dmitry Astapov
568cb32677 lib: more runPeriodicTransaction tests (lifted from #1085 and spanIntervalIntersect) 2019-09-11 16:09:28 -07:00
Dmitry Astapov
e9d300bef3 lib: dont raise when there is neither budget nor transactions in the report period 2019-09-11 16:09:28 -07:00
Dmitry Astapov
cf74972148 bin: improve debug output for budger report (show budget txns) 2019-09-11 16:09:28 -07:00
Dmitry Astapov
cf4029a5ed lib: fix generation of periodic transactions with days/months/... repeat 2019-09-11 16:09:28 -07:00
Simon Michael
2bb6e25390 ;api: also fix hledger's cabal file 2019-09-11 14:53:55 -07:00
Simon Michael
4db14ef70f ;api: another round of hledger-api purging; fix the build 2019-09-11 14:49:22 -07:00
Simon Michael
8e40a5ea93 ;finance: move old financial journal out of the code repo
[ci skip]
2019-09-10 20:25:05 -07:00
Simon Michael
2d1b53c597 ;api: move hledger-api out of the way, to the archives
[ci skip]
2019-09-10 20:20:30 -07:00
Simon Michael
fc2f4d018f ;remove more traces of hledger-api
[ci skip]
2019-09-10 20:12:38 -07:00
Simon Michael
0674b5f850 api: note hledger-api's retirement, & bump back to 1.14.99
Revert the "1.15" version strings which were just an artifact
of releasing the other packages.
2019-09-10 18:52:00 -07:00
Simon Michael
9224cfcf50 ;doc: more "curses-style interface" -> "terminal interface"
[ci skip]
2019-09-10 18:20:20 -07:00
Simon Michael
1d54bec22b ;doc: bump copyright date in some old man templates
[ci skip]
2019-09-10 18:15:02 -07:00
Simon Michael
acd7010e5a ;doc: "curses-style interface" -> "terminal interface"
[ci skip]
2019-09-10 18:14:16 -07:00
Simon Michael
d2db4818b1 ;make Clean: update
[ci skip]
2019-09-10 17:25:53 -07:00
Simon Michael
ef04907484 ;doc: fix broken manual links in manuals source
[ci skip]
2019-09-10 17:02:56 -07:00