Daniil Yarancev
e29e6ec76e
[JSON] getBVal -> getBool; getFNum -> getFloat
2017-10-14 15:49:53 +03:00
GULPF
8bd9c7a4e6
Add dst formatting tests ( #6468 )
...
* Rename ttime.nim => ttimes.nim
* Add formating tests for DST, closes #3199
* Make appveyor green
* Remove broken test
2017-10-10 01:05:31 +02:00
Andreas Rumpf
ddc131cf07
the parser finally parses 'echo {1,2}' as it should
2017-09-30 21:35:30 +02:00
GULPF
5cf789ac3f
Improved unittest check macro, fixes #5784 ( #6446 )
2017-09-30 15:39:00 +02:00
Mamy Ratsimbazafy
5b8f33a905
Reorder json add and %, fixes #6385 ( #6388 )
...
* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385
* rename json test files
2017-09-16 19:09:44 +01:00
Yuriy Glukhov
7d49fc796d
Changed JSON stringification to preserve UTF ( #6330 )
2017-09-15 10:53:58 +02:00
Simon Krauter
94e336fe85
Fix wrong result of countLines() ( #6371 )
2017-09-15 10:45:22 +02:00
Araq
cf28222d2c
attempt to make travis green again
2017-09-05 23:26:17 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
andri lim
2ecdf582a8
fixes #6049 add mixin release, acquire to withLock ( #6113 )
2017-07-16 16:54:09 +02:00
andri lim
ca0155a458
fixes #6046 parsecfg failed to parse negative int ( #6097 )
2017-07-14 16:28:39 +02:00
Fabian Keller
a6e0494a6f
fixes #5966
2017-06-20 12:11:09 +02:00
Parashurama
cd51628f57
fix orderedtable enlarge proc. ( #5937 )
...
This fixes issue #5917
2017-06-05 13:16:30 +02:00
Araq
8f67b90997
Merge branch 'araq2' into devel
2017-05-17 22:13:57 +02:00
Dominik Picheta
d1daccac2f
Fixes #5761 .
2017-05-17 16:11:26 +01:00
Andreas Rumpf
61a0eba14f
Merge branch 'zahary' into araq2
2017-05-17 15:27:04 +02:00
Dominik Picheta
8dd5e94f5a
Merge pull request #5019 from FedericoCeratto/json_tests
...
Add JSON tests based on https://github.com/nst/JSONTestSuite
2017-05-16 14:37:42 +01:00
Andreas Rumpf
6c7d2ce8fb
disable fragile parts of thttpclient.nim
2017-05-04 22:37:07 +02:00
Andreas Rumpf
c066932635
added IP v6 parsing tests
2017-05-04 22:25:29 +02:00
Ruslan Mustakov
ecf278c467
Implement dial, support IPv6 in httpclient ( #5763 )
...
* Implement dial, support IPv6 in httpclient
Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.
Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.
Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.
Fixes : #3811
* Check domain during connect() only on non-Windows
This is how it was in the previous implementation of connect().
* Call 'osLastError' before 'close' in net.dial
* Record osLastError before freeAddrInfo in net.dial
* Add missing docs for 'dial' proc
* Optimize dial to create one FD per domain, add tests
And make async IPv6 servers work on Windows.
* Add IPv6 test to uri module
* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
Zahary Karadjov
622100adb6
close #5757
2017-04-30 21:57:13 +03:00
Dominik Picheta
03ddfddcae
Add test for previous commit.
2017-04-17 20:04:24 +02:00
Dominik Picheta
793d6efffb
Fixes null handling for object refs in JSON unmarshal macro.
2017-04-17 18:43:31 +02:00
Dominik Picheta
2108dcf0d5
Fix JSON macro bug with ref objects.
2017-04-17 18:01:38 +02:00
Dominik Picheta
88cb40cd31
Implement support for enum fields in JSON macro.
2017-04-09 17:22:40 +02:00
Federico Ceratto
9f77233ab4
Add JSON tests based on https://github.com/nst/JSONTestSuite
2017-04-09 14:04:37 +01:00
Dominik Picheta
eedc6fecd7
Document to macro in JSON and add example.
2017-04-09 12:48:07 +02:00
Dominik Picheta
a883424d0d
Implements else branch for JSON unmarshalling of object variants.
2017-04-09 11:49:50 +02:00
Dominik Picheta
658467a31f
Improve error messages and add tests for the JSON macro.
2017-04-08 22:06:57 +02:00
Dominik Picheta
cc223ff7d8
Support int, string and bool fields in unmarshal json macro.
2017-04-08 21:23:35 +02:00
Dominik Picheta
12aafb25cc
First implementation of JSON unmarshal macro.
2017-04-08 20:55:32 +02:00
Anatoly Galiulin
3374bcb373
parsecfg: handle streams and strings when saving or loading configuration ( #5554 )
2017-04-06 08:10:08 +02:00
Anatoly Galiulin
434a7c8426
Fix posix version of moveFile between different filesystems ( #5580 )
2017-03-23 23:40:03 +01:00
Ruslan Mustakov
310b73b556
Reduce the scope of stackTrace var ( #5583 )
...
Fixes #5571 .
2017-03-22 01:06:05 +01:00
Parashurama
976095c894
add bitops module for optimized bit manipulation. ( #5201 )
2017-03-14 21:32:54 +01:00
c-blake
d59441340d
Fixes incorrect fd==0 test on Unix; Conserves handles by default. ( #5512 )
...
* Fix 2 problems. First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles). Use -1 instead for an invalid
fd. Second, it is best practice to conserve open fds on Unix and file handles
on Windows. These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``). Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way. This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
Florent
93305443aa
close #5472 nre tests should be run ( #5474 )
...
nre tests were just being compiled - changed so that a failure causes exit code to defer causing `tester` to report it as a failure
2017-03-04 11:13:08 +01:00
Florent
f7af16a1c9
More robust tests for #5453 ( #5469 )
2017-03-03 01:30:49 +01:00
Florent
34a3d40d18
fixes #5444 - nre.findIter keeps searching when no match is possible ( #5453 )
2017-03-02 11:48:41 +01:00
Federico Ceratto
dd4d47c671
Add gethostname to nativesockets ( #5443 )
2017-03-01 09:44:24 +01:00
Andreas Rumpf
e5341a391d
Merge pull request #5373 from nim-lang/feature/async-streams
...
Async streams and HTTP client streaming downloads support
2017-02-26 17:35:08 +01:00
Fabian Keller
f250c30b9d
Make use of used in unittest ( #5410 )
2017-02-25 21:18:16 +01:00
Araq
1961e444c3
Merge branch 'devel' into feature/async-streams
2017-02-25 11:18:48 +01:00
Anatoly Galiulin
279e4b0451
Fixes #5382
2017-02-13 13:35:40 +01:00
Dominik Picheta
f9f86899b5
Implement streamed async/sync downloadFile and deprecate old one.
2017-02-11 14:00:53 +01:00
Dominik Picheta
1b4067a81b
Implement streamed body reading in httpclient.
2017-02-11 12:43:16 +01:00
Araq
794d36cf31
fixes #5349
2017-02-08 14:33:05 +01:00
Parashurama
c57fcf42df
fix string slice & splice ( #5311 )
...
code fixes courtesy of @memophen
2017-02-01 12:13:01 +01:00
Ruslan Mustakov
35d48765fb
Use onThreadCreation to set default SSL context for each thread ( #5265 )
...
Fixes : #4998
2017-01-23 21:04:14 +01:00
Araq
cdebcf23d9
new segfaults.nim stdlib module works on Windows
2017-01-20 17:08:11 +01:00