Commit graph

321 commits

Author SHA1 Message Date
moandji.ezana 6340d39ba7 Reduce visibility of TomlWriter#getIndentationPolicy() 2015-06-30 12:23:28 +02:00
moandji.ezana 5af1ca6f06 Removed unnecessary SuppressWarnings 2015-06-30 12:19:40 +02:00
moandji.ezana 56be048ab1 Created TomlWriter.Builder, so TomlWriter and IndentationPolicy can be
immutable
2015-06-30 11:37:22 +02:00
moandji.ezana 0f42d37f60 Updated changelog 2015-06-29 21:30:02 +02:00
moandji.ezana d8a02ce356 Support for special cases: char, Character, URL, URI and enums. 2015-06-29 20:52:32 +02:00
moandji.ezana 210d9dcb3c Renamed ValueWriterTest to TomlWriterTest 2015-06-29 20:11:59 +02:00
moandji.ezana d9964fd61a Added an example for each TomlWriter#write method 2015-06-29 20:10:43 +02:00
moandji.ezana 3a3915416a Added finally block to TomlWriter#write(Object, File) to close
FileWriter
2015-06-29 19:41:44 +02:00
moandji.ezana feb3aec259 TomlWriter#write methods delegate to TomlWriter#write(Object, Writer) to
take advantage of streaming when possible.
2015-06-29 18:49:34 +02:00
moandji.ezana 123aa21aed Moved BurntSushi encoder tests to own class to make it easier to see
which tests have been implemented.
2015-06-29 10:13:12 +02:00
moandji.ezana 9968add0ae Removed ValueWriter#isTable() 2015-06-29 09:57:05 +02:00
moandji.ezana 121db7ef05 Merge branch 'wip' of git://github.com/dilecti/toml4j into writer 2015-06-29 08:30:43 +02:00
Jonathan Wood a879385f4c Tweak test for openjdk-6. 2015-06-28 20:18:27 -07:00
Jonathan Wood 99c48231c2 Refuse to write heterogeneous arrays. 2015-06-28 14:35:39 -07:00
Jonathan Wood 7ce548e616 Note writer options in the readme. 2015-06-28 14:15:38 -07:00
Jonathan Wood f3dca7d24f Remove extraneous tests.
The burntsushi tests provide adequate coverage of these.
2015-06-28 14:09:20 -07:00
Jonathan Wood b550e638c7 Run burntsushi tests on TomlWriter, where possible. 2015-06-28 13:54:29 -07:00
Jonathan Wood 1a0d38bc72 Improve wording for array whitespace controls 2015-06-28 13:37:47 -07:00
Jonathan Wood 77f7b922be Fix escaping of back slashes. 2015-06-28 13:35:34 -07:00
Jonathan Wood 3d90260d32 Add methods to control date formatting and time zones. 2015-06-28 11:52:40 -07:00
Jonathan Wood ecbd9f048d Add a way to control spacing around array brackets. 2015-06-28 11:26:49 -07:00
Jonathan Wood 72941c146d Add writer indentation policy controls.
Set the default indentation to 0.
2015-06-28 10:30:35 -07:00
Jonathan Wood 24a6503d19 Conform to the project's singleton pattern. 2015-06-27 14:35:26 -07:00
Jonathan Wood 8b3652a309 Remove classes merged into Converters. 2015-06-27 14:27:38 -07:00
Jonathan Wood bcc52f5cb0 Use new 'write' vocabulary in the docs. 2015-06-27 14:23:52 -07:00
Jonathan Wood ec30be7901 Move Toml.write() to TomlWriter.
Add TomlWriter methods for writing to File, Writer, and OutputStream
targets.
2015-06-27 14:19:40 -07:00
Jonathan Wood acc952a572 Remove Toml.serialize(). 2015-06-27 13:11:52 -07:00
Jonathan Wood c076099ddd Use 'write' rather than 'serialize'.
Also refactor ValueWriter implementations into ValueConverter
implementations, where possible.
2015-06-27 12:50:15 -07:00
Jonathan Wood ca6e043926 Change bouncy caps to underscores in test names. 2015-06-25 09:31:36 -07:00
Jonathan Wood b729e450ab Fix thread-safety issue in DateSerializer. 2015-06-25 09:21:36 -07:00
Jonathan Wood 1216a009cb 4 -> 2 spaces 2015-06-25 08:01:34 -07:00
Jonathan Wood 4ed3740732 Fix Date serialization testing.
The test can be run in any time zone, so always test with a Date instance
from the local time zone where the test is being run.
2015-06-25 07:56:04 -07:00
Moandji Ezana ad8a9fd932 Switched build status badge to wip branch 2015-06-25 11:09:19 +02:00
Moandji Ezana f210ad02fb Switched dependency status badge to wip branch 2015-06-25 11:03:33 +02:00
Moandji Ezana 2fec857f14 Changed coverage status badge to wip branch 2015-06-25 10:56:11 +02:00
Jonathan Wood 64afb09d96 Java-6 style date/tz formatting 2015-06-24 23:35:19 -07:00
Jonathan Wood 9f717384a4 Don't use java.util.function.Predicate.
It is a Java-8 addition.
2015-06-24 22:14:42 -07:00
Jonathan Wood bb0d9b1146 Add serialization to changelog. 2015-06-24 21:55:37 -07:00
Jonathan Wood f8f55a6f16 Merge remote-tracking branch 'upstream/wip' into merge
Conflicts:
	README.md
	src/main/java/com/moandjiezana/toml/Toml.java
2015-06-24 21:49:24 -07:00
Jonathan Wood e7d7de7ae5 Implement serialization.
This provides functionality to convert populated Toml instances
and arbitrary objects into TOML.
2015-06-24 21:40:06 -07:00
moandji.ezana 8571d258ca Updated coveralls plugin command in Travis CI config 2015-06-24 01:07:58 +02:00
moandji.ezana 38666593dd Added Toml#contains(String) and Toml#containsXxx(String) methods 2015-06-24 01:07:34 +02:00
moandji.ezana 0cea9ae187 Added test cases for iterating over empty TOML and key containing empty
list
2015-06-24 00:49:41 +02:00
moandji.ezana 1b2aa582d9 Removed trailing newlines from error messages.
Fixes https://github.com/mwanji/toml4j/issues/18
2015-06-23 23:46:35 +02:00
moandji.ezana 9f29f6951f Updated outdated dependencies and removed unused fest-reflect dependency 2015-06-23 23:24:48 +02:00
moandji.ezana 1c3e0642ae Renamed IteratorTest -> IterationTest 2015-06-23 23:05:18 +02:00
moandji.ezana 80008fca15 Updated Reflection section of readme 2015-06-23 23:05:18 +02:00
moandji.ezana 4074242e0b Using a private implementation of Map.Entry instead of public Toml.Entry
class
2015-06-23 23:05:18 +02:00
moandji.ezana 68513b0851 Added to Toml#entrySet() documentation 2015-06-23 23:05:18 +02:00
moandji.ezana 15c014a327 Added documentation 2015-06-23 23:05:18 +02:00