Commit graph

239 commits

Author SHA1 Message Date
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
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
moandji.ezana
a0bd307f58 Added Toml#entrySet() 2015-06-23 23:05:18 +02:00
moandji.ezana
5402ce22f3 Updated change log 2015-04-29 22:25:41 +02:00
moandji.ezana
ae2911c82c Toml#getTables() returns null for missing keys and indices 2015-04-29 22:10:30 +02:00
moandji.ezana
24a5134c2c getTable() and getTables() return null for missing keys 2015-04-29 21:46:22 +02:00
moandji.ezana
a210896477 Improved a test's assertion semantics 2015-04-29 21:36:44 +02:00
moandji.ezana
a342b1fef6 Toml#getList() returns null if key is missing 2015-04-29 20:30:11 +02:00
moandji.ezana
4d32f77ce0 Removed Toml#to(Class, Gson) 2015-04-29 00:19:39 +02:00
moandji.ezana
0817b40d8f Simplified test names 2015-04-13 13:24:52 +02:00
moandji.ezana
8cae6c2e32 Improved error message when key overwrites table 2015-04-13 13:23:58 +02:00
moandji.ezana
0795127266 New error message when table overwrites existing key definition 2015-04-13 13:04:10 +02:00
moandji.ezana
1a6ddbd5ac Moved tests to more appropriate classes 2015-04-13 11:42:05 +02:00
moandji.ezana
1e19f0847f Updated contributon guidelines 2015-03-30 23:00:10 +02:00
moandji.ezana
af5a2a5867 Updated docs and changelog 2015-03-30 22:57:14 +02:00
moandji.ezana
439d1c600d Fixed typo 2015-03-30 22:46:13 +02:00
moandji.ezana
d958baebb5 Added getArray(String, List) 2015-03-30 22:45:15 +02:00
moandji.ezana
c0eafb9f17 DRY-er date creation in tests 2015-03-30 22:31:13 +02:00
moandji.ezana
d31792e5a8 Added test to show that constructor defaults take precedence over method
defaults
2015-03-30 22:09:12 +02:00
moandji.ezana
7f11f97020 Merge branch 'default_values' of git://github.com/udiabon/toml4j into default_values 2015-03-30 21:51:33 +02:00
moandji.ezana
f5e19dbb4b Merge branch 'master' into wip 2015-03-30 21:48:27 +02:00
Nick Jiang
414bd396fa Call original method to avoid duplicated work. 2015-03-27 10:13:09 +08:00
Nick Jiang
3773c4eadf Remove the ignores use global .gitignore instead. 2015-03-27 09:41:43 +08:00
moandji.ezana
5a608cad02 Clarified that PRs should be against wip branch 2015-03-26 11:25:26 +02:00
Nick Jiang
bc04eec538 Returns the default value if the key was not found. 2015-03-26 16:50:48 +08:00
Nick Jiang
7f0ea04e99 Ignore the folder "target". 2015-03-26 16:46:39 +08:00
moandji.ezana
ffb0e08290 Fixed typo 2015-03-11 23:06:55 +02:00
moandji.ezana
8d183061ec Fixed typo 2015-03-11 23:01:31 +02:00
moandji.ezana
baec3a1697 Added VersionEye badge to README 2015-02-19 21:26:27 +02:00
moandji.ezana
598c319ef3 Bumped version and updated change log
[ci skip]
2015-02-17 10:28:27 +02:00
moandji.ezana
252a704a61 Merge branch 'master' into wip 2015-02-17 10:26:27 +02:00
moandji.ezana
8c66284960 In number, underscore after dot is invalid 2015-02-17 10:24:45 +02:00
moandji.ezana
7aa496582c Added v0.4.0 example 2015-02-17 10:21:57 +02:00
moandji.ezana
a3edb55e9c Merge branch 'underscores_in_numbers' into wip. Fixed version example
test.

Conflicts:
	src/main/java/com/moandjiezana/toml/NumberConverter.java
2015-02-17 10:21:17 +02:00