Andreas Rumpf
4e83a24662
Merge branch 'maxsplit' of https://github.com/mjoud/Nim into mjoud-maxsplit
2016-05-28 17:50:36 +02:00
Konstantin Molchanov
6075bd4231
Stdlib: httpclient: export strtabs added.
...
When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs.
Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
2016-05-28 10:25:36 +04:00
cheatfate
49c50e4e21
Introduce template withValue() for tables.nim too.
2016-05-27 01:00:05 +03:00
cheatfate
a2393d0593
Introduce template withValue()
2016-05-26 15:32:14 +03:00
Andreas Rumpf
301d39b882
Merge pull request #4130 from lihf8515/devel
...
Update parsecfg.nim
2016-05-26 10:51:10 +02:00
cheatfate
d4f3db3bd0
Resolve bugs
2016-05-24 01:37:31 +03:00
cheatfate
b27ee842d4
Resolve #4200
...
Resolve [Deprecated] warning for raiseOsError at line 878
2016-05-24 00:33:05 +03:00
def
834ad57d94
Fix toRational overflow by calculating internally with int64s ( fixes #4194 )
2016-05-22 18:09:55 +02:00
cheatfate
aba60e54d5
Resolve bugs with deep recursion of asyncdispatch.
...
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Dominik Picheta
f4f7edf00f
Merge pull request #4075 from yglukhov/json
...
Json serialization for openarrays and objects
2016-05-15 12:39:26 +01:00
Lompiktab
72ba30d0a9
Fix 2 compile errors in LockFreeHash.nim
...
* type mismatch in range (line 55)
* invalid indentation (line 249)
2016-05-14 09:41:35 +04:00
Stephane Fontaine
fbd6291f2f
Fix missing ]
...
other nim can't parse the file.
Introduced in 192ba3bbc0 (diff-1a01187da2fad29f03da8ce36ffe1f91)
2016-05-13 22:14:22 +04:00
Yuriy Glukhov
6e135468f8
Json serialization for openarrays and objects
2016-05-13 17:25:40 +03:00
Dominik Picheta
299989f3aa
Restore sanity check for bytesReceived in asyncdispatch.
2016-05-13 13:41:46 +01:00
cheatfate
6fa6fdeb34
Resolve bugs based on unreliable bytesReceived value.
2016-05-12 21:11:42 +03:00
Andreas Rumpf
c02963bcea
Pegs: fixes edge case
2016-05-12 01:36:23 +02:00
Andreas Rumpf
34110fc118
Merge pull request #4136 from oderwat/HARA-peg-replace-cb
...
Added a replace() with callback to pegs.
2016-05-11 23:31:22 +02:00
Araq
e101773d8b
added scanp macro as an alternative to pegs
2016-05-10 22:03:07 +02:00
Araq
33aeadab73
minor whitespace change
2016-05-10 22:03:07 +02:00
Araq
b357e80833
added strscans stdlib module
2016-05-10 22:03:07 +02:00
Araq
c55ff72ea7
split too long lines
2016-05-10 22:03:07 +02:00
Hans Raaf
fcfe27a1f8
Added a replace() proc using a callback to pegs.
...
I was missing a nice way to use pegs with a more specialized replace
functionality. Here my try to create a universal and versatile version
of replace for that.
2016-05-07 17:53:43 +02:00
lihf8515
42bd3fd953
Update parsecfg.nim
2016-05-02 17:00:58 +08:00
niv
5da7f28990
pure/logging: add notice level, suggest usecases
2016-05-01 12:51:36 +02:00
Dominik Picheta
d2b191dc73
Merge pull request #4122 from yglukhov/binheap
...
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 00:04:32 +03:00
Andreas Rumpf
f9d9cdd1ee
Merge pull request #4099 from cheatfate/asyncdispatch2
...
Proper definitions for functions СreateIoCompletionPort and GetQueuedCompletionStatus
2016-04-26 16:53:40 +02:00
def
d4cf5d13f0
Make SMTP example compile
2016-04-24 14:56:24 +02:00
cheatfate
2a2a3d6c39
CompletionKey parameter for functions CreateIoCompletionPort,
...
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
2016-04-19 03:04:44 +03:00
Andreas Rumpf
7c3f5afd5b
Merge pull request #4081 from yglukhov/ordered-tables-del
...
Added del for OrderedTable and OrderedTableRef
2016-04-13 13:32:52 +02:00
Yuriy Glukhov
b48d98b846
Added del for OrderedTable and OrderedTableRef
2016-04-13 13:41:32 +03:00
cheatfate
be5639582e
Correct proper usage of getOverlappedResult()
2016-04-13 13:19:50 +03:00
Yuriy Glukhov
8cd4ec978c
Fixed base64 encode
2016-04-11 16:47:18 +03:00
Yuriy Glukhov
181c834a93
Added json.getOrDefault along with {singleKey} tr optimization.
2016-04-06 14:16:30 +03:00
Dominik Picheta
9b6fda144a
Some documentation fixes in times module.
2016-04-06 10:45:39 +01:00
coffeepots
d9ed61fa62
Deprecate timeToTimeInfo, add str->time procs
...
* depreciate timeToTimeInfo, add str->time procs
initTime allows creating times from strings. initTimeFromStr offers a default format string compatible with $Time.
timeToTimeInterval changed to work properly.
* Spell {.deprecated.} correctly
* deprecated timeToTimeInfo, removed initTime procs
Is it even worth depreciating timeToTimeInfo rather than just removing it, considering it's just wrong and we have getLocalTime and getGMTime that actually work? Also, if I'm renaming timeToTimeInfo -> toTimeInfo etc, isn't the deprecated tag kind of redundant?
* Updated names for toTime and toTimeInterval procs
* Added type to toTime template
This should allow compilation of os.nim now that toTime is defined in times.nim.
* Updated toTime template to use {.gensym.}
Local templates default to 'bind' semantics, not 'gensym'. This was causing a failure to 'see' the local toTime template.
2016-04-06 10:36:17 +01:00
Dominik Picheta
c36421f8e4
Fixes subexes tests which were broken in 73e48f9c9.
2016-04-05 23:08:51 +01:00
Dominik Picheta
3379646c16
Add -d:nimJsonGet flag for json.[] and news entry.
2016-04-05 21:28:53 +01:00
Dominik Picheta
1446dc87c3
await x where x is Fut var now reads after yield. Fixes #3964 .
2016-04-04 22:50:31 +01:00
Dominik Picheta
b22305758d
Fix deprecation warning in net module.
2016-04-04 21:52:49 +01:00
Dominik Picheta
c90df48293
Fixes JSON module problems. Fixes #3107 .
2016-04-04 21:52:10 +01:00
Dominik Picheta
8050f43588
Fixed some warnings in httpclient, net, and openssl.
2016-04-04 21:28:21 +01:00
Dominik Picheta
3ad103b8cc
Fixes small mistake in `net` module.
2016-04-04 21:20:29 +01:00
Dominik Picheta
03be03c6e4
Improved asyncnet docs (SSL procs now shown). Deprecated handshake.
2016-04-04 21:00:43 +01:00
Dominik Picheta
8e6f5f20f6
Improve net and ssl module docs.
2016-04-04 20:47:47 +01:00
Dominik Picheta
38d6e2c221
Deprecated matchers module. Fixes #2446 .
2016-04-04 20:22:22 +01:00
Dominik Picheta
442a682c33
Better additionalInfo OSError message, ref #2650 .
2016-04-04 14:44:26 +01:00
Dominik Picheta
73e48f9c9c
Fixes #4037
2016-04-04 13:39:42 +01:00
Peter Cai
3035c2c63a
net: disable SSLv3
...
SSLv3 is no longer secure and has been removed from OpenSSL since 1.0.2.
Disabling this will enable Nim programs to run against OpenSSL 1.0.2.
2016-04-03 15:15:48 +00:00
Dominik Picheta
a8fcc546be
Merge pull request #3997 from endragor/portable-mersenne
...
mersenne.nim public procs are no longer platform-dependent
2016-04-02 17:35:31 +01:00