Skip to content

Commit ea811be

Browse files
authored
Merge pull request #64 from treeform/dev
test Nim 1.4.0 support
2 parents cd02b16 + b351f6c commit ea811be

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ jobs:
66
fail-fast: false
77
matrix:
88
os: [ubuntu-latest, windows-latest]
9+
nim-version: ['1.4.0', '1.4.x', 'stable']
910

1011
runs-on: ${{ matrix.os }}
1112

1213
steps:
1314
- uses: actions/checkout@v2
1415
- uses: jiro4989/setup-nim-action@v1
16+
with:
17+
nim-version: ${{ matrix.nim-version }}
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1519
- run: nimble test -y
1620
- run: nimble test --gc:orc -y
1721
- run: nim js -r tests/all.nim

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ type Entry = object
301301

302302
## Full support for raw-json.
303303

304-
Sometimes you don't need to parse the json, but just send it or store it in the database. You can speed this up by using `RawJson` type. What it does is prevents full parsing of that json tree and instead returns it is a `RawJson` (`disticnt string`) type. You can then do anything you want with that. Store it in a database or pass it along to some other API. Or maybe parse it later again with jsony.
304+
Sometimes you don't need to parse the json, but just send it or store it in the database. You can speed this up by using `RawJson` type. What it does is prevents full parsing of that json tree and instead returns it is a `RawJson` (`distinct string`) type. You can then do anything you want with that. Store it in a database or pass it along to some other API. Or maybe parse it later again with jsony.
305305

306306
```nim
307307
import jsony

jsony.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.1.4"
1+
version = "1.1.5"
22
author = "Andre von Houck"
33
description = "A loose direct to object json parser with hooks."
44
license = "MIT"

tests/test_options.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ var
77
doAssert a.toJson() == """123"""
88
doAssert b.toJson() == """null"""
99

10-
doAssert $("""1""".fromJson(Option[int])) == "some(1)"
11-
doAssert $("""null""".fromJson(Option[int])) == "none(int)"
10+
doAssert """1""".fromJson(Option[int]) == some(1)
11+
doAssert """null""".fromJson(Option[int]) == none(int)
1212

1313
proc check[T](v: T) =
1414
var v2 = some(v)

0 commit comments

Comments
 (0)