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
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