Commit graph

331 commits

Author SHA1 Message Date
Jordan Harband
6ce0b7aef3 Surfacing additional JSON.stringify arguments in formats.json.stringify, and adding the json_spacing option to the File constructor. 2012-04-13 13:22:42 -07:00
Maciej Małecki
b3699314cf [minor] Use fs.existsSync when available
`path.exists*` was moved to `fs` module in
joyent/node@e10ed097cb.
2012-03-29 13:13:16 +02:00
Maciej Małecki
d8c4749335 [test] Test on node@0.7 2012-01-17 19:29:43 +01:00
indexzero
464af417fe [fix test] Fix bad test assertion 2012-01-02 17:27:09 -05:00
indexzero
6a6e092062 [dist] Version bump. 0.5.1 2012-01-02 17:20:17 -05:00
indexzero
6242caafda [api minor] Add .loadSync() to Memory store. Fixes #24 2012-01-02 17:20:06 -05:00
indexzero
d0a91219ec [test dist] Remove unused eyes dependency 2012-01-02 17:14:17 -05:00
indexzero
9e9e37bb84 [minor] Update whitespace 2012-01-02 17:14:03 -05:00
Jonathan Stewmon
fdb73f007b updated tests to verify that Provider.load respects hierarchy 2012-01-02 17:12:08 -05:00
Jonathan Stewmon
a216336290 updated Provider.load to respect sources hierarchy 2012-01-02 17:11:51 -05:00
Jonathan Stewmon
6b6bf85802 updated optimist to version 0.3.x 2012-01-02 17:11:36 -05:00
Jonathan Stewmon
5c43d546d1 fixed merge issue in Provider.load by reversing store keys in getStores 2012-01-02 17:11:31 -05:00
Jonathan Stewmon
2804b1fb37 fixed issue caused by using same name for defaults and overrides 2012-01-02 17:11:24 -05:00
Maciej Małecki
e0e070ab28 [test] Test if File.saveSync() returns store content
Tests #27.
2011-12-25 15:38:39 +01:00
Maciej Małecki
963387cfd4 [api] File.saveSync() should return store content
Fixes #27.
2011-12-25 15:30:48 +01:00
Maciej Małecki
d5ce1ed68f [test] Test saveSync() method of file store 2011-12-25 15:26:04 +01:00
Pavan Kumar Sunkara
cf9889ea81 [dist] Upgrade vows to 0.6.x 2011-12-08 11:27:48 +05:30
indexzero
62cb7fb3d9 [dist] Version bump. 0.5.0 2011-11-24 00:33:22 -05:00
indexzero
6c720ee109 [dist] Update Copyright and Author to Nodejitsu Inc. 2011-11-24 00:33:08 -05:00
indexzero
4643a14a5c [doc] Updated README and added CHANGELOG.md 2011-11-24 00:30:34 -05:00
indexzero
90b029782e [test] Update tests to use optional options API 2011-11-24 00:30:31 -05:00
indexzero
53d854a789 [api] Default to options if options.store is not available in nconf.Literal 2011-11-24 00:30:27 -05:00
indexzero
b658f68a89 [test] Add additional test coverage for hierarchical configuration 2011-11-24 00:30:24 -05:00
indexzero
a9c354032b [fix test] Fix overwritten tests in file-store-test.js 2011-11-24 00:30:19 -05:00
indexzero
f4f1fdf464 [fix test] Update to respected .sources option correctly 2011-11-24 00:30:14 -05:00
indexzero
bbcb2712f1 [api fix] Dont eagerly create config files in .load() and .loadSync() 2011-11-24 00:30:11 -05:00
indexzero
021850a14d [test] Move around test .json files 2011-11-24 00:29:51 -05:00
indexzero
0fbc9a2722 [test] Added tests (which are now passing) for #15 2011-11-24 00:29:47 -05:00
indexzero
16a18bffe6 [refactor] Expose all store prototypes on nconf.*. Expose store instances on Provider.stores and Provider.sources 2011-11-24 00:29:43 -05:00
indexzero
c3cebe7cb4 [refactor] Rename .sources to ._stores and bring back ._sources 2011-11-24 00:29:39 -05:00
indexzero
78ce55602f [minor] Dont allow .set() calls to change values in readOnly stores: argv, env, and literal 2011-11-24 00:29:35 -05:00
indexzero
1aa2f1f315 [doc] Updated README.md 2011-11-24 00:29:31 -05:00
Sander Tolsma
47a56ccb5a [test] Test for hierarchical argv options get() 2011-11-24 00:29:27 -05:00
indexzero
c3c315d648 [refactor] Refactor to make using nconf more fluent. 2011-11-24 00:29:15 -05:00
Marak Squires
2c1ef7118c [dist] Bump to v0.4.6 2011-11-21 17:17:01 -08:00
Marak Squires
223ad35ae2 Merge pull request #19 from flatiron/fix-option-reparsing
[fix] Fix option parsing
2011-11-21 17:10:57 -08:00
Maciej Małecki
1b258bf5b3 [fix] Fix option parsing
See nodejitsu/forever#165.
2011-11-22 02:06:09 +01:00
Maciej Małecki
ef3222e7ab [dist] Make repository point to flatiron/nconf 2011-11-22 01:39:49 +01:00
indexzero
f4723e9654 [dist] Version bump. 0.4.5 2011-11-20 14:34:16 -05:00
Maciej Małecki
2475d06cb2 [test] Test command line arguments reparsing 2011-11-19 02:02:22 +01:00
Maciej Małecki
bbc5885fc1 [api] Reparse argv arguments on system.loadArgv()
It allows manipulating `process.argv` on the fly while still being able
to use nconf `System` store.
2011-11-19 01:58:08 +01:00
Maciej Małecki
51700cae88 [test minor] Use process.argv[0] when spawning processes
Previous implementation used `node`.
2011-11-19 01:29:01 +01:00
Maciej Małecki
07f8c3e558 [doc] Add Travis build status image 2011-11-18 22:29:32 +01:00
Maciej Małecki
bab96b045a [test] Add .travis.yml for testing on Travis CI 2011-11-18 22:29:05 +01:00
indexzero
b96151e617 [dist] Version bump. 0.4.4 2011-10-22 02:38:24 -04:00
Joshua Holbrook
d8a30203ce [fix] filename --> file in a few file transport examples 2011-10-22 02:38:05 -04:00
indexzero
2e33082f0b [api] Automatically search for a file if options.search is true in File store 2011-10-22 02:36:45 -04:00
indexzero
86e22cb927 [dist] Version bump. 0.4.3 2011-09-25 00:46:40 -04:00
indexzero
a2464d244b [api] Load sources into the default system store so they are permenantly cached 2011-09-25 00:46:28 -04:00
indexzero
e243b0befe [dist] Version bump. 0.4.2 2011-09-25 00:21:42 -04:00