Commit Graph

731 Commits

Author SHA1 Message Date
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
Havoc Pennington
4a62e10754 Link to examples and overview from Config, ConfigFactory docs
Trying to help people find the big-picture points they need to see.
2013-05-19 10:26:48 -04:00
Havoc Pennington
61675293f7 Discuss conversion of objects to arrays in the spec 2013-05-09 12:17:29 -04:00
Havoc Pennington
ed7c97d06c Convert numerically-indexed objects to arrays in concatenations 2013-05-09 12:17:14 -04:00
Havoc Pennington
338150f281 Try to convert objects with numeric keys to lists
This is mostly intended to provide a way to specify lists
on the command line via Java properties, like -Dfoo.0 -Dfoo.1

Fixes #69
2013-05-07 11:02:55 -04:00
Havoc Pennington
145a9be612 Merge pull request #63 from mpilquist/cme-sysprops-fix
Fix ConcurrentModificationException that occurs when system properties are being modified during a call to ConfigImpl#loadSystemProperties
2013-03-18 14:03:17 -07:00
Michael Pilquist
89956ea7df Fix ConcurrentModificationException that occurs when system properties are being modified during a call to ConfigImpl#loadSystemProperties 2013-03-18 16:51:52 -04:00
Havoc Pennington
b5b0f17ac1 Track newlines within triple quotes, fixes #61 2013-03-04 09:50:17 -05:00
Havoc Pennington
41d3d0bb1c Switch to sbt 0.12.1
- update all plugin versions
- drop the custom javadoc-sbt plugin in favor of sbt's native javadoc support
- update to a lift-json that's built against 2.9.2
2012-12-06 09:11:02 -05:00
Havoc Pennington
888e398367 put back -SNAPSHOT after 1.0.0 2012-10-15 09:02:14 -04:00
Havoc Pennington
3c6007547e v1.0.0 2012-10-15 09:01:57 -04:00
Havoc Pennington
eac5c6c790 put back -SNAPSHOT after 0.6.0 2012-10-10 14:09:07 -04:00
Havoc Pennington
c6a068888c v0.6.0 publish 2012-10-10 14:08:31 -04:00
Havoc Pennington
c38e849f43 add ConfigRenderOptions.setJson(false)
This allows you to render using HOCON extensions (other than
comments; comments are still controlled by separate options).

Intended to address github issue #44
2012-10-08 17:41:32 -04:00
Havoc Pennington
5f486f65ac Add ConfigFactory.invalidateCaches() to support reloading system props
This lets people change system props in unit tests for example.
Issue #43 on github.
2012-10-08 15:30:47 -04:00
Havoc Pennington
b739f4be6e Make ConfigException serializable
Done with a custom serialization because we don't want ConfigOrigin
to be serializable; if ConfigOrigin were serializable we'd have to
support its serialization remaining compatible across releases.
And there's no known use for ConfigOrigin being serializable.

Not intending to support ConfigException serialization back compat
across releases, because that probably isn't useful or expected.
2012-10-03 10:12:53 -04:00
Havoc Pennington
67f5851ff2 Fix some indentation in PublicApiTest.scala 2012-10-03 10:12:01 -04:00
Havoc Pennington
b9a8af5960 add a colon in the spec 2012-10-02 09:20:37 -04:00
Havoc Pennington
7df7a14b34 put back -SNAPSHOT after 0.5.2 2012-09-06 09:27:32 -04:00