Open cbetta opened 11 years ago
Good catch. Is the following valid TOML?
foo.bar = "value"
From what I remember, TOML should prefer the following:
[foo]
bar = "value"
What output do you see in test.tml
? (I think the correct extname is .toml
btw, but that's neither here nor there in terms of this issue.)
So it writes to the file:
foo.bar = "value"
Which I think isn't valid TOML.
Regardless, the problem seems to be that at the moment you can serialise something but then not read it back, which is pretty bad behaviour.
I suggest checking for valid keys.
I assume this defect is still open because dotted keys are indeed supported and the gem still does not support them? Is there any plan to add support for them? This issue is 6 years old now. Really just curious. Obvious workarounds exist.
To replicate: