Commit graph

25 commits

Author SHA1 Message Date
Charlie Ozinga
818fed42b0 Rebased and resolved conflicts with the following:
https://github.com/chyh1990/yaml-rust/pull/66
https://github.com/chyh1990/yaml-rust/pull/62 (closed in favor of 66)
2017-05-11 12:36:38 -06:00
David Tolnay
083be16860 Implement Error for EmitError
Fixes #50.
2017-05-08 11:43:44 -07:00
David Tolnay
cec5189c13 Fix clippy complaints 2017-05-08 11:35:53 -07:00
David Tolnay
0935fc0d57 Revert "fix test: add missing end space"
This reverts commit e3826316ad.
2017-05-08 11:17:30 -07:00
David Tolnay
312b370f4e Merge pull request #67 from Iazel/patch-1
Quotes string starting with a dot
2017-05-08 11:16:27 -07:00
David Tolnay
ea1f4cd0a8 Merge pull request #66 from iredelmeier/trailing-whitespace
Do not emit trailing whitespace
2017-05-08 10:54:17 -07:00
David Tolnay
16e6cb1c31 Merge pull request #58 from palfrey/quickcheck
Fix quote escaping
2017-05-08 10:48:23 -07:00
David Tolnay
bb72096438 Restore import that was broken in #57 2017-05-08 10:44:17 -07:00
Tom Parker
312efa5d05 Add quoting for " and ' 2017-05-08 18:37:19 +01:00
David Tolnay
8755753ed7 Merge pull request #49 from dtolnay/order
Always preserve order
2017-05-08 10:29:27 -07:00
Iazel
e3826316ad fix test: add missing end space 2017-05-06 19:16:00 +02:00
Iazel
a97f7c9c45 Quotes string starting with a dot
To understand why we want to do this, please refer to this issue on ktmpl repository (a way to have templates for kubernetes):
https://github.com/InQuicker/ktmpl/issues/15

The problem applies only to string used as keys, but given that the emitters right now doesn't differentiate the two cases for string, I think is better to do it also for values instead of introducing branching and/or flag variables (can't think of cleaner solution for now).
2017-05-06 19:06:10 +02:00
Isobel Redelmeier
24eb8a4294 Do not emit trailing whitespace 2017-05-05 00:11:36 -07:00
Tom Parker
9d5cb99ca2 Remove warnings about unused items 2017-03-12 16:00:10 +00:00
David Tolnay
316eecbbdc Always preserve order 2017-01-27 20:59:51 -08:00
Yuheng Chen
23f08da865 Emitter: quote strings starts/ends with spaces 2016-11-24 17:24:02 +08:00
Yuheng Chen
6a0e4ad656 always quote empty string 2016-11-10 15:31:07 +08:00
Antoni Boucher
2269e040a3 Fixed to always avoid quoting when possible. 2016-11-02 16:56:46 -04:00
Antoni Boucher
d4b6dfe316 Added an option to avoid emitting quotes. 2016-11-01 22:03:35 -04:00
Hendrik Sollich
95f414a8ef added test for emitting equivalence of complex keys 2016-09-24 23:59:09 +02:00
Hendrik Sollich
53b5936a81 fixed: emitter also emits complex keys 2016-09-16 23:32:53 +02:00
David Tolnay
6ba6fec475 Resolve remaining clippy lints and add to Travis build 2016-02-27 16:42:32 -08:00
Yuheng Chen
c1b5dd296f Better code coverage 2015-06-04 16:10:43 +08:00
Yuheng Chen
23b3c7f024 Export API 2015-05-31 17:02:22 +08:00
Yuheng Chen
19fc6027e8 Add basic emitter 2015-05-31 12:56:45 +08:00