Araq
77dc0e50ff
fixes #3474
2015-10-25 02:38:33 +02:00
Andreas Rumpf
1c9f05ef13
Merge pull request #3442 from Dhertz/devel
...
Make sure the json module decodes UTF16 correctly
2015-10-23 02:02:07 +02:00
Andreas Rumpf
ba63ea9e82
Merge pull request #3454 from jlp765/osproc
...
add simple example for execProcess, exeCmd, execCmdEx
2015-10-23 02:01:26 +02:00
Araq
3ccd5ca64b
make terminal.nim work with --app:gui
2015-10-19 16:09:35 +02:00
Araq
c977daf9d8
added poDemon flag for process management
2015-10-19 16:09:34 +02:00
Adam Strzelecki
2bc6acc808
terminal: Support both styled stdout and stderr
...
This is important if we want to write styled diagnostics to stderr, eg. some
tool outputting results to stdout, but writing styled error messages to stderr.
Previously this module was assuming we are writing only to stdout. Now all
module procs take file handle as first argument. Wrappers assuming stdout are
provided for backwards compatibility.
The new terminal.styledWriteLine(f, args) is provided and documented as
counterpart for unstyled plain writeLine(f, args).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
9ef50717fa
terminal: Remove superflous hStdout = conHandle
...
Use just hStdout on Windows to keep handle to process stdout.
2015-10-16 20:55:17 +02:00
JamesP
f596e8145d
add simple example for execProcess, exeCmd, execCmdEx
2015-10-16 23:13:14 +10:00
Andreas Rumpf
612d3f84fb
Merge pull request #3437 from nim-lang/threadpool-isready
...
Implement isReady procedure in threadpool module.
2015-10-15 23:55:29 +02:00
JamesP
36cf87e6a9
add {.pop.} for {.push debugger:off.} to balance push/pop
2015-10-14 09:11:19 +10:00
Araq
f4bfa076ae
updated httpclient to use tables.getOrDefault
2015-10-14 00:41:04 +02:00
Daniel Hertz
42975e6338
Add UTF-16 decoding tests to json module
2015-10-13 14:56:10 -04:00
Daniel Hertz
e5bcd287f8
Make sure the json module decodes UTF16 correctly
...
Javascript uses UTF-16 as its internal representation of strings,
so JSON does so as well. This means that we could have surrogate
pairs, with codepoints above 0xFFFF that take 2 ecape codes to
decode.
2015-10-13 14:42:24 -04:00
Araq
aeb69dbe84
Merge branch 'devel' of https://github.com/nim-lang/Nim into devel
2015-10-13 15:54:33 +02:00
Araq
8be9e46403
udpated the compiler and tester to use getOrDefault
2015-10-13 14:10:33 +02:00
rbmz
4548c1aa9b
added all/any/allIt/anyIt with tests and inline documentation
...
Signed-off-by: rbmz <rbmz@users.noreply.github.com >
2015-10-13 01:10:25 -03:00
Araq
2fda95a4d6
added getOrDefault; bootstrapping works again
2015-10-13 03:03:05 +02:00
Araq
d8b0edc323
Merge branch 'mget' of https://github.com/def-/Nim into def--mget
...
Conflicts:
lib/pure/collections/critbits.nim
lib/pure/collections/tables.nim
lib/pure/xmltree.nim
lib/system/sets.nim
tests/collections/ttables.nim
tests/collections/ttablesref.nim
2015-10-13 00:22:27 +02:00
Dominik Picheta
dda41afe9e
Implement isReady procedure in threadpool module.
2015-10-12 23:05:41 +01:00
Andreas Rumpf
ee93ee5e15
Merge pull request #3335 from SSPkrolik/teardown-move
...
Moved teardown call to try block for namespace access reasons
2015-10-12 21:18:04 +02:00
Araq
c7a3079123
logging.nim: expose underlying 'file' object; errors and fatals flush the buffer; refs #3270
2015-10-12 21:08:44 +02:00
Araq
e0f896785d
docs now build again
2015-10-12 20:58:46 +02:00
Andreas Rumpf
f687003b73
Merge pull request #3432 from FedericoCeratto/patch-4
...
Export substituteLog
2015-10-12 20:58:22 +02:00
Andreas Rumpf
7b9d929d50
Merge pull request #3423 from petermora/breakSequtils
...
Break sequtils
2015-10-12 20:42:17 +02:00
Araq
4705cf2308
cleaned up ospaths module
2015-10-12 16:55:23 +02:00
Joey Payne
2d256a4489
Made strutils string test procs less redundant.
2015-10-10 09:13:00 -06:00
Joey Payne
ea9a1e26be
Added tests for string test procs.
2015-10-10 08:55:19 -06:00
Joey Payne
e3bc27ac15
Changed alphanumeric check to "or" instead of "and".
2015-10-10 08:40:52 -06:00
Joey Payne
bb570de994
Added useful procs to strutils for string testing.
...
Added procs:
isAlpha
isAlphaNumeric
isDigit
isSpace
isUpper
isLower
2015-10-09 22:09:21 -06:00
Federico Ceratto
08ec0ce071
Add substituteLog docs
2015-10-09 23:26:22 +01:00
Federico Ceratto
6823a60b23
Export substituteLog
...
Allow Nim users to create their own loggers
2015-10-09 18:34:58 +01:00
Dominik Picheta
fec0894d59
Merge pull request #3425 from jlp765/hashes1
...
added hash procs for handling portions of strings/arrays/seqs.
2015-10-08 16:05:24 +01:00
Araq
dfaa63e805
osproc: fixes a long standing buffering bug on Windows
2015-10-07 10:03:46 +02:00
Araq
0a4d9aa954
fixes regression
2015-10-07 10:03:45 +02:00
Andreas Rumpf
52342a11f6
Merge pull request #3380 from greyanubis/devel
...
Add proc to change an element tag and proc to insert xmlnode child
2015-10-07 09:26:01 +02:00
JamesP
07eaafca69
added hash procs for handling portions of strings/arrays/seqs.
...
added tests at bottom of file
changed some doco layout
Makes hashing iteratively through buffers faster when you
don't have to pass copied portions of the buffer to the
hash function
2015-10-07 13:03:31 +10:00
Aman Gupta
eea8d604d0
Merge remote-tracking branch 'origin/devel' into fix-test-failures
2015-10-06 11:06:41 -07:00
Araq
732bdd54a0
added critbits.inc proc
2015-10-06 15:50:59 +02:00
Araq
8e9c0db66d
strutils: wrap too long lines
2015-10-06 15:50:58 +02:00
JamesP
73821ad1c4
add assert test to end of module
2015-10-06 16:36:32 +10:00
Peter Mora
6318f77821
restore {.immediate.} to toSeq
2015-10-06 08:15:00 +02:00
Peter Mora
75097e2981
sequtils related changes
2015-10-05 22:42:22 +02:00
JamesP
87a6268d3c
bug fix #3416 add wrapper around []= to account for
...
changes in StringTableRef disabling inc of counter
2015-10-05 15:16:43 +10:00
Dominik Picheta
6587f63672
Merge pull request #3415 from jlp765/rationals2
...
rationals add toRational(float) conversion
2015-10-04 22:17:45 +01:00
JamesP
77d4788655
Add toRational(float) conversion from any float to closest
...
approx for specified precision
2015-10-04 15:58:02 +10:00
Adam Strzelecki
be991ed413
Rename rawsockets module to nativesockets
...
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.
A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Dominik Picheta
3fe5731777
Merge pull request #3389 from nanoant/patch/separate-deprecated-modules
...
Patch/separate deprecated modules
2015-10-03 14:51:43 +01:00
Dominik Picheta
a35ba105f7
Merge pull request #3393 from nanoant/patch/fix-freebsd-getaddrinfo
...
rawsockets: Fix getaddrinfo on FreeBSD
2015-10-03 14:50:50 +01:00
Aman Gupta
b33d97621d
only compile coro.nim by avoiding "when isMainModule" string match in
...
testament/tester
FAIL: coro.nim
Test "lib/pure/coro.nim" in category "lib"
Failure: reOutputsDiffer
Expected:
Gotten:
c1
c2
c2
c1
c2
c1
c2
c1
c1 exits
c2 exits
done 1100220033
2015-10-02 18:56:57 -07:00
Aman Gupta
2fbdf9320c
fix float comparision failure in math tests
...
FAIL: math.nim
Test "lib/pure/math.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
math.nim(478) math
system.nim(3343) failedAssertImpl
system.nim(3335) raiseAssert
system.nim(2531) sysFatal
Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64 [AssertionError]
2015-10-02 18:34:04 -07:00