Commit graph

468 commits

Author SHA1 Message Date
James Sanderson 848227c605 Require a newline after table definition 2016-04-17 22:51:43 +01:00
James Sanderson 2cd1116e06 Add failing test cases containing invalid Toml with keys on the same line as table definition 2016-04-17 22:51:28 +01:00
Alex Crichton ef60313a5d Merge pull request #93 from trlim/master
Fix wrong handling of unicode escape code
2016-04-12 23:05:40 -07:00
Tae-il Lim 6426b02d3d Use different method to ensure unicode escape code is ASCII of expected length 2016-04-05 11:13:36 +09:00
Tae-il Lim 8dbc107441 Tweak unicode-escape test 2016-04-03 17:08:23 +09:00
Alex Crichton b25592c238 Merge pull request #92 from trlim/master
Update integration tests
2016-04-03 00:14:03 -07:00
Tae-il Lim 8a207a83fe Update integration tests to BurntSushi/toml-test@2f1c20de60 2016-04-02 17:15:59 +09:00
Alex Crichton c53fceb42c Merge pull request #89 from BourgondAries/master
Allow advanced lookups in lookup and lookup_mut
2016-03-27 22:54:34 -07:00
Bourgond Aries 644dc88c04 Add a bunch of negative and positive tests 2016-03-28 06:35:39 +02:00
Bourgond Aries 33c49d0357 Leverage fn array_index to fn integer 2016-03-28 06:24:25 +02:00
Bourgond Aries 568dd2ef4b Fix the indentation to be consistent with the repository 2016-03-27 21:19:03 +02:00
Bourgond Aries 442f663c2d Add advanced lookup for table names 2016-03-27 20:55:49 +02:00
Bourgond Aries 770052a9a7 Add a test for lookup_mut_advanced 2016-03-27 20:50:25 +02:00
Bourgond Aries 0e3e0654ba Implement advanced key lookup for lookup_mut 2016-03-27 20:48:23 +02:00
Bourgond Aries 3517215eab Implement a more advanced algorithm for lookup
The new algorithm allows the explicit usage of "" and '' to denote key
names. This is useful for accessing tables or keys that are named in a
non-conventional manner.
2016-03-27 20:46:19 +02:00
Alex Crichton b0a134a1d9 Merge pull request #88 from BourgondAries/master
Add lookup_mut method for mutable access
2016-03-25 14:11:45 -07:00
Bourgond Aries b171205c57 Add a test to see if the table's contents have changed 2016-03-25 17:43:32 +01:00
Bourgond Aries 32969ca891 Implement the non-recursive lookup_mut
Also include some tests simply by copying and modifying
the other tests for lookup.
2016-03-25 17:33:46 +01:00
Bourgond Aries 9b1dc843fc Add lookup_mut method for mutable access
Mutable access may sometimes be desired in order to change values
in the toml table. This can be used for dynamic configurations which
will be easy to modify and store.

lookup_mut requires a recursive method due to the borrow checker
not allowing to have more than one mutable reference in the same
scope.
2016-03-24 14:18:00 +01:00
Alex Crichton cf718f7b0e Update deps 2016-03-11 09:27:24 -08:00
Alex Crichton cf4656cb3a Bump to 0.1.28 2016-03-11 09:23:01 -08:00
Alex Crichton 511c235d7d Fix last tests 2016-03-11 09:20:32 -08:00
Alex Crichton 3345fea319 Fix an error message test, simlify some serde code 2016-03-11 01:32:16 -08:00
Alex Crichton d02e622330 WIP 2016-03-07 23:48:01 -08:00
Alex Crichton 77be56048c Bump to 0.1.27 2016-02-01 16:50:25 -08:00
Alex Crichton 67ddadf504 Update toml dep in serde-tests 2016-01-25 16:57:56 -08:00
Alex Crichton b644d9577f Bump to 0.1.26 2016-01-25 16:53:20 -08:00
Alex Crichton 0fd42c9e17 Move travis from 1.0.0 -> stable 2016-01-25 13:04:04 -08:00
Alex Crichton 6b0a1362a1 Support literal strings in table names
Closes #85
2016-01-24 10:50:39 -08:00
Alex Crichton 5431cade31 Merge pull request #84 from frewsxcv/clippy
Address issues found by rust-clippy
2016-01-21 08:43:02 -08:00
Corey Farwell 7be39d725d Address issues found by rust-clippy 2016-01-21 08:38:09 -05:00
Alex Crichton 6fe6a15fe5 Merge pull request #82 from shepmaster/patch-1
Minor documentation grammar fix
2016-01-11 11:05:56 -08:00
Alex Crichton af2c45147d Update rand dependency 2016-01-09 10:25:23 -08:00
Jake Goulding 67107034fc Minor documentation grammar fix 2016-01-01 17:57:01 -05:00
Alex Crichton 67138b6c8e Update deps of serde-tests 2015-12-18 16:37:04 -08:00
Alex Crichton 12f39767a8 Bump to 0.1.25 2015-12-18 16:29:29 -08:00
Alex Crichton 39d77b6d79 When decoding maps, leave fields that weren't processed
Fixes an XXX
2015-12-18 16:29:07 -08:00
Alex Crichton 4987b47a92 Update serde-tests lockfile 2015-12-15 10:10:31 -08:00
Alex Crichton 0c4c78d68c Update travis syntax 2015-12-15 10:02:35 -08:00
Alex Crichton 92b2ff1056 Merge pull request #79 from silvo38/master
Remove floats from the Decoder.toml field when they get parsed
2015-12-15 10:01:15 -08:00
Cameron Silvestrini caa4615536 Fixed bug: floats always end up in Decoder.toml, even when they have
been successfully decoded.
2015-12-15 22:43:24 +11:00
Alex Crichton bfbeea6b44 Bump to 0.1.24 2015-12-10 06:07:56 -08:00
Alex Crichton 1723654a08 Don't run serde tests on 1.0.0 2015-11-29 15:01:34 -08:00
Alex Crichton 6188b884fd Update dependencies 2015-11-29 14:52:35 -08:00
Alex Crichton df23a34b8b Update toml in serde Cargo.lock 2015-10-07 10:23:13 -07:00
Alex Crichton b5af93a08e Bump to 0.1.23 2015-10-07 09:50:59 -07:00
Alex Crichton 67adf87dd4 Merge pull request #75 from andersforsgren/allow-toml-BOM
Allow BOM (Byte order mark) in toml
2015-10-07 09:50:44 -07:00
osboxes.org dea8646b8b Allow BOM (Byte order mark) in toml 2015-10-07 11:35:49 +02:00
Alex Crichton 96c6cd94ec Merge pull request #74 from GuillaumeGomez/master
Add Clone derive on ParserError
2015-09-29 17:31:39 -07:00
Guillaume Gomez db75e532e5 Add Clone derive on ParserError 2015-09-30 00:00:17 +02:00