Commit Graph

4021 Commits

Author SHA1 Message Date
narimiran
2074ad1416 strutils: document parseEnum [ci skip] 2019-02-25 11:35:37 +01:00
Federico Ceratto
28a83a8388 Handle IPv6 in bindAddr #7633
Add test
2019-02-23 13:06:26 +00:00
LemonBoy
71df1b060b Tighten the conversion from tyRange to scalar types (#10495)
* Tighten the conversion from tyRange to scalar types.

Introduce the `isIntConv` rule for unsigned types.
Do not allow mixed-signedness conversions between ranges and scalar types.

* More json adjustments
2019-02-23 11:52:52 +01:00
Miran
cedf784751 better docs: options (#10720) 2019-02-22 12:28:00 +01:00
Araq
ffd0f81247 times.nim: avoid some stdlib dependencies 2019-02-20 12:30:51 +01:00
Miran
6a5c74722e add xmltree.clear, fixes #3797 (#10711)
* add `xmltree.clear`, fixes #3797
* use `setLen`
2019-02-20 08:41:34 +01:00
Araq
68ce92d4eb fixes a critical strutils bug [backport] 2019-02-19 19:37:25 +01:00
Oscar Nihlgård
1a771a8248 Replace the duration conversion procs with new improved ones (#10710) 2019-02-19 19:12:44 +01:00
Miran
50d1a46537 better docs: osproc (#10708)
* better docs: osproc
* fix a typo in the docs, deprecate "demon"
2019-02-19 17:25:03 +01:00
Araq
e4a76c6ebf fixes #6832 2019-02-19 17:17:12 +01:00
Miran
51f516e030 better docs: strtabs (#10704) 2019-02-19 12:49:47 +01:00
Araq
315d438677 asyncnet.nim: Minor code cleanup 2019-02-19 11:56:14 +01:00
Federico Ceratto
d8ff25f032 Provide access to getsockname()/getpeername()
Port of #3323 with added tests
2019-02-17 17:04:57 +00:00
Federico Ceratto
51c43218c9 Comment on isSorted complexity. (#10686) [ci skip] 2019-02-16 15:56:26 +01:00
Juan Carlos
b3ffbac93c Return result when found instead of keep iterating for no reason the whole mimedb on mimetypes module (#10675) 2019-02-15 08:42:13 +01:00
Araq
70f0aab188 osproc: fix minor typo 2019-02-14 15:55:37 +01:00
Arne Döring
6870345cd2 32 bit fixes (#10608) 2019-02-12 22:00:31 +01:00
Timothee Cour
bdc150adff randomize: added doAssert(seed!=0) to avoid invalid (non-random) behavior (#10635) 2019-02-12 09:33:20 +01:00
Arne Döring
c59fa80367 deprecated list comprehension (#10636) 2019-02-12 08:10:40 +01:00
Juan Carlos
33ddc21057 Lowercase ext before querying the mimedb on mimetypes module, change isMainModule to runnableExamples (#10644) 2019-02-12 01:22:04 -05:00
narimiran
242b6eb16c better docs: times 2019-02-11 15:36:35 +01:00
Juan Carlos
6cd3fff093 Update mimetypes (#10621)
* Update mimetypes const mimes, Fix for Nim mimetypes to recognize Nim and Nimble
2019-02-11 11:44:49 +01:00
Jjp137
305f6052ee better docs: random (#10546) 2019-02-11 08:50:31 +01:00
Timothee Cour
4910608394 revive #10228 (fix #9880) (#10610)
* Make index out of bounds more useful by including the 'bounds'.
* fixes #9880 index out of bounds (remaining cases); revives #10228
* change err msg to: `index 3 not in 0 .. 1`
2019-02-10 22:07:11 +01:00
Emery Hemingway
a9b2e83daa Use standard XML escaping 2019-02-10 16:10:23 +01:00
Juan Carlos
b73ee96641 Fixes #10357 (#10618) 2019-02-10 08:53:38 +01:00
Oscar Nihlgård
f1ae0ed6ea Implement json.% for tables and options 2019-02-10 00:29:24 +00:00
LemonBoy
bcbe130ea7 Fix compilation w/ Atomic[T] types (#10607) 2019-02-09 07:30:48 +01:00
Andreas Rumpf
65f3e390e8 fixes #10584 [backport] 2019-02-06 20:58:28 +01:00
Oscar Nihlgård
bfb2ad5078 New implementation of times.between (#10523)
* Refactor ttimes

* New implementation of times.between

* Deprecate times.toTimeInterval
2019-02-06 20:13:29 +01:00
Araq
e457ccc7e1 make travis green 2019-02-06 17:42:38 +01:00
Araq
035134de42 make streams.close more forgiving in order to break less code out there 2019-02-06 15:51:21 +01:00
Vindaar
7424ea4315 fix typo in stats module (#10562) [ci skip] 2019-02-05 15:37:55 +01:00
Arne Döring
824f39b32e Vm bitops fixes (#10520) 2019-02-05 09:31:37 +01:00
LemonBoy
bcb5995ddf Fix regression w/ keep-alive connections to AsyncHttpServer
We should keep listening if the connection is marked as keep-alive.

Fixes #10536
2019-02-04 22:16:55 +00:00
LemonBoy
59574b89a6 Clean up some code using a tuple unpack expression 2019-02-04 22:16:55 +00:00
LemonBoy
d7ca7fd03e Small change in how tuples are handled in async macro
A small change that brings no functional change beside a flatter tree.
2019-02-04 22:16:55 +00:00
Andreas Rumpf
56d2b08c5a times.nim: make it compile on older OSX versions 2019-02-04 21:06:43 +01:00
Oscar Nihlgård
315abd7163 Change strtabs.nextTry to match the assumption in strtabs.del 2019-02-03 09:37:11 +01:00
Oscar Nihlgård
0091f2ad3b Implement {.booldefine.} (#10533) 2019-02-03 09:06:00 +01:00
Timothee Cour
2b35a51651 brew almost never requires sudo (#10525) 2019-02-01 14:56:31 -08:00
Oscar Nihlgård
1ac28f6f5e Deprecate the times.countX procs (#10522) 2019-02-01 20:05:05 +01:00
narimiran
237a36075a another quickfix for os.nim documentation 2019-02-01 19:44:19 +01:00
narimiran
9bd0c2d59a quick-fix for os.nim documentation 2019-02-01 19:37:24 +01:00
Andreas Rumpf
fc99ddc648 Merge pull request #10513 from LemonBoy/uri-encq
Add `encodeQuery` and `?` to Uri module
2019-01-31 18:19:37 +01:00
Araq
0ecec8362a distros.nim: brew usually requires 'sudo' 2019-01-31 15:12:36 +01:00
LemonBoy
ec26bc472d Add encodeQuery and ? to Uri module 2019-01-31 13:47:51 +01:00
LemonBoy
81e5a35d56 Show correct address for ipv6 sockets, fixes #7634 (#10505) 2019-01-31 07:34:26 +01:00
Timothee Cour
abcd9fd2e8 fixup #10466 to use runnableExamples (#10510) 2019-01-31 07:19:16 +01:00
alaviss
acac107fe7 times: use clock_gettime() for epochTime() (#10499)
* times: use clock_gettime() for epochTime()

Fixes #10494

* times: remove gettimeofday()

As FreeBSD and OSX support CLOCK_REALTIME, there's no reason to keep
this code around.
2019-01-30 19:52:21 +01:00