summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* basic cleanups regarding SSL handling (#16940) [backport:1.0]Andreas Rumpf2021-02-083-17/+58
| | | | | | | * basic cleanups regarding SSL handling * enabled certificate checking on Windows * updated the SSL test * quoting helps
* fix some warnings (#16952)flywind2021-02-0816-98/+98
|
* close #15767 (#16959)flywind2021-02-081-1/+8
| | | | | | | | | * fix some warnings * close #15767 * Revert "fix some warnings" This reverts commit 39f2f23b0026d50c42af7be3ad80edf0f1f19610.
* use typeof instead type (#16962)flywind2021-02-0810-22/+22
|
* Add initRand() with seed based on time (#16953)hlaaftana2021-02-071-10/+35
|
* close #16921 (#16951)flywind2021-02-061-30/+29
|
* make style consistent (#16944)flywind2021-02-051-16/+18
|
* Correct typo in osseps.nim (#16939)Rummskartoffel2021-02-041-1/+1
|
* stdlib/os: handle symlinks in copy/move functions (#16709)Roman Inflianskas2021-02-041-107/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: handle symlinks in copy/move functions - Added optional `options` argument to `copyFile`, `copyFileToDir`, and `copyFileWithPermissions`. By default, symlinks are followed (copy files symlinks point to). - `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of skipping them as it was before). - `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them sometimes as it was before). - Added optional `followSymlinks` argument to `setFilePermissions`. See also: https://github.com/nim-lang/RFCs/issues/319 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 (second iteration) Skip symlinks on Windows. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Sugar tests (#16820)konsumlamm2021-02-021-12/+14
|
* [ci skip] CountTable, remove link to unexisting procnarimiran2021-02-021-1/+0
|
* `dumpToString`: improves on `sugar.dump` (#16841)Timothee Cour2021-02-021-3/+32
| | | | | | | * dumpToString * _ * fixup * changelog * address comment: removed the word "Deprecated"
* Improve doc comments (#16902)konsumlamm2021-02-021-85/+123
| | | | | Add runnableExamples Use `reduce` in `initRational` and `//` Add static tests
* 2.5x- 3x faster copyFile on osx (#16883)Timothee Cour2021-02-011-0/+31
|
* JS: make hash float support IE/Safari (#16872)flywind2021-02-011-5/+10
|
* critbits: fix error from strictFuncs (#16877)ee72021-02-011-2/+2
| | | | | | | | | Previously, compiling a file containing just `import critbits` with `nim c --experimental:strictFuncs` would produce the following error: critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects This was introduced by 2aed4186989e (#16564). Fixes: #16873
* distinctBase now is identity instead of error for non distinct types (#16891)Timothee Cour2021-02-011-7/+7
|
* remove quotation marks around imports - fixes links in the docs (#16888)Miran2021-02-012-2/+2
|
* Add more runnableExamples (#16864)konsumlamm2021-01-311-30/+80
| | | Add more links
* Minor docs improvement for oids (#16882)konsumlamm2021-01-311-9/+10
|
* refactor hash in JS backend (#16863)flywind2021-01-301-29/+31
|
* remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)Timothee Cour2021-01-291-8/+2
| | | | | | | | | * cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
* A new request should always have a new content-length (#16667)Joey2021-01-281-9/+15
| | | | | | | | | * A new request should always have a new content-length In [my last PR](https://github.com/nim-lang/Nim/pull/16618) I made a mistake by assuming that the client.headers were cleared on every request, like the Python version. So, due to the fact that Nim keeps the client headers, we need to clear the Content-Length header on each request (which makes sense because you almost never want to use the same Content-Length twice, but you may want to reuse other headers) * Move content-length to newHeaders instead of in the global client headers * Use single backticks
* Improve documentation for the mersenne module (#16824)konsumlamm2021-01-271-16/+16
| | | | | | | * Improve documentation for mersenne Add tests for mersenne * Add link to Wikipedia article
* Improve documentation for threadpool (#16821)konsumlamm2021-01-271-40/+41
|
* added enum indexed array support to json (#16807)Jason Beetham2021-01-261-1/+1
| | | | | | | * added enum indexed array support to json * Added json test * Removed when statement for enum indexed arrays
* Make small text changes in the docs (#16634)Elliot Waite2021-01-251-1/+1
| | | | | | | | | * Fix broken links in docs * Fix rand HSlice links * Make small text changes in the docs * Fix typo in contributing docs
* Sugar improvements (#16802)konsumlamm2021-01-251-66/+63
| | | | | | | | | | | | | | | * Use runnableExamples in sugar Remove unnecessary import * Add trailing newline * Address nits * Remove unneccessary convolution * Change wording Co-authored-by: Clyybber <darkmine956@gmail.com>
* make oids module better (#16704)flywind2021-01-251-26/+38
| | | | | | | * make oids modules better * Update lib/pure/oids.nim * fix
* Fix an RST issues introduced in #16777 (#16798)konsumlamm2021-01-221-3/+3
|
* remove private checkSymlink (redundant with symlinkExists) (#16785)Timothee Cour2021-01-221-16/+12
|
* Improve the marshal module (#16777)konsumlamm2021-01-221-106/+28
| | | | | | | | | | * Improve marshal Use runnableExamples Refactor tests * Readd {.inheritable.} test Apply suggestions
* addQuitProc => addExitProc (#16765)Timothee Cour2021-01-222-4/+5
|
* typetraits: make genericHead docs reflect reality; use runnableExamples ↵Timothee Cour2021-01-221-17/+19
| | | | (#16776) [backport:1.4]
* Fix SIGSEGV in httpclient response body (#16766)Daehee2021-01-221-4/+6
| | | | | | | | | * initialize httpclient response bodyStream; prevent SIGSEGV when getBody is false * Update lib/pure/httpclient.nim * Update lib/pure/httpclient.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Fix #16741 (#16783)Roman Inflianskas2021-01-221-22/+22
| | | | | | Move `downloadFileEx` out of `downloadFile` (solution, proposed by @Yardanico). Tested manually.
* fix #15628 (#16387)flywind2021-01-211-8/+17
| | | | | | | | | * done * Apply suggestions from code review * fixup Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* perpare for more compact bit operations in JS (#16728)flywind2021-01-191-7/+8
|
* intsets are here to stay (#16751)Andreas Rumpf2021-01-191-3/+1
|
* Improve documentation for stats (#16742)konsumlamm2021-01-191-87/+79
| | | | | | | | | * Improve documentation for stats * Address nits * Update lib/pure/stats.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve documentation for packedsets (#16715)konsumlamm2021-01-161-3/+4
| | | | | | | | | * Improve documentation for packedsets Add more runnableExamples Add deprecated pragma to intsets Replace intsets with packedsets in lib.rst * Apply suggested changes
* minor improvement on math.nim (#16733)flywind2021-01-161-2/+2
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-1513-119/+111
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Improve documentation for the hashes module (#16720)konsumlamm2021-01-151-51/+73
| | | | | | | * Improve documentation for hashes * Fix runnableExamples * Apply suggestions
* Transfer-Encoding:chunked tests (#16678)vabresto2021-01-141-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests and fix extra newlines in body * Fixes per comments * Slight rephrase per comments * Improvements per comments * Add getSocket to reduce test flakiness per comment * Remove unused lines from header * Add doc comment to getSocket per comment * Apply witchcraft to replace `discard Future` * Return HTTP 400 on bad encoding in request * Fix runnable example for getSocket * Fix import to fix runnable examples * Even more imports for the example * Better self documenting runnable example * Add missing import * Import from module with correct signature * Resolve port type mismatch
* Fixes #16436 (#16695)Yuriy Glukhov2021-01-142-4/+27
| | | | | * Fixes #16436 * Comments addressed
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-131-47/+19
|
* Check for errors after sendPendingSslData (#16696)Yuriy Glukhov2021-01-131-6/+2
| | | | | * Check for errors after sendPendingSslData * Leftover comment removed
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-122-25/+27
| | | | | | | | | | | | | | | | | In case of malformed query string where there is `=` on the value, handle this character as part of the value instead of throwing an error. The following query string should no longer crash a program: key=value&key2=x=1 It will be interpreted as [("key", "value"), ("key2", "x=1")] This is correct according to latest WhatWG's HTML5 specification recarding the urlencoded parser: https://url.spec.whatwg.org/#concept-urlencoded-parser Older behavior can be restored using the -d:nimLegacyParseQueryStrict flag.
* Remove longestMatch in _WithPrefix iterators (#16689)konsumlamm2021-01-121-23/+15
|