confidence
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -258,3 +258,3 @@ // Load modules | ||
if (!range.limit) { | ||
if (!range.hasOwnProperty('limit')) { | ||
return error('Range entry missing limit'); | ||
@@ -261,0 +261,0 @@ } |
{ | ||
"name": "confidence", | ||
"description": "Configuration API", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/spumko/confidence", |
@@ -79,3 +79,3 @@ <a href="https://github.com/spumko"><img src="https://raw.github.com/spumko/spumko/master/images/from.png" align="right" /></a> | ||
"random": { | ||
"1": 15 | ||
"a": 15 | ||
} | ||
@@ -174,3 +174,3 @@ } | ||
Ranges provide a way to filter a value based on numerical buckets. The criteria value must be an integer and it matched against the highest bucket limit it can fit. | ||
Ranges provide a way to filter a value based on numerical buckets. The criteria value must be an integer and it matched against the lowest bucket limit it can fit. | ||
@@ -196,3 +196,3 @@ ```json | ||
If the criteria includes a value for `random.a`, that value is matched against the sorted range entries. The criterion value will match the entry with highest limit it | ||
If the criteria includes a value for `random.a`, that value is matched against the sorted range entries. The criterion value will match the entry with lowest limit it | ||
is still less than or equal the limit of. For example, a criterion value of `5` will return a key value for `'/key3'` of `4`. A criterion value of `15` will return a | ||
@@ -199,0 +199,0 @@ key value for `'/key3'` of `5`, and a criterion value of `50` will return a key value for `'/key3'` of `6`. |
75930