Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | content-parser: rewrote inline parser. | Rafael G. Martins | 2016-06-29 | 2 | -34/+161 | |
| | | | | parser is stricter now, and won't produce invalid HTML anymore. | |||||
* | renderer: added support to truncate variables. | Rafael G. Martins | 2016-05-30 | 1 | -0/+28 | |
| | | | | this commit also documents variable formatters properly. | |||||
* | content-parser: encode HTML entities in DESCRIPTION variable | Rafael G. Martins | 2016-05-24 | 1 | -0/+3 | |
| | ||||||
* | content-parser: fixed DESCRIPTION variable. | Rafael G. Martins | 2016-05-23 | 1 | -5/+50 | |
| | | | | | | | | | it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph. | |||||
* | content-parser: do not use paragraphs inside blockquote for DESCRIPTION | Rafael G. Martins | 2016-05-22 | 1 | -4/+4 | |
| | ||||||
* | remove squareball for good | Rafael G. Martins | 2016-04-27 | 6 | -6/+6 | |
| | ||||||
* | moved squareball back to blogc source tree. | Rafael G. Martins | 2016-04-27 | 2 | -1/+960 | |
| | | | | | | | i don't have enough time to maintain a separated library at this point, and worry about soname bump, library stability, etc. all the code is trivial enough to be copied around, and all the utils are implemented as single file now, to make it easier to copy. | |||||
* | Revert "*: use squareball error infrastructure" | Rafael G. Martins | 2016-04-27 | 6 | -321/+321 | |
| | | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4. | |||||
* | Revert "error: removed uneeded tests" | Rafael G. Martins | 2016-04-27 | 1 | -0/+24 | |
| | | | | This reverts commit 37592b57b31987519e59117d49bccd0207e67f15. | |||||
* | content-parser: extract post description from content | Rafael G. Martins | 2016-04-20 | 3 | -94/+367 | |
| | | | | | | | | | description is the first line of the first paragraph parsed from content file. users can override it declaring DESCRIPTION variable in source file itself. this also fixes a bug with line endings when using single line blockquotes. | |||||
* | content-parser: do not convert -- and --- to &ndash and &mdash inside code | Rafael G. Martins | 2016-04-17 | 1 | -0/+31 | |
| | ||||||
* | error: removed uneeded tests | Rafael G. Martins | 2016-03-13 | 1 | -24/+0 | |
| | ||||||
* | *: use squareball error infrastructure | Rafael G. Martins | 2016-03-13 | 6 | -321/+321 | |
| | ||||||
* | content-parser: fixed em/en-dash logic | Rafael G. Martins | 2016-03-05 | 1 | -8/+8 | |
| | ||||||
* | content-parser: fixed a bug in previous patch | Rafael G. Martins | 2016-03-05 | 1 | -4/+4 | |
| | ||||||
* | content-parser: convert -- and --- to &ndash and &mdash | Rafael G. Martins | 2016-03-05 | 1 | -6/+26 | |
| | ||||||
* | build: replace src/utils with squareball | Rafael G. Martins | 2016-02-26 | 7 | -1408/+529 | |
| | ||||||
* | man: tests: minor documentation fix and more test coverage | Rafael G. Martins | 2016-02-21 | 1 | -0/+9 | |
| | ||||||
* | content-parser: added more tests | Rafael G. Martins | 2016-02-21 | 1 | -0/+15 | |
| | ||||||
* | content-parser: added more tests | Rafael G. Martins | 2016-02-21 | 1 | -0/+12 | |
| | ||||||
* | content-parser: fixed parser bug when handling links | Rafael G. Martins | 2016-02-21 | 1 | -0/+12 | |
| | | | | | | do not handle something like this as a valid link: [asd] asd (asd) |