Commit Graph

8071 Commits

Author SHA1 Message Date
Simon Michael
a1fbe0247a ;make site: regenerate web manuals first
[ci skip]
2020-01-22 05:47:35 -08:00
Simon Michael
9874d29953 ;doc: journal: 2 spaces required in same line account comments (#1182)
[ci skip]
2020-01-22 05:42:22 -08:00
Simon Michael
090f65ec83 ;doc: regen manuals
[ci skip]
2020-01-20 18:02:42 -08:00
Simon Michael
69bc8f803b close: fix some inappropriate rounding, ensure the txn balances (#1164) 2020-01-20 18:01:33 -08:00
Simon Michael
64546cd54a lib: export mapMixedAmount 2020-01-20 18:01:33 -08:00
Simon Michael
1e9f30bafc close: add the --interleaved flag; refactor a little
Interleaved equity postings make troubleshooting easier.
2020-01-20 18:01:29 -08:00
Simon Michael
a5ff9d6a63 ;doc: update issue templates
[ci skip]
2020-01-20 14:15:40 -08:00
Simon Michael
573a2a7860 ;doc: update issue templates
[ci skip]
2020-01-20 14:01:10 -08:00
Simon Michael
0f14c0f010 ;doc: update issue templates
[ci skip]
2020-01-20 13:55:36 -08:00
Simon Michael
da18680283 ;doc: update issue templates
[ci skip]
2020-01-20 13:51:28 -08:00
Simon Michael
74e9f4e3c2 ;doc: update issue templates
[ci skip]
2020-01-20 13:41:51 -08:00
Simon Michael
3e770f4078 ;doc: update issue template, suggest checking manual
[ci skip]
2020-01-20 13:27:27 -08:00
Simon Michael
80ab45984b csv: also recognise .tsv, .ssv extensions; document thoroughly (#1179) 2020-01-20 12:58:47 -08:00
Simon Michael
9bd7a713f9 ;print: expand -x doc, mention that it also shows prices
[ci skip]
2020-01-20 12:58:47 -08:00
Amarandus
76ffaca466 web: Add IPv6 and hostname support
This commit introduces IPv6 support (and thus closes #1145).
It also allows using local hostnames as a parameter for --host.
For this, multiple things needed to be changed:

 - checkWebOpts is dropped, as the supplied parameter is checked later
 by Network.Socket.getAddrInfo
 - defbaseurl needs to check if : is used in the host, as this indicates
 the usage of an IPv6 address. In this case, the host needs to be
 wrapped in [] for the base URL
 - To allow opening such a modified base URL, runHostPortFullUrl is used
 instead of runhostPortUrl, as it allows opening arbitrary URLs instead
 of a path prefixed with http://127.0.0.1

As checking the host for validity is postponed until the webserver tries
to start, an invalid hostname leads to an exception caused by
Network.Socket.getAddrInfo.
This is still fine, as hledger-web won't start in an undefined state, but
will terminate with a nonzero exit code.
2020-01-17 13:18:51 -08:00
Simon Michael
392d0d0a31 ;install: update for 1.16.2
[ci skip]
2020-01-14 11:21:25 -08:00
Simon Michael
42dfde141a ;doc: changelogs: update from 1.16.2, cleanups 2020-01-14 11:19:05 -08:00
Simon Michael
dba0b117f4 ;doc: draft changelogs 2020-01-14 10:08:59 -08:00
Simon Michael
445e8aa3cc add support for megaparsec 8 (#1175) 2020-01-14 09:54:06 -08:00
Brian Wignall
473b3376ab ;doc: update shell output in hledger*/*.m4.md to use ISO date formatting 2020-01-13 12:32:41 -08:00
Carl Richard Theodor Schneider
72acd7c22a web: Add option --socket to use UNIX socket file
This commit adds the --socket option to use hledger-web over an AF_UNIX socket
file.
It allows running multiple instances of hledger-web on the same system without
having to manually choose a port for each instance, which is helpful for running
individual instances for multiple users. In this scenario, the socket path is
predictable, as it can be derived from the username.

It also introduces the following dependencies:

 - network
   - Used to create the unix domain socket
 - unix-compat
   - Used to identify if the socket file is still a socket, to reduce the risk
     of deleting a file when cleaning up the socket
2020-01-12 16:15:37 -08:00
Jakob Schöttl
c7a88b50fb Fix timeclock format parsing
Fix presumably copy-paste errors

timeclock format has only timeclock lines or empty/comment lines

Update test format to v3, add new tests

Throw error on unexpected clock codes in timeclock format

Fix missing case in pattern matching
2020-01-12 13:17:36 -08:00
Simon Michael
65efdea4c0 ;doc: regen some manuals
[ci skip]
2020-01-07 16:24:51 -08:00
Simon Michael
41f00e42f9 Merge branch 'date_formatting' 2020-01-07 16:18:47 -08:00
Brian Wignall
c823f5b51a Get "make functest" working again 2020-01-07 15:58:54 -08:00
Brian Wignall
ab12ff916f Update "showPeriod" to use yyyy-mm-dd formatting 2020-01-07 15:58:54 -08:00
Brian Wignall
03e68f3925 Get "make functest" working again 2020-01-07 15:58:54 -08:00
Brian Wignall
24026d629a Change "showEndDates" formatting to yyyy-mm-dd in CompoundBalanceCommand 2020-01-07 15:58:54 -08:00
Brian Wignall
e12b0a4f05 Get "make functest" working again 2020-01-07 15:58:54 -08:00
Brian Wignall
28f9f043e5 Get "make functest" (mostly) working again 2020-01-07 15:58:54 -08:00
Brian Wignall
00eb0b3c8f Make "stack test" pass again 2020-01-07 15:58:22 -08:00
Brian Wignall
35481a665b Change Date output to yyyy-mm-dd 2020-01-07 15:58:22 -08:00
Simon Michael
be72497ebb ;doc: journal: corrections for D directive's scope (#1170)
[ci skip]
2020-01-07 07:38:51 -08:00
Simon Michael
04ea95cb91 ;stack: bump to latest nightly snapshot 2020-01-06 11:31:24 -08:00
Simon Michael
ee3f8914f1 ;doc: CONTRIBUTING: clean up the open issues table 2020-01-06 10:53:30 -08:00
Simon Michael
14414394fb ;doc: CONTRIBUTING: fix the open issues table for sphinx
[ci skip]
2020-01-06 10:13:44 -08:00
Simon Michael
e789cc93f5 ;doc: fix yet another rendering issue with new pandoc ({=html})
Since pandoc 2.8 the markdown writer adds this raw_attribute syntax by default.
2020-01-06 09:41:03 -08:00
Simon Michael
6dcf6310a3 ;doc: strip html comments, preserved by latest pandoc (?)
Not sure when the --strip-comments option was added, but we seem
to need it now.

[ci skip]
2020-01-06 07:08:15 -08:00
Aleksandar Dimitrov
3bf6ef9a8b Update documentation on separators 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
3ead97975c Inline function, add debug statement 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
9011aaa5ba Refactor getSeparator 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
92f680875f Parse reserved words case insensitively 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
8df4e1ed83 Remove --separator command line argument 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
93c27891f2 Fix numbering in csv.test 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
02d9205af7 Allow separator to be overridden from command line
This also fixes that parsing separators on the command line and the
rules file was not handled the same way.
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
b524a088c7 Implement getting separator from rules 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
32ccc3a2b2 Add directive 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
ec0f55d18e Add missing type signature 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
b104b3b8a3 Explictly discard result 2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
42d585d20b Refactor: rename variable 2020-01-05 14:45:57 -08:00