Gustavo Niemeyer
f7716cbe52
More UTF-16 test cases by John.
2015-12-01 14:27:45 -02:00
Gustavo Niemeyer
bd61a856f8
Fix UTF-16 LE and BE handling.
...
Thanks to John Lenton for the test cases.
2015-12-01 13:41:20 -02:00
Gustavo Niemeyer
53feefa255
Merge pull request #119 from xtreme-sameer-vohra/v2
...
Fix typo in scannerc.go intendation->indentation.
2015-09-24 11:23:14 -03:00
Gustavo Niemeyer
2bf60357b8
Add simple example of field renaming.
...
Fixes #122 .
2015-09-24 10:30:18 -03:00
Gustavo Niemeyer
c325d146e4
Merge pull request #106 from realzeitmedia/gofmt
...
gofmt
2015-09-24 10:01:33 -03:00
Sameer Vohra
0516c53462
fixed typo in scannerc.go intendation->indentation
2015-08-18 14:29:51 -04:00
Gustavo Niemeyer
7ad95dd079
Fix omitempty support for floats.
2015-06-24 11:29:02 +01:00
Robert Vollmert
b9b22c4345
gofmt
2015-06-01 16:52:26 +02:00
Songmu
c1cd2254a6
fix bug: width() always returns width of first character!
2015-05-19 19:42:33 +09:00
Songmu
43a0256bb2
add failing test cases
2015-05-19 19:38:58 +09:00
Gustavo Niemeyer
49c95bdc21
Drop travis support. Not working and not missed.
2015-02-24 19:57:58 -03:00
Gustavo Niemeyer
d0fefed9b6
Fix timezone handling in time tests.
2015-02-24 19:53:31 -03:00
Gustavo Niemeyer
50f7813e6b
Add time.Time encoding/decoding test.
...
It's not clear this is actually the best way to handle time.Time,
since there is a standard yaml format that may not match time.Time's,
but having tests ensuring the current behavior is basically sane
is a good idea nevertheless.
2015-02-24 15:24:13 -03:00
Gustavo Niemeyer
a1c4bcb6c2
Merge pull request #76 from robx/patch-1
...
Balance parentheses.
2015-02-11 15:31:25 -02:00
Robert
df747160af
Balance parentheses.
2015-02-11 18:27:59 +01:00
Gustavo Niemeyer
ee2f4956ea
Merge pull request #72 from gogolok/travis_ci_support
...
Travis CI support.
2015-02-09 14:47:26 -02:00
Robert Gogolok
a347d2466e
README.md: travis ci build status
...
[ci skip]
2015-02-04 13:15:35 +01:00
Robert Gogolok
1d653a7376
travis ci
2015-02-04 13:11:21 +01:00
Gustavo Niemeyer
5d6f7e02b7
Support inline flag on a map field.
2015-01-19 16:55:52 -02:00
Gustavo Niemeyer
bef53efd0c
Add test ensuring [] decodes as zero-length slice.
...
Reported as #42 and previously fixed in 08859840
.
2015-01-16 18:20:57 -02:00
Gustavo Niemeyer
1bf6a7ce15
Do not call MarshalText on yaml.Marshaler.
...
Fixes #58 .
2015-01-16 17:58:22 -02:00
Gustavo Niemeyer
71e7ede9d4
Add test ensuring ": " values get quoted.
...
This was reported as PR #43 , but is not reproducible.
2015-01-16 17:22:23 -02:00
Gustavo Niemeyer
b7dfe2d918
Merge pull request #52 from BrianBland/v2
...
Fix TypeError check in Unmarshal.
2015-01-16 17:10:07 -02:00
Gustavo Niemeyer
e8976af76e
Merge pull request #61 from hkjn/v2
...
gofmt
2015-01-16 17:02:51 -02:00
Gustavo Niemeyer
088598405c
Reset slice rather than appending to old value.
...
Fixes #48 .
2015-01-16 16:59:36 -02:00
Gustavo Niemeyer
26b8825233
Support omitempty on struct value fields.
...
Fixes #54 .
2015-01-16 16:45:58 -02:00
Henrik Jonsson
4f03e946c1
runs 'gofmt -w *.go' on gopkg.in/yaml.v2
2014-12-12 17:38:32 +01:00
Brian Bland
3e92d6a11b
Fixes TypeError check in Unmarshal
...
decoder.terrors can be empty but non-nil if the unmarshaler function is called multiple times in UnmarshalYAML.
This fixes the case where d.terrors is empty but has a non-zero capacity, which previously resulted in returning a TypeError with an empty list of error strings.
2014-11-05 10:10:37 -08:00
Jordan Liggitt
d466437aa4
Use math constants as decode_test check values
2014-10-29 17:08:43 -04:00
Jordan Liggitt
1dd72ac392
Add support for uint64 and 64-bit binary notation
...
Add decode tests for uint,uint64,int,int64,float32,float64
Unmarshal uint64, use math constants for precision boundaries
Remove uint case, let uint64 cover uint overflows
Handle int64 and uint64 with 0b... notation
Make test cases contain literal values, reference math constants
2014-10-29 16:42:57 -04:00
Gustavo Niemeyer
eca94c41d9
Support encoding.TextMarshaler/Unmarshaler.
...
Fixes #38 .
2014-09-27 17:40:03 -03:00
Gustavo Niemeyer
f5f5cc19d1
Only inherit map types if sufficiently flexible.
...
Fixes #39 .
2014-09-25 09:33:00 -03:00
Gustavo Niemeyer
79f5ef7c40
Trivial documentation fix.
2014-09-24 13:18:00 -03:00
Gustavo Niemeyer
b6b591a3c0
Marshal top-level nils correctly.
...
Merge rogpeppe's branch '001-allow-nil-marshal'.
2014-09-23 11:49:13 -03:00
Gustavo Niemeyer
de3643d77b
Allow non-ASCII characters in plain strings.
...
Fixes #11 .
2014-09-22 18:50:45 -03:00
Gustavo Niemeyer
91eb945ac0
Drop obsolete note.
2014-09-22 18:33:56 -03:00
Gustavo Niemeyer
925f818e2c
v1 => v2
2014-09-22 18:31:54 -03:00
Gustavo Niemeyer
c544d03421
Proper reporting of type errors.
2014-09-19 20:35:58 -03:00
Gustavo Niemeyer
b51f82a2e3
New marshaler and unmarshaler interfaces.
2014-09-19 20:35:58 -03:00
Gustavo Niemeyer
3e542fbf7c
Ordered map support with MapSlice.
2014-09-19 11:01:26 -03:00
Gustavo Niemeyer
920b7d819b
Update README.
2014-09-19 11:00:40 -03:00
Gustavo Niemeyer
c11897f0ba
Better error on invalid map keys.
...
Closes #25 .
2014-09-18 18:05:31 -03:00
Gustavo Niemeyer
bc27649cd5
Support !!binary data.
...
Fixes #31 .
Fixes #32 .
2014-09-18 17:04:24 -03:00
Gustavo Niemeyer
0cb32393eb
Better unmarshalling for "null".
...
Fixes #35 .
2014-09-17 18:04:12 -03:00
Gustavo Niemeyer
a6dc653f93
Whitelist good panics instead of bad ones.
2014-09-17 16:17:08 -03:00
Gustavo Niemeyer
838f4ea961
Marshal base 60 floats quoted for YAML 1.1 compat.
...
Closes #34 .
2014-09-17 15:26:27 -03:00
Roger Peppe
5206f6dd03
marshal top level nil correctly
2014-09-15 17:57:47 +01:00
Gustavo Niemeyer
fc7f19eff1
Add copyright notice to LICENSE file.
2014-09-09 13:09:48 -03:00
Gustavo Niemeyer
feb4ca7964
Fix handling of < in values, broken by map merging
...
Fixes issue #24 .
2014-08-14 15:36:29 -03:00
Gustavo Niemeyer
1b9791953b
Note in LICENSE.libyaml the specific files covered.
2014-07-17 11:34:46 -03:00