Commit Graph

449 Commits

Author SHA1 Message Date
Havoc Pennington
bce78c8ec0 Don't run tests in parallel
Since some of them test global state, such as the reference config cache.

Fixes #9 which was just broken tests not a real bug.
2014-01-03 12:49:15 -05:00
Havoc Pennington
a48edce4b4 Add a test that we can get values from an unresolved config 2013-12-20 09:02:14 -05:00
Havoc Pennington
48fe0e9712 Merge pull request #118 from typesafehub/wip/havocp-parse-1d-117
Parse 1d as 1 day instead of as a double
2013-12-20 05:13:50 -08:00
Havoc Pennington
b12a481cd9 Merge pull request #116 from typesafehub/wip/havocp-allow-unquoted-number-chars
Allow unquoted strings consisting entirely of number chars
2013-12-20 05:13:07 -08:00
Havoc Pennington
975836628e Merge pull request #102 from typesafehub/wip/havocp-checkvalid-indexed-objects
Fix for #101 checkValid handling of indexed objects
2013-12-20 05:12:44 -08:00
Havoc Pennington
7e0c60c0a0 Parse 1d as 1 day instead of as a double
Fixes #117
2013-12-12 15:02:17 -05:00
Havoc Pennington
7ac81ecb5e Allow unquoted strings consisting entirely of number chars
Previously, a string which was an invalid number (such as
"1.0.0" or "1e3e3") but consisted entirely of chars allowed
in numbers would be an error and require quoting. Now, we
allow such strings to be unquoted.
2013-12-06 12:24:17 -05:00
Havoc Pennington
41f3de8261 Add a discussion of defaults to the README 2013-11-21 09:55:24 -05:00
rob.david
caa12b7e16 Added checkValid() to all list tests in PropertiesTest 2013-11-14 13:18:24 -05:00
Havoc Pennington
c5a9ad6974 In checkValid() allow indexed obj to override a list
Fixes #101
2013-11-06 09:38:53 -05:00
Havoc Pennington
a5df1fb8a2 Add useful toString to ConfigException.ValidationProblem 2013-11-06 09:27:13 -05:00
Havoc Pennington
f87cde2ae3 Add a couple test cases for list1.withFallback(list2) 2013-10-10 22:28:23 -04:00
Havoc Pennington
d4c3ca568a Fix ConfigException serialization with null origin
Fixes #92
2013-10-08 09:27:36 -04:00
Havoc Pennington
05197ab17e Add Java version of the examples 2013-09-27 16:15:54 -04:00
Havoc Pennington
15e5ad4e6e ignore .cache anywhere in the hierarchy 2013-09-27 15:53:56 -04:00
Havoc Pennington
3522313214 move /bin in .gitignore since eclipse plugin keeps wanting to append it (?) 2013-09-27 15:37:35 -04:00
Havoc Pennington
f41cc8071c move examples to a Scala directory so it's easy to add others 2013-09-27 15:37:06 -04:00
Havoc Pennington
868a50a53d Try to use Content-Type when loading a URL
This is intended to fix #67. Unfortunately we don't have test coverage
for URL loading, so not feeling super confident.
2013-09-27 13:27:39 -04:00
Havoc Pennington
54ec27ec2a Port to sbt 0.13.0 2013-09-27 13:27:39 -04:00
Havoc Pennington
bfdd9bcc5e Merge pull request #89 from typesafehub/wip/tune-quoting-in-render
Unquote keys with hyphen when rendering, fixes #83
2013-09-19 17:23:55 -07:00
Havoc Pennington
d3f638f2c0 Unquote keys with hyphen when rendering, fixes #83 2013-09-19 17:37:04 -04:00
Havoc Pennington
e85a54e4a1 Merge pull request #88 from typesafehub/havocp-comment-spaces
Don't add multiple spaces in front of comments, fixes #87
2013-09-19 09:50:44 -07:00
Havoc Pennington
e76a54843e Merge pull request #82 from typesafehub/havocp-comment-affiliation
Associate comments after a value with that value, fixes #81
2013-09-19 09:50:39 -07:00
Havoc Pennington
1653cc8e88 Don't add multiple spaces in front of comments, fixes #87 2013-09-19 11:43:47 -04:00
Havoc Pennington
bd38eca98f Associate comments after a value with that value, fixes #81
This is purely cosmetic (makes debug comments in render() more
useful).
2013-07-23 20:37:24 -04:00
Havoc Pennington
c545910761 move to junit-interface 0.10-M4
This supports test-only parameter for the test name to run.
2013-07-23 20:36:52 -04:00
Havoc Pennington
274dd4f6b3 Cosmetic fix to SimpleIncluder.java
There was some stuff needlessly outside the block in
which it was used.
2013-07-12 15:44:32 -04:00
Havoc Pennington
41a7dfd62a Better error reporting in SimpleIncluder.fromBasename
- if config.trace=loads, log if we don't find anything
 - keep the first load failure and use as 'cause' for the
   thrown exception

