Andreas Rumpf
87f6a9592c
fixes #14402 ( #14908 )
...
* fixes #14402
* added a test case
2020-07-08 08:21:55 +02:00
narimiran
e82a14b273
fix mistake in times.nim docs
2020-07-07 22:57:06 +02:00
Dominik Picheta
25ceacbe4f
Revert commit 3e843ab335. Closes #14930 .
2020-07-07 19:18:02 +01:00
ee7
a754160d65
tables.nim: Add named fields in smallest and largest ( #14919 )
...
The `smallest` and `largest` procs for `CountTable` returned a tuple
with named fields, but the same procs for `CountTableRef` returned an
anonymous tuple.
This commit makes those `CountTableRef` procs more consistent, and adds
a test.
Fixes : #14918
2020-07-06 14:02:03 +02:00
Araq
6f962a4b36
fixes #14830
2020-07-06 13:41:56 +02:00
narimiran
46aacf917f
Fix style inconsistencies due to the previous commit
2020-07-06 11:24:43 +02:00
narimiran
ebaf603c84
revert 0944b0f4
2020-07-06 10:55:51 +02:00
Juan Carlos
21b3ca636f
Fix logging tiny bug ( #14910 )
...
* Fix logging tiny bug
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* https://github.com/nim-lang/Nim/pull/14910#discussion_r450012032
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2020-07-06 04:00:25 -04:00
Timothee Cour
695154970d
deprecate existsDir; use dirExists instead ( #14884 )
2020-07-03 23:04:23 +02:00
Juan Carlos
4f6acf24ff
Add jsre ( #14870 )
2020-07-03 20:13:10 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Juan Carlos
d590611fc5
Clean out sharedlists ( #14857 )
2020-07-02 08:40:58 +02:00
Juan Carlos
cbcaf2bbc4
Clean out strutils ( #14859 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-01 23:16:50 +02:00
Timothee Cour
2867a33ebc
fix #14846 ; add macros.extractDocCommentsAndRunnables ( #14849 )
...
* fix #14846 ; add macros.extractDocCommentsAndRunnables
* fixup
* update tests
* address comment
2020-07-01 09:26:23 +02:00
Juan Carlos
05384efec5
Clean out sharedtables ( #14858 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-30 19:09:13 +02:00
Juan Carlos
a519f3b038
Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 ( #14854 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-30 16:29:53 +02:00
alaviss
56b3d422b0
typetraits: features and fixes ( #14791 )
...
* typetraits: add support for nnkTypeOfExpr
* typetraits: don't wrap typedesc symbols in StaticParam
* typetraits: add nested generics support to genericParams
* typetraits: make genericParams understand array[I, T] whackiness
Also moved tests to ttypetraits
* typetraits: clarify comment on genericParams
2020-06-30 15:25:53 +02:00
Ray Imber
36fa79a524
Fix asyncdispatch drain behavior ( #14820 ) ( #14838 )
...
* Fix asyncdispatch drain behavior (#14820 )
* Changed test to use asyncCheck instead of discard after code review (#14820 )
* Added some debug statements to help understand what is happening in Azure.
* Removed debug statements and increased timeouts by 1 order of magnitude to account for slow Azure VMs
Co-authored-by: Ray Imber <ray@crankuptheamps.com >
2020-06-30 15:23:53 +02:00
flywind
8be54b8fa7
add debug fmt string like python's ( #14808 )
...
* add debug format string
* remove try except
* add changelog
2020-06-30 15:21:37 +02:00
Juan Carlos
04deb6c942
Clean out dom ( #14855 )
...
* Clean out dom
* Clean out dom
2020-06-30 10:08:16 +02:00
Timothee Cour
1b41c3122b
fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] ( #14799 )
...
* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]
* changelog
2020-06-29 09:34:05 +02:00
Juan Carlos
5d5df4a394
Clean out Deprecated proc ( #14797 )
...
* Remove and/or clean out Deprecated 'add' proc for floats
* Update a test
2020-06-29 09:33:07 +02:00
aguspiza
d968163cd1
SSL_CTX_load_verify_locations parameters are reversed ( #14815 ) [backport]
2020-06-29 08:50:37 +02:00
lqdev
5d5271b789
fixed #14839 ( #14840 )
2020-06-28 13:38:57 +02:00
rockcavera
252f668829
add a second asyncnet.recvFrom ( #14237 )
...
* add a second asyncnet.recvFrom
* fixes
* pre-allocating address
* add a new nativesockets.getAddrString()
2020-06-27 22:59:08 +01:00
Manuel Bojato
bc66788b3f
docs: Make ..<, .. ^ more discoverable ( #14835 )
2020-06-27 23:42:58 +02:00
Timothee Cour
90808877c5
testament: generic N-fold batching: windows CI 37mn=>16m ( #14823 )
...
* testament: run CI faster thanks to batching
* move ta_in, tstdin into existing tosproc
* move ta_out,tafalse,texitcode,tstderr into existing tosproc
* joinable osproc
* move tstdout into existing tosproc
* spec: batchable; fix tests
* fixup
2020-06-27 16:51:17 +02:00
treeform
f926dc53f1
Add all missing css properties to dom.nim. ( #14825 )
...
* Add all missing css properties
* remove extra space
2020-06-26 19:15:21 +01:00
treeform
baa80ca9d4
Add hasAttribute method to dom.nim. ( #14814 )
...
See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
2020-06-25 14:45:37 -07:00
narimiran
13193b2964
turn 'runnableExample' into 'code-block' to make nightlies green
...
This example doesn't work on our nightlies CI.
Other procs in this module already use 'code-block'.
2020-06-25 16:55:11 +02:00
Timothee Cour
3e5743d6f7
add typetraits.elementType ( #14780 )
...
* add typetraits.elementType
* add a test for 0-sized seq
2020-06-24 22:31:07 +02:00
Timothee Cour
37081e2945
fromJson: support object variants ( #14694 )
2020-06-24 18:03:01 +02:00
Clyybber
302e3b7f44
CI: Install the pkg we cloned ( #14770 )
2020-06-24 17:27:46 +02:00
Miran
881d1ee57b
fix #14750 , don't allocate too much in newWideCString ( #14773 )
2020-06-23 16:15:37 +02:00
Andreas Rumpf
16bdc547b7
fixes #14760 ( #14769 )
2020-06-23 15:17:17 +02:00
Andreas Rumpf
da29222f86
init checks and 'out' parameters ( #14521 )
...
* I don't care about observable stores
* enforce explicit initializations
* cleaner code for the stdlib
* stdlib: use explicit initializations
* make tests green
* algorithm.nim: set result explicitly
* remove out parameters and bring the PR into a mergable state
* updated the changelog
2020-06-23 10:53:57 +02:00
Juan Carlos
8e54bc5b0c
Deprecate and/or remove ospaths ( #14767 )
2020-06-23 10:51:33 +02:00
Clyybber
03c8bbcc6e
Remove outdated comment and copy of length ( #14759 )
2020-06-22 22:05:18 +02:00
b3liever
59ba4d8c03
added normal variate function ( #14725 )
...
* added normal variate function
* change method only slightly faster
* changelog + since
Co-authored-by: b3liever <b3liever@yandex.com >
2020-06-22 20:48:33 +02:00
alaviss
c8554ebc0c
posix_other: add define to force time_t to 64 bit [backport] ( #14753 )
...
This is a temporary remedy for time_t transition to 64 bit on newer
Linux libc (musl >= 1.2.0, glibc >= 2.32).
In the future we might want to move away from libc, or figure out a way
to reliably detect the real size of C types at compile time, both of
which are difficult.
2020-06-22 09:23:24 +02:00
ee7
1e484ed62b
[backport] Docs: Fix broken code-block ( #14749 )
...
This commit indents the contents of a `code-block` in `httpclient.nim`
so that it displays correctly. The bug was introduced by 42a64245f8 .
I did a quick search for other `code-block`s that are broken in the same
way, but the only other one I found (in `pegs.nim`) is not included in
the generated documentation.
2020-06-22 08:12:50 +02:00
treeform
1ffe113450
Export fields from the Selection object. ( #14752 )
...
See: https://developer.mozilla.org/en-US/docs/Web/API/Selection
2020-06-21 20:41:24 +02:00
alaviss
c7dee55b87
encodings: use only one iconv definition [backport:1.2] ( #14741 )
...
Fix an issue reported on IRC: using encodings with --dynlibOverrideAll
result in duplicated iconv definitions, causing compile errors.
This commit remove the `var` wrapper of iconv and go all out on
pointers, as it should due to how the API accepts nil. Also corrected
the API to resemble iconv(3p).
2020-06-21 19:28:03 +02:00
treeform
ca71a60ff6
Add css white-space property to dom.nim. ( #14743 )
...
https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
2020-06-21 19:25:29 +02:00
Timothee Cour
2039e3e883
fix #13899 defer now works with async ( #14723 )
2020-06-19 15:08:00 +02:00
Araq
65c7884a3c
fixes #14718 [backport]
2020-06-19 15:02:38 +02:00
Timothee Cour
9c42ae91b7
add legacy workaround; improve test so that it actually tests for the bugfix
2020-06-19 09:53:06 +02:00
solo989
408518c9fe
Update tuple newLit
2020-06-19 09:53:06 +02:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
Timothee Cour
8619534293
remove compilerproc from newIdentNode ( #14692 )
2020-06-17 08:10:34 +02:00