midknight41
29f1ca281b
added support for BOM in load() and loadSync()
2013-10-03 09:17:36 +01:00
Marcin Floryan
ada15db9e3
Test that invalid file name is indicated
2013-04-29 21:36:26 +01:00
Charlie Robbins
818526ca62
Merge pull request #63 from SchoonologyRRL/patch-1
...
Updated Memory.merge to handle null values
2012-12-20 22:56:54 -08:00
Michael Schoonmaker
5d2ebfbe9f
Added test to confirm merging an Object and null behaves as expected.
2012-12-20 19:02:36 -08:00
Michael Hart
bb57c497d3
Prefer this fix for #65 to 6045618
2012-12-20 18:12:42 -05:00
indexzero
0d795ecf81
[test] Better tests to show #65
2012-12-20 14:08:36 -05:00
indexzero
f19f0b6c39
[test] Added failing test to illustrate #65
2012-12-20 14:01:04 -05:00
Bradley Meck
da39d3cac3
[fix] null values should merge properly instead of throwing errors
2012-09-08 20:10:58 -05:00
Bradley Meck
7421836387
[fix] heirarchy fixture file path wrong in tests
2012-09-07 09:40:15 -05:00
Bradley Meck
683f78918c
[fix] #59 root get/set should work via null/undefined as key
2012-09-07 09:29:30 -05:00
indexzero
d96d2544bc
[fix] Fix regression introduced by 36e061c4bd
2012-07-10 03:16:54 -04:00
indexzero
7e8d9d6bce
[test] Added failing test for .save()
regression introduced by @russfrank in 36e061c4bd
2012-07-10 03:16:04 -04:00
indexzero
04e22303bd
[minor doc] Update file header in test/provider-test.js
2012-07-10 03:14:00 -04:00
indexzero
30734301e7
[api test doc] Make options to Provider.prototype.file
take more flexible options
2012-07-10 01:50:18 -04:00
indexzero
8b53c12729
[minor] Use locally scoped path
variable
2012-07-10 01:47:28 -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
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
26d81e8dca
Merge objects if necessary when traversing stores on get()
2012-06-13 18:28:54 +05:30
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
indexzero
464af417fe
[fix test] Fix bad test assertion
2012-01-02 17:27:09 -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
Jonathan Stewmon
fdb73f007b
updated tests to verify that Provider.load respects hierarchy
2012-01-02 17:12:08 -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
d5ce1ed68f
[test] Test saveSync()
method of file store
2011-12-25 15:26:04 +01:00
indexzero
6c720ee109
[dist] Update Copyright and Author to Nodejitsu Inc.
2011-11-24 00:33:08 -05:00
indexzero
90b029782e
[test] Update tests to use optional options API
2011-11-24 00:30:31 -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
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
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
Maciej Małecki
2475d06cb2
[test] Test command line arguments reparsing
2011-11-19 02:02:22 +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
indexzero
d0aee0d451
[api test] Added .sources
option for nconf.Provider
for readonly configuration data
2011-09-25 00:01:44 -04:00
indexzero
f867e749b9
[dist] Remove unused test fixtures
2011-09-18 21:38:44 -04:00
indexzero
1ef5797e83
[api test] Finished API and tests for hierarchical configuration storage.
2011-09-18 21:37:01 -04:00
indexzero
a0638805ce
[doc] Updated usage.js and README.md for the next hierarchical syntax.
2011-09-18 21:34:45 -04:00
indexzero
da2da7aea8
[api test breaking refactor] Significant refactor to how nconf works. Now a fully hierarchical configuration storage mechanism capable of multiple levels of stores of the same type.
2011-09-16 06:49:47 -04:00
indexzero
fb392ddc51
[api test] Updated test/provider-test.js and associated merge implementation
2011-08-28 08:50:26 -04:00