all repos — litestore @ b47f906761bf98c768d814ff124379ada24af6f6

A minimalist nosql document store.

Now building with both master and devel versions of Nim.
h3rald h3rald@h3rald.com
Sat, 22 Sep 2018 14:21:28 +0200
commit

b47f906761bf98c768d814ff124379ada24af6f6

parent

95613c88ef63fd33dd13d912c6c3168e252ad543

3 files changed, 11 insertions(+), 10 deletions(-)

jump to
M .travis.yml.travis.yml

@@ -10,7 +10,7 @@ - clang

matrix: allow_failures: # Ignore failures when building against the devel Nim branch - - env: BRANCH=master + - env: BRANCH=devel fast_finish: true install: - |

@@ -39,7 +39,7 @@ script:

- nim c --cc:$CC --verbosity:0 litestore.nim # Optional: build docs. #- nim doc --docSeeSrcUrl:https://github.com/h3rald/litestore/blob/master --project litestore.nim -#cache: -# directories: -# - nim-master -# - nim-devel +cache: + directories: + - nim-master + - nim-devel
M lib/api_v4.nimlib/api_v4.nim

@@ -161,22 +161,22 @@ of "tags":

options.tags = pair[1] of "created-after": try: - options.createdAfter = pair[1].parseInt.fromUnix.format("yyyy-MM-dd'T'HH:mm:ss'Z'") + options.createdAfter = pair[1].parseInt.fromUnix.local.format("yyyy-MM-dd'T'HH:mm:ss'Z'") except: raise newException(EInvalidRequest, "Invalid created-after value: $1" % getCurrentExceptionMsg()) of "created-before": try: - options.createdBefore = pair[1].parseInt.fromUnix.format("yyyy-MM-dd'T'HH:mm:ss'Z'") + options.createdBefore = pair[1].parseInt.fromUnix.local.format("yyyy-MM-dd'T'HH:mm:ss'Z'") except: raise newException(EInvalidRequest, "Invalid created-before value: $1" % getCurrentExceptionMsg()) of "modified-after": try: - options.modifiedAfter = pair[1].parseInt.fromUnix.format("yyyy-MM-dd'T'HH:mm:ss'Z'") + options.modifiedAfter = pair[1].parseInt.fromUnix.local.format("yyyy-MM-dd'T'HH:mm:ss'Z'") except: raise newException(EInvalidRequest, "Invalid modified.after value: $1" % getCurrentExceptionMsg()) of "modified-before": try: - options.modifiedBefore = pair[1].parseInt.fromUnix.format("yyyy-MM-dd'T'HH:mm:ss'Z'") + options.modifiedBefore = pair[1].parseInt.fromUnix.local.format("yyyy-MM-dd'T'HH:mm:ss'Z'") except: raise newException(EInvalidRequest, "Invalid modified-before value: $1" % getCurrentExceptionMsg()) of "limit":
M litestore.nimblelitestore.nimble

@@ -6,6 +6,7 @@ description = "Self-contained, lightweight, RESTful document store."

license = "MIT" bin = "litestore" skipFiles = @["nakefile.nim"] +skipDirs = @["test"] [Deps] -requires: "nim >= 0.18.1" +requires: "nim >= 0.18.0"