Commit Graph

1964 Commits

Author SHA1 Message Date
Araq
c852143f3a os.walkDir supports yielding relative paths 2015-09-29 19:30:44 +02:00
Araq
ab6f8f6e5b fixesunicode.lastRune 2015-09-29 19:30:44 +02:00
Araq
985594cbb8 added streams.readAll proc 2015-09-29 19:30:43 +02:00
Dominik Picheta
d8a10457e2 Fixes #3207. 2015-09-28 23:04:17 +01:00
JamesP
ff9a3d39d7 add default file mode to newFileStream() 2015-09-26 08:18:42 +10:00
JamesP
eed1000252 add examples to top of module for stringStream and fileStream 2015-09-26 08:18:09 +10:00
Andreas Rumpf
308a0d0a55 Merge pull request #3316 from jlp765/memfilesWinClose
bug fix: close() only unmapViewOfFile when fHandle is valid.
2015-09-24 16:04:42 +02:00
Dominik Picheta
d92f252609 Merge pull request #3364 from tmm1/osx-ssl-compile
Avoid referencing undefined SSLv2_method on MacOSX
2015-09-24 01:16:57 +01:00
Aman Gupta
8edbef346a raise with error message 2015-09-23 17:15:13 -07:00
JamesP
305766a9fa Bug fix: change non-fmRead file mode to set GENERIC_READ or GENERIC_WRITE
instead of GENERIC_ALL
which on 64bit windows rasied an [OSError] exception
2015-09-24 09:04:55 +10:00
JamesP
bdc1c5ee84 change type of windows handles to Handle 2015-09-24 09:03:03 +10:00
Dominik Picheta
0906bf5d73 Merge pull request #3321 from Nycto/devel
Extend options module
2015-09-23 21:19:03 +01:00
Araq
7c012cb797 fixes #3356 2015-09-23 21:46:37 +02:00
Aman Gupta
4a715b8e08 disable SSLv2 2015-09-23 12:03:14 -07:00
Nycto
6fa01e3490 Extend option functionality 2015-09-23 08:52:51 -07:00
Aman Gupta
5f95c4e055 avoid referencing undefined SSLv2_method on mac osx 2015-09-22 19:54:15 -07:00
JamesP
7656fae456 fix wasOpened reference and set to false on close 2015-09-23 06:20:19 +10:00
Peter Mora
925e7b0ca1 fixing TypelessParam warning in x=>x+1, added test 2015-09-22 18:34:43 +02:00
JamesP
d23c697044 Add wasOpened flag for windows, so not attempt close when unopened 2015-09-22 16:16:51 +10:00
JamesP
b6b2750327 Undo zero check 2015-09-22 15:54:44 +10:00
Araq
73279aba39 added unicode.lastRun, unicode.graphemeLen 2015-09-21 15:49:46 +02:00
Aman Gupta
cd40137d1e mark code-blocks in 2d/3d docs 2015-09-20 18:24:49 -07:00
Aman Gupta
50b4406694 s/acces/access/g 2015-09-20 18:24:38 -07:00
Dominik Picheta
492f5eb704 Fixes asyncnet.recvLine. Fixes #3346. 2015-09-19 14:01:45 +01:00
wt
4231574111 Fix proc closeSocket (posix): bad file descriptor error 2015-09-18 18:26:15 +08:00
Araq
a4a5003b7d fixes #3312 2015-09-18 02:24:13 +02:00
Dominik Picheta
432884861e Merge pull request #3337 from yglukhov/json-coerce-int-to-float
Transparently coerce int to float in JsonNode.getFNum
2015-09-17 23:09:00 +01:00
Dominik Picheta
0f933bbf55 Deprecated ftpclient module. 2015-09-17 23:05:16 +01:00
Dominik Picheta
5998f53280 Added examples to asyncftpclient module. 2015-09-17 22:45:30 +01:00
Dominik Picheta
6b002e805e Added examples and more docs to base64 module. 2015-09-17 20:44:16 +01:00
Yuriy Glukhov
721324380d Transparently coerce int to float in JsonNode.getFNum 2015-09-17 17:54:01 +03:00
Rostyslav Dzinko
bfe84d9c8b Added missing 412 - 417 http codes which are standard according to rfc2616 which is HTTP/1.1 standard. 2015-09-17 16:01:11 +03:00
Dominik Picheta
4da5e47414 Implements getPeerAddr/getPeerName on Windows and adds IDX. 2015-09-15 10:37:16 +01:00
Dominik Picheta
01c99ff258 Merge branch 'socket-address' of https://github.com/rbehrends/Nim into rbehrends-socket-address 2015-09-15 09:20:45 +01:00
Andreas Rumpf
fa17707684 Merge pull request #3307 from rogercloud/devel
Fix issue #2245
2015-09-14 17:37:54 +02:00
Reimer Behrends
b9df1323f7 Provide access to getsockname()/getpeername().
This patch implements procedures getLocalAddr() and getPeerAddr() that
return the results of getsockname() and getpeername(), respectively, as
pairs (string, Port) for both Socket and SockedHandle.
2015-09-14 01:42:46 +02:00
JamesP
88fc415c69 bug fix: close() only unmapViewOfFile() when fHandle is valid.
Added extra test on windows close so if already closed it
doesn't throw an exception.
2015-09-12 14:41:50 +10:00
Dominik Picheta
77c2bcf079 Improve asyncdispatch error messages, fix some tests on Windows. 2015-09-11 14:35:42 +01:00
Dominik Picheta
808253370b Implement strutils.indent 2015-09-11 14:35:25 +01:00
Dominik Picheta
28e3ad945a Reintroduce FutureVar[T] from commit 72b4912c84. 2015-09-11 13:03:59 +01:00
JamesP
2d1f26302c Example: add extra getGmTime interval addition example 2015-09-10 19:29:26 +10:00
JamesP
f5d55ad012 tests added: toSeconds with local/GM timezones, interval add/sub
with local/GM timezones
2015-09-10 19:21:27 +10:00
JamesP
c122d71e66 bug fix: + and - handle GM and Local time correctly
eg,  getGmTime(getTime()) + initInterval(hours=1) gave incorrect results
2015-09-10 17:38:00 +10:00
JamesP
612cd2161a add examples block to top of times module 2015-09-10 17:29:52 +10:00
Roger Shi
16fe63180f test case for #2367 2015-09-10 15:16:01 +08:00
Roger Shi
8f9ce5285f fix #2367 2015-09-09 11:40:13 +08:00
Andreas Rumpf
55e479657a Merge pull request #3303 from Amrykid/amrykid-name-change
Fixed my name.
2015-09-08 11:06:03 +02:00
Rostyslav Dzinko
bd12b7de96 Added == operator for comparing two Object IDs 2015-09-08 11:16:22 +03:00
Alexander Mitchell-Robinson
564c9f4013 Fixed my name. 2015-09-07 19:51:52 -05:00
Andrey Sobolev
4e57ea9345 Merge remote-tracking branch 'upstream/devel' into improve-xmltree 2015-09-07 21:20:30 +06:00