Commit Graph

151 Commits (0.6.2)

Author SHA1 Message Date
indexzero 80a79733d3 [dist] Version bump. 0.6.2 2012-07-10 01:29:58 -04:00
indexzero 7515f66572 [fix] Ensure that all options are passed to `Provider.prototype.add` in `Provider.prototype.file`. Fixes #51
[doc] Update README.md and method documentation
[dist] Remove vim comments
2012-07-10 01:27:28 -04:00
indexzero eeddb70f20 [dist] Version bump. 0.6.1 2012-07-08 01:40:33 -04:00
Pavan Kumar Sunkara 6dd2351991 Merge pull request #49 from mhart/nested-env-configs
Add support for nested configs via env
2012-06-21 01:44:16 -07:00
Michael Hart 9aaafc5a22 Ugh, fixed whitespace 2012-06-21 18:05:52 +10:00
Michael Hart 3c08fad1c9 Changed to as it's more accurate 2012-06-21 18:04:37 +10:00
Michael Hart e15f787940 Updated README and allowed a simpley syntax 2012-06-21 17:18:22 +10:00
Michael Hart 92d4e9ea14 Added test and updated docs 2012-06-21 17:04:06 +10:00
Michael Hart 8921d0502e Added support for nested configs via env 2012-06-21 16:46:10 +10:00
Michael Hart 6cbc323005 Add reset to the list of destructive commands 2012-06-14 19:40:28 +05:30
Michael Hart 26d81e8dca Merge objects if necessary when traversing stores on get() 2012-06-13 18:28:54 +05:30
Joshua Holbrook 6b1b019353 Merge pull request #40 from tellnes/master
[fix] Fix spelling in error message
2012-05-23 22:29:56 -07:00
Christian Tellnes 83440f9956 fix spelling in error message 2012-05-24 07:27:19 +02:00
Maciej Małecki 87b0dd01c9 [minor] Use `fs.exists` when available
`path.exists*` was moved to `fs` module in
joyent/node@e10ed097cb.
2012-05-15 11:02:46 +02:00
Christian Howe 1f67d35305 [dist] Fix maintainers field 2012-05-07 03:56:46 +00:00
Jonathan Stewmon 6353d028f7 api and doc change for flatiron/nconf#28 (`.file` may now take a string instead of an object)
Conflicts:

	lib/nconf/provider.js
2012-05-03 17:10:19 -07:00
Russell Frank d3e68976c8 Proper teardowns in `complete-test.js` 2012-05-03 00:16:13 -04:00
Russell Frank 94bdb7dbd8 Added `complete-test.js` & fixture.
`complete-test.js` correctly tests the modified `save()` method.  It is
an attempt at a more complete functional test of nconf.
2012-05-01 23:27:00 -04:00
Russell Frank 36e061c4bd Fixes to `Provider.save()` and tests.
Fixed `Provider.save()` to properly ignore stores which do not provide
a saveSync method.  Also, fixed `save()` to properly save asynchronously
when an async `save()` method on a store is provided.

Removed the tests from `nconf-test.js` which expected `save()` to throw
or return an error when a store without `save()` methods was
encountered. Also removed a `console.log` from `provider-test.js`.
2012-05-01 22:44:15 -04:00
Pavan Kumar Sunkara 29eb5f905d [minor] Fix whitespaces 2012-04-15 00:58:55 +05:30
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