Dominik Picheta
88cb40cd31
Implement support for enum fields in JSON macro.
2017-04-09 17:22:40 +02:00
Dominik Picheta
bd58a0d67c
Use doAssert in JSON macro and improve diagnostics.
2017-04-09 17:04:31 +02:00
Dominik Picheta
4bd650ee42
Merge branch 'feature/json-macro' into devel
2017-04-09 13:11:09 +02:00
Dominik Picheta
7ac0c15e7a
Improve documentation in the JSON module.
2017-04-09 13:09:59 +02: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
Dominik Picheta
27ede21504
Merge pull request #5612 from ehmry/AsyncFile.setLen
...
asyncfile: setLen procedure for files
2017-04-08 12:24:21 +02:00
Dominik Picheta
cdfcc12529
Implement json.% for enums.
2017-04-06 21:56:20 +02:00
Anatoly Galiulin
3374bcb373
parsecfg: handle streams and strings when saving or loading configuration ( #5554 )
2017-04-06 08:10:08 +02:00
Emery Hemingway
bc5c2d8414
getFileSize and setFileSize procedures for File and AsyncFile
...
Platform independent procedure to set a file length. Useful when
replacing file content.
2017-04-05 19:05:43 -05:00
Andreas Rumpf
f520dfbfab
remove en-dash from the language
2017-04-02 23:41:29 +02:00
Daniil Yarancev
009277856e
Fix #5611
2017-04-02 18:52:14 +03:00
Emery Hemingway
7e351fc7fa
support for the Genode OS framework ( #5560 )
2017-03-31 23:13:06 +02:00
Andreas Rumpf
529609f7ed
Merge remote-tracking branch 'origin/concepts-rebased' into araq
2017-03-31 16:40:21 +02:00
Andreas Rumpf
0ccbc82344
Merge branch 'devel' into araq
2017-03-30 23:56:22 +02:00
Konstantin Molchanov
04646052ab
Merge branch 'devel' into fix_time_offset_in_times_js
2017-03-29 16:54:36 +04:00
Konstantin Molchanov
a9044117e9
Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.
...
To use JS's Date creation from string, I moved the TimeInfo formatting code above the toTime proc declaration. Also, I changed the argument type for newDate from string to cstring for it to work.
2017-03-29 16:40:52 +04:00
Konstantin Molchanov
875e344be0
JS: Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend. ( #5616 )
2017-03-29 12:36:04 +02:00
Andreas Rumpf
3ffde39cf4
attempt to make travis OSX tests green and mandatory
2017-03-29 10:14:03 +02:00
Andreas Rumpf
a88a909565
fixes #5625
2017-03-29 09:05:45 +02:00
Tomas Vojtisek
27a291c09e
Update threadpool.nim ( #5624 )
2017-03-29 08:36:10 +02:00
Dominik Picheta
e0bb65e45c
Fixes the order in which FutureVar and return completions are made.
...
This caused a pretty bad and subtle bug in the asynchttpserver.
As far as I can understand, the fact that the returned future was
being completed first meant that the underlying async procedure
could continue running and thus clean() the FutureVar
and request new data. The control then went back and the
FutureVar was completed again causing an error.
2017-03-27 21:11:48 +02:00
Konstantin Molchanov
2351d5d314
Merge branch 'calculate_yearday_in_timeinfo_js' into fix_time_offset_in_times_js
2017-03-27 21:38:19 +04:00
Andreas Rumpf
159643824b
fixes #3847 ( #5609 )
2017-03-27 09:39:46 +02:00
Konstantin Molchanov
bef86f55ce
Times: JS: Add yearday to TimeInfo.
...
Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend.
Yearday 0 has no sense and contradicts the behaviour under C backend, where yearday is an int from 1 to 365, i.e. cannot be 0 even theoretically.
2017-03-27 00:14:48 +04:00
Konstantin Molchanov
3ebffb2a00
Times: JS: Remove implicit UTC convesion.
...
The conversion would produce incorrect timestamp.
2017-03-26 23:50:02 +04:00
Andreas Rumpf
1268ca79e5
fixes #5599 ( #5610 )
2017-03-26 09:30:59 +02:00
Konstantin Molchanov
80ffae62fb
JS: Times: Add timezone prop to TimeInfo. ( #5581 )
2017-03-25 09:26:34 +01:00
Zahary Karadjov
9574d318ae
use lower-case proc names
2017-03-24 17:03:55 +02:00
Zahary Karadjov
52b241fd57
new type traits: GenericHead and StripGenericParams
2017-03-24 16:59:47 +02:00
Dmitriy Fomichev
268a1f7cfd
Deques compilation error fix ( #5591 )
2017-03-24 00:09:51 +01:00
Anatoly Galiulin
434a7c8426
Fix posix version of moveFile between different filesystems ( #5580 )
2017-03-23 23:40:03 +01:00
Dominik Picheta
0cad2896ae
Implement asyncfile.readToStream.
2017-03-23 21:34:53 +01:00
Dominik Picheta
d221e6a35c
Improve os.getFileSize documentation to specify the unit.
2017-03-23 21:34:03 +01:00
Ruslan Mustakov
310b73b556
Reduce the scope of stackTrace var ( #5583 )
...
Fixes #5571 .
2017-03-22 01:06:05 +01:00
Ryan Gonzalez
244bf68fb0
Fix #5550 ( #5553 )
2017-03-18 21:05:12 +01:00
Araq
d365f1a81a
resolved unittest conflict
2017-03-18 20:59:10 +01:00
Araq
aa4260ffa8
overloading resolution for getAst; breaking change
2017-03-18 20:57:45 +01:00
Ruslan Mustakov
65422487f3
Add support for custom test report formatters ( #5556 )
...
Implement ConsoleOutputFormatter that is backward compatible
with the previous implementation.
Implement JUnitOutputFormatter which can be added externally.
2017-03-18 20:48:30 +01:00
Andreas Rumpf
9f5492becd
strutils.nim: make removeSuffix robust on empty strings
2017-03-18 10:42:11 +01:00
Eugene Kabanov
d701de5733
Fix osproc.peekExitCode() to handle exitcode properly. ( #5555 )
2017-03-17 10:02:36 +01:00
Eugene Kabanov
336a7c9b3f
Fixes to support Dragonfly BSD. ( #5552 )
...
* Fix kqueue.nim and ansi_c.nim to support dragonfly.
* Fix ioselectors.nim, threads.nim to support dragonfly.
* Fix deprecated dealloc call in tioselectors.nim.
* Fix tfsmonitor.nim test to run only on Linux.
* Fix osproc.nim return wrong exit codes.
* Fix getAppFilename() for dragonfly.
* Fix proper exit code handling.
2017-03-17 08:22:11 +01:00
Anatoly Galiulin
0874c649e9
Fix console logger issue; fixes #5546 ( #5547 )
2017-03-16 20:25:53 +01:00
GrundleTrundle
13ba0b557e
Added clear() function for OrderedSet and HashSet. ( #5545 )
2017-03-16 08:06:24 +01:00
Parashurama
976095c894
add bitops module for optimized bit manipulation. ( #5201 )
2017-03-14 21:32:54 +01:00
Araq
b1c494a150
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-03-14 15:56:08 +01:00
Araq
98c7bab8ea
make memory tracker work without onThreadCreation
2017-03-14 15:45:35 +01:00