Commit Graph

11210 Commits

Author SHA1 Message Date
Dominik Picheta
2edcd07031 Merge pull request #5782 from cdunn2001/setGlobalDispatcher
setGlobalDispatcher()
2017-05-08 15:29:41 +01:00
Christopher Dunn
2670a6f8a5 setGlobalDispatcher() 2017-05-07 22:07:07 -05:00
Andreas Rumpf
a3e0a7ebbb Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-06 11:53:22 +02:00
Andreas Rumpf
c22e0d414d fixes an internal compiler error when json.to is used wrongly 2017-05-06 11:53:15 +02:00
Andreas Rumpf
6c7d2ce8fb disable fragile parts of thttpclient.nim 2017-05-04 22:37:07 +02:00
Ruslan Mustakov
78315792d3 Implement 'take' for Table and TableRef (#5773) 2017-05-04 22:33:52 +02:00
Andreas Rumpf
73b7edf9de Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-04 22:25:37 +02:00
Andreas Rumpf
c066932635 added IP v6 parsing tests 2017-05-04 22:25:29 +02:00
Matt Riggott
c24dc7944a Add space to fix RST in captureBetween docs (#5769) 2017-05-04 20:09:24 +02:00
Araq
79b12faf9e nimgrab tool bugfix: don't divide by zero 2017-05-04 20:03:07 +02:00
Araq
202ecdeee8 Merge branch 'endragor-fix-wrap-connected-socket' into devel 2017-05-04 20:01:00 +02:00
Ruslan Mustakov
e0059287bb Add 'hostname' param to wrapConnectedSocket 2017-05-04 16:27:08 +07:00
Andreas Rumpf
c1aa973758 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-04 10:58:21 +02: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
Araq
6377b52d8e Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-02 01:24:19 +02:00
Araq
bea07a2c5c fixes #5752 2017-05-02 01:24:10 +02:00
Andreas Rumpf
962d03d671 isDeepConstExpr helper can handle nkRange 2017-05-01 09:31:29 +02:00
Andreas Rumpf
56a5c249c9 JS codegen: produce better code for constant sets 2017-05-01 09:30:56 +02:00
Zahary Karadjov
2a34552596 fix 5756 2017-04-30 22:28:20 +03:00
Zahary Karadjov
622100adb6 close #5757 2017-04-30 21:57:13 +03:00
Jonathan Arnett
eb9721a804 Added getConfigDir changes to breaking changes doc 2017-04-28 14:34:24 -04: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
Dominik Picheta
a025901011 Document breaking AsyncResponse change. Refs #5726. 2017-04-28 19:44:17 +02:00
Zahary Karadjov
9107e551f1 close #5726
Turned out that the old code was wrong. I'm not sure why it used to work.

`response.body` properly resolves to an async proc defined in the httpclient
module with the following signature:

proc body*(response: AsyncResponse): Future[string] {.async.}

Perhaps the old code was somehow matching the body field of the `AsyncResponse`
object, which is marked as private.
2017-04-28 19:09:11 +03:00
Zahary Karadjov
fa52cff826 hold back the new | operator for types as it creates mysterious problems fro tests/trmacros/tor 2017-04-28 18:38:08 +03:00
Zahary Karadjov
5c678e2848 alternative fake covariance based on converters 2017-04-28 18:26:41 +03:00
Zahary Karadjov
72f42ff95f more advanced fake covariance 2017-04-28 18:01:04 +03:00
Zahary Karadjov
c981284ddc a simple way to simulate covariance in generic types 2017-04-28 17:40:57 +03:00
Zahary Karadjov
bc01835091 Allow tyOr,tyAnd and tyNot to be constructed in more contexts 2017-04-28 17:07:54 +03:00
Yuriy Glukhov
2242307c17 Added generic min/max versions for two arguments (#5734) 2017-04-27 21:41:10 +02: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
Andreas Rumpf
3d34a9f6d3 js codegen: emit more line information 2017-04-26 12:50:36 +02:00
Andreas Rumpf
4cce5883c0 koch: build release version of nimble 2017-04-26 11:14:53 +02:00
Andreas Rumpf
920888f382 fixes tuple unpacking regression 2017-04-26 11:10:50 +02:00
Andreas Rumpf
2da66fef77 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-04-26 10:28:03 +02:00
Andreas Rumpf
7b1568d19c make -d:nimdiff feature more robust 2017-04-26 10:27:42 +02:00
Araq
2aa31869b6 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-04-26 00:21:45 +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
Araq
05c20bc4ff fixes a parser bug 2017-04-25 19:36:05 +02:00
cooldome
c6a8bd264e Fix for #5695 make subscript operator overloadable for tuples (#5749) 2017-04-24 20:17:06 +02:00
Andreas Rumpf
1aede6d311 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-04-24 10:00:53 +02:00
Andreas Rumpf
7cba41db23 make nimble compile again 2017-04-22 14:58:53 +02:00
Dominik Picheta
34e253bf34 Merge pull request #5737 from moigagoo/feature/make_docs_mobile_friendly
Docgen: Add meta tag to ensure that media queries are activated on mobile devices.
2017-04-21 20:20:28 +02:00
Andreas Rumpf
3f5ababfe8 make sighashes work in more cases 2017-04-21 17:01:57 +02:00
Konstantin Molchanov
20f92616d2 Add meta tag to ensure that media queries are activated on mobile devices. 2017-04-20 11:06:59 +04:00
Araq
4b76d9846b Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-04-19 15:20:54 +02:00
Araq
5018f6fa15 fixes #5729 2017-04-19 15:20:46 +02:00