Together with the previous commits to log load errors, this
fixes #78
2013-07-12 15:32:45 -04:00
Havoc Pennington
f7b3f40dd9 on throwing ConfigException.IO include class name of the original exception
This is intended to surface "FileNotFoundException" or whatever.
2013-07-12 15:32:45 -04:00
Havoc Pennington
a233ac9332 When config.trace=loads, log IOException for each load 2013-07-12 15:32:45 -04:00
Havoc Pennington
daa893d206 Merge pull request #77 from typesafehub/77-debug-symbols
Compile with debug symbols
2013-07-12 09:31:11 -07:00
James Roper
02998b83a5 #77 Ensured config is compiled with debug symbols 2013-07-12 12:50:06 +10:00
Havoc Pennington
a8fdca3589 1.0.2 NEWS and README changes 2013-07-03 09:12:06 -04:00
Havoc Pennington
b57b569420 add docs to load() pointing to parseResourcesAnySyntax() 2013-07-01 15:19:55 -04:00
Havoc Pennington
2c106ad940 remove unused variant of ResolveContext.resolve static method
It was broken (ignored its restrictToChild parameter) but since
it was also unused, just nuked it.
2013-06-25 10:29:37 -04:00
Havoc Pennington
8f8b576800 Update to scala 2.10.2 and lift-json 2.5
Fix related warnings, and adapt to lift-json's increased leniency.
2013-06-25 10:25:42 -04:00
Havoc Pennington
3ac6f7472f gitignore nested .classpath/.project/.settings 2013-06-25 10:07:20 -04:00
Havoc Pennington
7231e14886 Treat BOM as whitespace, fixes #75 2013-06-21 10:59:38 -04:00
Havoc Pennington
369e9ff1e2 Merge pull request #59 from typesafehub/wip-add-getDuration-√
Wip add get duration √
2013-06-21 07:36:37 -07:00
Havoc Pennington
c6cd729746 Fix exception text for bad duration value
It said it expected a string or number of $units,
but really if it's a number it always has to be
milliseconds.
2013-06-21 10:21:50 -04:00
Havoc Pennington
91ec79f976 add @since to getDuration, and minor doc tweaks 2013-06-21 10:17:28 -04:00
Viktor Klang
796f25acac Deprecating getMilliseconds* and getNanoseconds* and add getDuration* 2013-06-21 10:04:43 -04:00
Viktor Klang
0b1eb35900 Adding IDEA specific subdirs to .gitignore 2013-06-21 10:04:43 -04:00
Havoc Pennington
55ecac913c Open 1.1.0-SNAPSHOT for API additions. 2013-06-21 09:57:56 -04:00
Havoc Pennington
31b64a9327 back to -SNAPSHOT and put 1.0.1 in the README 2013-05-19 20:43:01 -04:00
Havoc Pennington
6303917eaa v1.0.1 2013-05-19 20:40:30 -04:00
Havoc Pennington
05ab74d15d Fix javadoc warnings 2013-05-19 20:38:38 -04:00
Havoc Pennington
b66664b448 Explain merging a bit better in withFallback docs 2013-05-19 16:19:17 -04:00
Havoc Pennington
bad495ba16 mention in Config.resolve docs that ConfigFactory methods may call it for you 2013-05-19 15:21:47 -04:00
Havoc Pennington
29c7d62a52 Mention the need to call resolve() in the Config docs 2013-05-19 10:29:05 -04:00