Commit Graph

2962 Commits

Author SHA1 Message Date
Araq
5334fd4533 fixes #6021! 2017-06-27 15:34:42 +02:00
Yuriy Glukhov
0345238d6e Added moveDir (#6015) 2017-06-27 10:09:41 +02:00
Euan T
3a2ab81df1 Fix #6010 documenting subtracting time interval (#6012) 2017-06-22 13:52:13 +02:00
Fabian Keller
a6e0494a6f fixes #5966 2017-06-20 12:11:09 +02:00
Andreas Rumpf
1c8a50797a Merge branch 'fix-5995' of https://github.com/yglukhov/Nim into yglukhov-fix-5995 2017-06-20 10:44:03 +02:00
Daniil Yarancev
3b0dba7a75 Update times.nim 2017-06-18 01:28:48 +03:00
Yuriy Glukhov
58eae1171d Fixes #5995 2017-06-18 00:57:05 +03:00
John Novak
17b55f9b29 Add sgn() function to the math module (#5971) 2017-06-15 21:00:18 +02:00
Markus F.X.J. Oberhumer
a0f39e0ab4 Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)
This is a follow-up to #5823.
2017-06-15 20:42:23 +02:00
daneb
0a022664d5 Minor formatting 2017-06-13 21:45:18 +02:00
daneb
64cbcec54d Working example to resolve #5863 2017-06-13 21:08:04 +02:00
Varriount
32ced5d9e2 Merge pull request #5941 from tulayang/devel
Fix bad tail for status response
2017-06-13 04:17:21 -04:00
Varriount
a939a4b3a4 Merge pull request #5952 from Parashurama/fix_parseopt
Fix parseopt custom arguments
2017-06-13 04:11:58 -04:00
Araq
72115c2b09 fixes #5969 2017-06-09 13:39:42 +02:00
Andreas Rumpf
210955c3b6 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-06 18:03:51 +02:00
Andreas Rumpf
0915399b50 fixes a long standing string steams bug that caused lexbase to misbehave 2017-06-06 18:03:44 +02:00
Parashurama
27e2a34340 fixes parseopt/parseopt2 custom cmdline args. 2017-06-06 13:50:26 +02:00
wt
622b4a7b47 Update asynchttpserver.nim 2017-06-06 08:52:19 +08:00
Parashurama
2c5053caef fix countProcessors error return value. (#5942) 2017-06-05 13:21:57 +02:00
Parashurama
cd51628f57 fix orderedtable enlarge proc. (#5937)
This fixes issue #5917
2017-06-05 13:16:30 +02:00
wt
7e7699a856 Fix bad tail for status response 2017-06-05 10:52:23 +08:00
ftsf
eb83ec2685 Remove redundant filestream.close, causes crash (#5907)
File is already being closed by defer: file.close() closing it twice causes crash.
2017-05-29 14:57:49 +02:00
Dominik Picheta
bf0afaf3c4 Fixes web0 on Mac OS X. 2017-05-17 22:11:43 +01:00
Ruslan Mustakov
0a76387ba4 Fix posix_spawn error handling (#5826)
posix_spawn doesn't set errno - it returns the error code.
2017-05-17 22:40:55 +02:00
Dominik Picheta
b2e649c093 Fixes regression introduced by #5739. Improves newNimNode proc. 2017-05-17 20:05:21 +01:00
Dominik Picheta
d1daccac2f Fixes #5761. 2017-05-17 16:11:26 +01:00
Dominik Picheta
f86aca799c Remove processing hints for async procs. 2017-05-16 22:50:25 +01:00
Yuriy Glukhov
6599cae281 Async macro fixes (#5739) 2017-05-16 22:09:19 +02:00
Federico Ceratto
fcd86883ed Add waitFor on seq[Future], waitAll and more (#5189)
* Switch to unittest and speedup

* Make timers and callbacks fields public
2017-05-16 14:36:21 +01:00
Dominik Picheta
80aa02e7f9 Merge pull request #5748 from J3RN/meet-xdg-base-directory-spec
Modified ospath's getConfigDir to meet XDG spec
2017-05-16 14:11:31 +01:00
Christopher Dunn
117c983d13 Use writeable file in parsecfg.writeConfig()
Fixes #5816
2017-05-15 09:52:57 -05:00
Andreas Rumpf
3afd852f54 Fixes #5532 win async write (#5791)
* nimgrab tool bugfix: don't divide by zero
* fixes #5532 (asyncfile write on Windows)
* add a comment about what has been tried instead
2017-05-14 17:10:39 +02:00
Ruslan Mustakov
b826f85731 Remove unused oids import from asyncdispatch (#5811) 2017-05-14 15:07:33 +02:00
Simon Krauter
40e9e751f0 Extend documenation of formatFloat() (#5799)
Added line: "If ``precision == 0``, it tries to format it nicely." (copied from formatBiggestFloat())
2017-05-13 21:50:44 +02:00
Dominik Picheta
fa3436fb65 Deprecate osproc.select(). Refs #90. 2017-05-09 15:14:47 +01:00
Christopher Dunn
2670a6f8a5 setGlobalDispatcher() 2017-05-07 22:07:07 -05:00
Ruslan Mustakov
78315792d3 Implement 'take' for Table and TableRef (#5773) 2017-05-04 22:33:52 +02:00
Matt Riggott
c24dc7944a Add space to fix RST in captureBetween docs (#5769) 2017-05-04 20:09:24 +02:00
Ruslan Mustakov
e0059287bb Add 'hostname' param to wrapConnectedSocket 2017-05-04 16:27:08 +07:00
Dominik Picheta
27b571dd95 Fix different types for findExe's params across OS'. 2017-05-02 22:39:39 +01: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
Jonathan Arnett
a9de33643b Appended to comment 2017-04-28 14:33:23 -04:00
Jonathan Arnett
9193bcaeec Modified ospath's getConfigDir to meet XDG spec
I added a check for the XDG_CONFIG_DIR environment variable to meet the [freedesktop XDG Base Directory Specification](https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
2017-04-28 14:33:15 -04:00
Jacek Sieka
0055729755 WIFSIGNALED means process has exited too (with a bang!) (#5678) 2017-04-27 21:39:32 +02:00
Daniil Yarancev
40f79e6cdd Small grammar fixes in json.nim (#5758) 2017-04-26 20:29:53 +02:00
Daniil Yarancev
6ac37ee2fb Small base64.nim refactor (#5755)
* Small changes (var to let)

* Some additional `var` to `let`

* Fix

* Finally removed immediate
2017-04-25 20:47:26 +02:00
Zach Smith
fa592f3aad Minor: spelling correction in tables.nim (#5727) 2017-04-19 00:35:44 +02:00
Dominik Picheta
03ddfddcae Add test for previous commit. 2017-04-17 20:04:24 +02:00
Dominik Picheta
5a4c06dbdc Support JInt fields for 'float' in JSON umarshal macro. 2017-04-17 19:47:43 +02:00
Dominik Picheta
793d6efffb Fixes null handling for object refs in JSON unmarshal macro. 2017-04-17 18:43:31 +02:00