summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* fix #17385, `len` must be declared before `items` (#17386)Miran2021-03-151-21/+21
|
* Clean up imports in httpclient.nim (#17367)xioren2021-03-141-4/+5
| | | | | | | | | | | * Clean up imports Fix duplicate 'streams' import. * Update lib/pure/httpclient.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* rename channels to channels_builtin (#17330)flywind2021-03-122-2/+2
| | | | | | | * improve test coverage for isolation * a bit better * rename channels to channels_builtin
* Relocate 4xx/5xx exception in downloadFile (#17332) [backport:1.2]xioren2021-03-121-6/+6
| | | Move 4xx/5xx exception to before disk i/o. As it stands an empty file is created on http error 4xx/5xx.
* refs #4347, add `ZZZ` and `ZZZZ` patterns for timezone offsets without ↵Miran2021-03-111-17/+29
| | | | colons (#17318)
* Clarify behaviour of ```replace``` (#17337)Héctor M. Monacci2021-03-111-1/+1
| | | | | | | | | | | | * Clarify behaviour of ```replace``` Clarify behaviour of ```replace``` by adding the word ```every``` * Update lib/pure/strutils.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Use `.. warning::` (#17320)konsumlamm2021-03-1010-67/+63
|
* add typetraits.OrdinalEnum, enumutils.symbolName (#17281)Timothee Cour2021-03-101-5/+9
|
* Change parameter names in lists module from `L` (#17321)konsumlamm2021-03-101-127/+127
|
* Improve the lists module (#17312)konsumlamm2021-03-101-166/+185
|
* Small improvements for the distros module (#17309)konsumlamm2021-03-091-25/+18
|
* Add Portals (#17306)Juan Carlos2021-03-091-0/+4
| | | | | * Add Portals * Add Portals
* fix #17275 (#17276)flywind2021-03-091-3/+6
|
* remove unnecessary deps (#17307)flywind2021-03-091-2/+0
| | | | | | | * improve test coverage for isolation * a bit better * remove unnecessary deps
* fix #13491 #17279 runnableExamples now don't get lost in translation (#17282)Timothee Cour2021-03-091-3/+2
| | | | | * fix #13491 runnableExamples rendering * fix a runnableExamples thanks to this bugfix
* stdlib/os: add isAdmin (#17012)Roman Inflianskas2021-03-071-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: add isAdmin * uint8 -> cuchar, assert isAdmin on Azure Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/pure/os.nim docs Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments on #17012 * Raise on errors in #17012 * Check the result of FreeSid in #17012 * Change case in #17012 * Fix memory leak in #17012 * Address comments in #17012 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use lowercase --define switches (#17283)flywind2021-03-077-24/+24
|
* runnableExamples for walkFiles + friends (#17271)Timothee Cour2021-03-061-0/+12
| | | | | * runnableExamples for walkFiles + friends * address comments
* Remove support for named procs with sugar.=> (#17220)konsumlamm2021-03-051-10/+0
| | | | | | * Add docs & tests for named procs with sugar.=> * Remove support for named procs in sugar.=> * Resolve conflict * Fix test
* follow up #17165 (#17262)flywind2021-03-041-3/+2
|
* Added assertion to clamp (#17248)Jason Beetham2021-03-041-0/+2
| | | Co-authored-by: flywind <xzsflywind@gmail.com>
* reuse jsffi in json module (#17165)flywind2021-03-041-20/+7
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage
* use .. warning:: (#17226)flywind2021-03-044-11/+10
| | | | | | | * remove unnecessary when statement * remove outdated codes * use warnings
* Added math.clamp for slice clamping (#17246)Jason Beetham2021-03-031-0/+10
| | | | | | | * Added math.clamp for slice clamping * Added inline to math.clamp * Cleaned up math.clamp + test
* https://github.com/nim-lang/Nim/pull/15826/files#r585368355 (#17233)Juan Carlos2021-03-031-2/+3
|
* Use readable escape sequences (#17241)Clyybber2021-03-031-2/+2
|
* Replace double backticks with single backticks - Part 5 out of ~8 (#17217)Danil Yarantsev2021-03-011-232/+232
| | | Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Replace double backticks with single backticks - Part 4 out of ~7 (#17216)Danil Yarantsev2021-03-015-120/+120
|
* use `-r:off` for runnableExamples that should compile but not run (#17203)Timothee Cour2021-03-013-27/+25
| | | | | * use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
* Replace double backticks with single backticks - Part 3 out of ~7 (#17207)Danil Yarantsev2021-02-285-159/+159
|
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-2827-89/+89
|
* Fix unicode.split with seperators examples (#17176)zetashift2021-02-261-58/+25
| | | | | | | | | | | | | | | | | | | | | | * Fix unicode.split with seperators examples https://nim-lang.org/docs/unicode.html#split.i%2Cstring%2CRune%2Cint didn't work with the set constructor `{}` so replaced it with a string that's converted to an openArray compatible type containing `Rune`s. * Add runnableExamples to unicode.split * Add runnableExamples to split with single separator too * Simplify runnableExamples unicode.split * Improve the rest of the runnableExamples with the simplified code * Simplify runnableExamples of unicode.split even more * Formatted unicode.split example * Update lib/pure/unicode.nim Co-authored-by: zetashift <rishi2@laptop.localdomain> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* hashes: support object default hash (#17175)Timothee Cour2021-02-261-17/+13
|
* improve docs for sugar.collect (#17188)Timothee Cour2021-02-261-24/+29
|
* clarify the docs of existsOrCreateDir a bit (#17182)flywind2021-02-251-4/+3
| | | | | | | * remove unnecessary when statement * remove outdated codes * clarify the docs a bit
* refs #17114: workaround for arm64 which should segfault but does not (#17178)Timothee Cour2021-02-251-0/+2
| | | | | | | * refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* mark inline (#17180)flywind2021-02-241-2/+2
|
* use single backtick (#17181)flywind2021-02-2410-381/+381
|
* `std/options`: `$some(3)` is now `"some(3)"`, etc. (#17147)Timothee Cour2021-02-241-9/+15
| | | | | | | * std/options: $some(3) is now "some(3)", not "Some(3)", `$none(int)` is now `"none(int)"` instead of `"None[int]"` * fix tests * disable optionsutils
* remove deprecated stuff in unittest module (#17156)flywind2021-02-241-38/+30
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * remove deprecated stuff in testament * fix
* add strbasics.strip (#16280)flywind2021-02-241-0/+1
|
* [stdlib] make cookies module modern (#17116)flywind2021-02-241-13/+28
| | | | | | * update cookies module * introduce sameSite.Default Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* fixes yet another SSL problem on Windows [backport:1.2] (#17167)Andreas Rumpf2021-02-241-1/+1
|
* use single backtick (#17166)flywind2021-02-2312-305/+305
|
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-0/+11
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
* A few rst doc fixes (#17151)Danil Yarantsev2021-02-231-1/+1
| | | | | * Fix a couple of rst formatting issues * no need for the extra space
* Improve the ropes module (#17145)konsumlamm2021-02-221-63/+47
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-221-5/+12
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add example for pattern matching on options (#17120)konsumlamm2021-02-221-21/+49
| | | | | | | | | | | * Add example for pattern matching on options * Use code-block * Apply suggestions * Use block comments * Fix example
* fix prelude regression refs #16238: `include prelude` doesn't interfere with ↵Timothee Cour2021-02-221-12/+16
| | | | | | | | | `nim doc` (#17111) * fix bug1 from #16238 nim doc now works with include prelude * fix for windows * fixup