summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo for literal `[` (#13243)Euan2020-01-241-1/+1
| | | The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
* Fixes asyncftpclient multiline reading, fixes #4684 (#13242)hlaaftana2020-01-241-5/+6
| | | | | Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line. Also made it work for taint mode.
* [backport] Make all parseutils examples auto-checking (#13238)Kaushal Modi2020-01-231-32/+25
| | | - Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-231-14/+23
|
* [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵Mera2020-01-231-2/+3
| | | | (#13231) [ci skip]
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵Juan Carlos2020-01-211-5/+9
| | | | headers argument instead of hardcoded empty (#13207)
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-212-2/+6
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+2
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add idxmin() which returns the index of the minimum value * Add idxmax() which returns the index of the maximum value * Add tests for idxmin() * Add tests for idxmax() * Remove initialization of result = 0 * Adds overloading for arrays (no enums indexed arrays yet) * Add support for enum index arrays * Fix tests with enum * Fix tests for idxmax * Change names of the procedures to minIndex and maxIndex * address Araq's comments: - remove 'array' versions - add .since pragma - return 'int' instead of 'Natural' - add changelog entry Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com>
* Add link to packaging.html (#13194)Federico Ceratto2020-01-191-0/+2
|
* times: toUnixFloat, fromUnixFloat (#13044)Timothee Cour2020-01-182-10/+29
|
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-172-35/+33
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-164-20/+20
|
* export normalizePathEnd (#13152)Timothee Cour2020-01-151-0/+9
|
* fix the ftp store function read the local file bug (#13108) [backport]perter lee2020-01-131-4/+4
| | | | | | | | * Update asyncftpclient.nim When use newStringOfCap function not have assign memory for the string data,so if use this address the fault is rasise. * complelete the bugfix
* [backport] fix #12813, fix #13079 (#13099)Miran2020-01-101-4/+14
| | | Correctly remove a key from CountTable when it is set to zero.
* fixes an asyncftpclient bug; refs #13096 [backport]Andreas Rumpf2020-01-101-1/+1
|
* typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get ↵Timothee Cour2020-01-101-0/+40
| | | | | | (#13064)
* Fix error check code in osproc (#13090) [backport]Tomohiro2020-01-091-1/+1
|
* Deleted misplaced separator (#13085) [backport]Teashrock2020-01-091-1/+0
| | | Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
* distinctBase type trait for distinct types (#13031)cooldome2020-01-082-32/+8
|
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+1
|
* fixes #12996Araq2020-01-051-1/+2
|
* fixes #13032Araq2020-01-041-2/+2
|
* Added fix for handling TaintedStrings in streams and httpclient (#12969)Sam Wang2019-12-292-6/+14
| | | | | | * Added fix for taint mode in streams and httpclient * Removed taintMode export from system.nim
* parsecfg: retain CRLF line breaks, fixes #12970 (#12971)Simon Krauter2019-12-291-3/+3
|
* Allow customize Host headerJack Tang2019-12-281-4/+5
|
* osproc: fixes regressionAraq2019-12-241-1/+1
|
* ported osproc.nim to ARCAraq2019-12-241-1/+1
|
* fixes the distros.nim regressionAraq2019-12-241-1/+1
|
* Auto-initialize deques (#12879)Ico Doornekamp2019-12-211-3/+17
|
* Implement NixOS distro check (#12914)Emery Hemingway2019-12-181-1/+5
|
* fix json regression D20191212T144944 (#12902) [backport]Timothee Cour2019-12-151-0/+1
|
* remove unused import (#12900)Krzysztof Majk2019-12-151-1/+1
|
* fixes #12874 (#12890)Andreas Rumpf2019-12-131-8/+42
| | | | | | * fixes #12874 * fixes introduced regressions
* introduce capture macro (#12712)Judd2019-12-101-0/+26
| | | | capture works for more cases than `closureScope`.
* feature dracula themed doc (#12816)Andreas Rumpf2019-12-101-2/+2
| | | | | | | | | | * Implement gorgeous Dracula themed Nim documentation * Add color for escape sequences * fixes the test cases * the big CSS cleanup
* add a StringTable.clear that requires no mode specification (#12853)Andy Davidoff2019-12-091-1/+5
| | | | | | * add clear overload, test, changelog * add since annotation
* Fixes #12832 (#12842) [backport]Neelesh Chandola2019-12-081-1/+1
| | | | | | * Fix #12832 * nimVm -> nimvm in json.nim * Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
* Fixes classify function to detect subnormal floating points (#12836)KeepCoolWithCoolidge2019-12-081-16/+20
| | | | | | | | * Fix classify to test for subnormality. * Minor fix. * Modified to maintain existing API. * Minor change. * Removed 32-bit case since float is always 64-bit.
* nimgrep improvements (#12779)Andrey Makarov2019-12-051-5/+12
| | | | | | | | | | | | | | | | | | * fix sticky colors in styledWrite * nimgrep: context printing, colorthemes and other * add context printing (lines after and before a match) * nimgrep: add exclude/include options * nimgrep: improve error printing & symlink handling * nimgrep: rename dangerous `-r` argument * add a `--newLine` style option for starting matching/context lines from a new line * add color themes: 3 new themes besides default `simple` * enable printing of multi-line matches with line numbers * proper display of replace when there was another match replaced at the same line / context block * improve cmdline arguments error reporting
* Fix #12812Clyybber2019-12-051-1/+1
|
* fixes #12798 [backport]Araq2019-12-041-0/+1
|
* [minor] fix doc for $(Time) (#12795) [backport]Timothee Cour2019-12-031-1/+1
|
* #12103 - CI for FreeBSD (#12179)Euan2019-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Ref #12103 - adds FreeBSD CI * Fix getApplFreebsd - length of the string includes the null terminator byte, so minus 1 for result length * Show last commit in setup task. * Remove .git from repository URL * Don't include noisy details showing last commit. * Add FreeBSD build status badge * Fix #12182 - disable tconsole on FreeBSD * Disable tgetaddrinfo on FreebSD as getaddrinfo doesn't support the ICMP protocol. * Install boehm-gc-threaded * Use libgc-threaded.so on FreeBSD rather than libgc.so. * Simplify build failure handling. Update alt text for CI badge. * Disable test on FreeBSD * Simplify build config - use GNU make to build csources - set PATH variable using the environment key - remove modification of config to set CC as this is already set * Install git which seems to be missing from current freebsd images * Revert change to how path is set * Add a comment explaining why the length is truncated * Fix tconsole.
* fix httpclient.lastModified bad pattern in parsing (#12698)Pierre-Jean Grenier2019-11-291-1/+1
|
* Fix sequtils.delete bug with out of bounds indexes (#12506)Oscar Nihlgård2019-11-291-1/+6
|
* ARC: implemented a simple cycle detectorAraq2019-11-281-0/+2
|