Merge branch 'devel'

This commit is contained in:
Felix Krause 2016-07-07 17:56:18 +02:00
commit dcdb04b79d
4 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,10 @@
### 0.6.2
Bugfixes:
* Fixed problem when serializing a type that overloads the `==` operator (#19)
* Fixed type hints for floats (`0` digit was not processed properly)
### 0.6.1
Bugfixes:

View File

@ -77,6 +77,7 @@ template advanceTypeHint(ch: char) {.dirty.} =
of '0':
[ythInitial, ythMinus] => yth0
[ythNumE, ythNumEPlusMinus] => ythExponent
[ythInt, ythDecimal, ythExponent] => nil
of '1'..'9':
[ythInitial, ythMinus] => ythInt
[ythNumE, ythNumEPlusMinus] => ythExponent

View File

@ -729,7 +729,7 @@ proc representChild*[T](value: seq[T], ts: TagStyle, c: SerializationContext):
proc representChild*[O](value: ref O, ts: TagStyle, c: SerializationContext):
RawYamlStream =
if value == nil:
if isNil(value):
result = iterator(): YamlStreamEvent =
yield scalarEvent("~", yTagNull)
elif c.style == asNone: result = representChild(value[], ts, c)

View File

@ -1,6 +1,6 @@
# Package
version = "0.6.1"
version = "0.6.2"
author = "Felix Krause"
description = "YAML 1.2 implementation for Nim"
license = "MIT"