Havoc Pennington
576646308a
fix up publishSigned configuration and ban plain publish
2014-01-06 14:39:21 -05:00
Havoc Pennington
adc1099ff1
Merge pull request #130 from typesafehub/wip/havocp-git-versioning
...
Switch to git-hash snapshots instead of SNAPSHOT snapshots
2014-01-06 11:02:35 -08:00
Havoc Pennington
1bb06fd1c4
Switch to git-hash snapshots instead of SNAPSHOT snapshots
2014-01-06 12:57:32 -05:00
Havoc Pennington
afe042b99b
Merge pull request #127 from typesafehub/wip/havocp-render-tweaks
...
Rendering tweaks
2014-01-06 06:59:26 -08:00
Havoc Pennington
172aa72ea3
Merge pull request #129 from typesafehub/wip/havocp-config-load-nonexistent
...
Require config.file/resource/url to exist regardless of parse options
2014-01-06 06:59:10 -08:00
Havoc Pennington
1ab16b6a9c
Merge pull request #126 from typesafehub/wip/havocp-test-missing-values
...
Add tests for keys with no value
2014-01-06 06:58:58 -08:00
Havoc Pennington
cf56fb6b27
Merge pull request #124 from typesafehub/wip/havocp-fine-resolve-control
...
Add better control over the resolution process
2014-01-06 06:58:39 -08:00
Havoc Pennington
e7c92a9fc2
Merge pull request #123 from typesafehub/wip/havocp-only-doc-main-lib
...
Disable doc publication and generation for examples and tests
2014-01-06 06:58:15 -08:00
Havoc Pennington
6b8cf618be
Require config.file/resource/url to exist regardless of parse options
...
These are overriding what was set programmatically, so even if
the app wants to allow the config file to be missing normally,
since these were manually specified they should have to exist.
People get confused when they set a nonexistent file and it
silently doesn't work.
Fixes #97
2014-01-03 15:28:44 -05:00
Havoc Pennington
ece29bf3fb
Merge pull request #128 from typesafehub/wip/havocp-no-parallel-tests
...
Don't run tests in parallel
2014-01-03 12:14:56 -08:00
Havoc Pennington
ef4f0c7d5f
Clean up render of root objects
...
* no extra level of indentation when no braces
* no newline at start
* always have newline at end
Fixes #44
2014-01-03 14:42:49 -05:00
Havoc Pennington
b4d2aafd34
Improve the rendering test app a little
2014-01-03 14:41:15 -05:00
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
fe6ccc6849
Add tests for keys with no value
...
This is intended to be an error, and it appears to be right now.
Fixes #125
2014-01-03 11:14:51 -05:00
Havoc Pennington
247236c6f1
add Config.resolveWith()
...
This allows replacing substitutions with values which
are not merged into the Config.
Fixes #95
2014-01-03 11:02:45 -05:00
Havoc Pennington
d7287c9e16
add a Config.isResolved method
...
Now that partial resolution is allowed, this may be useful
for people to check after they do a partial resolve.
2014-01-03 10:27:44 -05:00
Havoc Pennington
8c0afc58d9
Add ConfigResolveOptions.allowUnresolved
...
This allows Config.resolve() to do a partial resolve.
Fixes #100
2014-01-03 09:59:08 -05:00
Havoc Pennington
7649eb1274
Disable doc publication and generation for examples and tests
2014-01-03 09:53:46 -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