Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | make: added a bunch of tests | Rafael G. Martins | 2017-01-01 | 3 | -0/+1088 | |
| | ||||||
* | config-parser: only allow double-quoted values | Rafael G. Martins | 2017-01-01 | 1 | -9/+9 | |
| | ||||||
* | config-parser: allow quoted values | Rafael G. Martins | 2017-01-01 | 1 | -4/+111 | |
| | ||||||
* | make: implemented runserver rule | Rafael G. Martins | 2016-12-27 | 1 | -1/+4 | |
| | ||||||
* | make: implemented a build tool for blogc | Rafael G. Martins | 2016-12-27 | 1 | -0/+158 | |
| | | | | | | | | | | | | | | | | | so, this is basically what happens when you don't have anything better to do in the christmas weekend. most of this code was written in the last 2 or 3 days. i'd like to thank the chivas brothers, the weather and my psychological problems for this achievement. on a serious note, this tool still needs a man page, more tests, and the aws lambda function should be adapted to use it instead of (or together with) make/busybox. also, while talking about aws lambda, this tool can be nicely embedded into the blogc binary, to produce a single "small" static binary for usage in lambda ;) | |||||
* | config-parser: bc_config_get_list should return array instead of list | Rafael G. Martins | 2016-12-25 | 1 | -15/+18 | |
| | ||||||
* | config-parser: added support to parse section as list of lines | Rafael G. Martins | 2016-12-25 | 2 | -18/+151 | |
| | ||||||
* | blogc: common: git-receiver: improved error handling | Rafael G. Martins | 2016-12-23 | 1 | -3/+8 | |
| | ||||||
* | git-receiver: moved shell quote function to common | Rafael G. Martins | 2016-12-21 | 2 | -29/+31 | |
| | ||||||
* | config-parser: improved error reporting, added bc_config_get_with_default | Rafael G. Martins | 2016-12-20 | 1 | -4/+13 | |
| | ||||||
* | git-receiver: test manual mirror push | Rafael G. Martins | 2016-11-19 | 1 | -0/+30 | |
| | ||||||
* | git-receiver: when rebuilding, change to repo dir asap | Rafael G. Martins | 2016-11-17 | 1 | -5/+17 | |
| | ||||||
* | git-receiver: allow users to re-run the last successful build | Rafael G. Martins | 2016-11-17 | 1 | -0/+16 | |
| | | | | | running the pre-receive hook manually on the server will re-run the last successful build. | |||||
* | blogc: added some "integration" tests | Rafael G. Martins | 2016-10-15 | 1 | -0/+379 | |
| | ||||||
* | build: use bash, but get it properly during build time | Rafael G. Martins | 2016-10-12 | 3 | -3/+3 | |
| | | | | hardcoding it for travis, as bash is always installed there. | |||||
* | build: man: tests: do not use bash | Rafael G. Martins | 2016-10-12 | 3 | -3/+3 | |
| | | | | tested with busybox' ash, that is not exactly posix. | |||||
* | tests: git-receiver: avoid removing directories for safety | Rafael G. Martins | 2016-10-11 | 3 | -20/+15 | |
| | ||||||
* | git-receiver: added tests for shell, fixed bug | Rafael G. Martins | 2016-10-11 | 1 | -0/+73 | |
| | ||||||
* | git-receiver: added test for post-receive. fixed leak | Rafael G. Martins | 2016-10-11 | 1 | -0/+148 | |
| | ||||||
* | Revert "trying to fix tests on travis" | Rafael G. Martins | 2016-10-10 | 1 | -4/+4 | |
| | | | | This reverts commit 84dbde7d04a04434721ec9d2965af6d946713e5d. | |||||
* | trying to fix tests on travis | Rafael G. Martins | 2016-10-10 | 1 | -4/+4 | |
| | ||||||
* | removed uneeded error code. export LC_ALL=C in test script | Rafael G. Martins | 2016-10-10 | 1 | -0/+2 | |
| | ||||||
* | git-receiver: added support to get mirror url from config file | Rafael G. Martins | 2016-10-10 | 2 | -0/+173 | |
| | | | | this commit also includes some "integration test" in shell script | |||||
* | tests: added missing include to fix warning | Rafael G. Martins | 2016-10-07 | 1 | -0/+1 | |
| | ||||||
* | git-receiver: splitted/reimplemented and tested shell command parser | Rafael G. Martins | 2016-10-07 | 1 | -0/+244 | |
| | ||||||
* | git-receiver: splitted and tested pre-receive input parser | Rafael G. Martins | 2016-10-04 | 2 | -0/+154 | |
| | ||||||
* | runserver: reimplemented http server without libevent | Rafael G. Martins | 2016-09-25 | 3 | -1/+257 | |
| | | | | | | | | | yeah, this patch implements a "complete" http server for static files. It is not the best code possible, and would be easily DDoS'able if used in production, as it spawns a thread for each request, without limiting. I'm sickish and this is the best code I can deliver now. At least it works! ;) | |||||
* | blogc: common: moved "file" to common | Rafael G. Martins | 2016-09-09 | 1 | -111/+111 | |
| | ||||||
* | file: do not call fprintf directly | Rafael G. Martins | 2016-09-09 | 1 | -22/+8 | |
| | ||||||
* | s/blogc_utf8_/bc_utf8_/g | Rafael G. Martins | 2016-09-09 | 1 | -13/+13 | |
| | ||||||
* | common: added config-parser | Rafael G. Martins | 2016-09-09 | 1 | -0/+434 | |
| | ||||||
* | *: centralize error handling | Rafael G. Martins | 2016-09-09 | 5 | -5/+0 | |
| | ||||||
* | common: rename macros | Rafael G. Martins | 2016-09-09 | 1 | -18/+18 | |
| | ||||||
* | *: moved error handling to src/common/ | Rafael G. Martins | 2016-09-03 | 6 | -267/+272 | |
| | ||||||
* | *: s/sb_/bc_/g | Rafael G. Martins | 2016-09-03 | 6 | -828/+828 | |
| | ||||||
* | *: big code reorganization. | Rafael G. Martins | 2016-09-03 | 9 | -22/+22 | |
| | | | | | | | - source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common | |||||
* | *: fixed includes | Rafael G. Martins | 2016-07-07 | 9 | -39/+9 | |
| | | | | | this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report! | |||||
* | template-parser: fixed block scope | Rafael G. Martins | 2016-07-07 | 1 | -6/+148 | |
| | | | | | this patch blocks some usage that is obviously wrong and that nobody would want to use, but that should be explicitly blocked by the parser. | |||||
* | renderer: utils: fixed memory bugs found by clang static analyzer | Rafael G. Martins | 2016-07-05 | 1 | -0/+1 | |
| | ||||||
* | utf8: fix test | Rafael G. Martins | 2016-07-04 | 1 | -1/+1 | |
| | ||||||
* | utf8: fix test data type | Rafael G. Martins | 2016-07-04 | 1 | -3/+3 | |
| | ||||||
* | utf8: skip BOM, if found | Rafael G. Martins | 2016-07-04 | 1 | -1/+21 | |
| | ||||||
* | blogc: added utf8 validation | Rafael G. Martins | 2016-07-03 | 1 | -0/+83 | |
| | ||||||
* | template-parser: minor fix | Rafael G. Martins | 2016-07-03 | 1 | -1/+1 | |
| | ||||||
* | Revert "error: improved parser error reporting" | Rafael G. Martins | 2016-07-03 | 3 | -132/+61 | |
| | | | | | | this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03. | |||||
* | error: improved parser error reporting | Rafael G. Martins | 2016-07-03 | 3 | -61/+132 | |
| | | | | | | now it shows a visual indicator '^' pointing to the position of the error, in the line after the error message. should be helpful for users writing templates, if any. | |||||
* | template-parser: fixed error message | Rafael G. Martins | 2016-07-03 | 1 | -1/+1 | |
| | ||||||
* | template-parser: renderer: implemented 'else' support in templates | Rafael G. Martins | 2016-07-03 | 2 | -9/+330 | |
| | | | | | | | | | yeah, this is stupid. after more than 320 commits and 26 releases, we finally support the 'else' statement in the template engine. I don't know if I'm dumb or what, but it took me that long to find a "simple" solution to this basic issue. yep, no more `{% ifdef FOO %}...{% endif %}{% ifndef FOO %}...{% endif %}` blocks. but seriously, who cares?! :/ | |||||
* | content-parser: fixed tests | Rafael G. Martins | 2016-06-29 | 1 | -6/+6 | |
| | ||||||
* | content-parser: added more line break tests | Rafael G. Martins | 2016-06-29 | 1 | -0/+8 | |
| |