Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
[dist api] Allows function to be passed for design docs
Browse files Browse the repository at this point in the history
* 1.3.9
* adds clifano to the contribs
  • Loading branch information
dscape committed Mar 22, 2012
1 parent e8afec3 commit 8d8626f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
, "description" : "minimalistic couchdb driver for node.js"
, "homepage" : "http://github.com/dscape/nano"
, "repository" : "git://github.com/dscape/nano"
, "version" : "1.3.8"
, "version" : "1.3.9"
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"
, "contributors" :
[ "Thiago Arrais <thiago.arrais@gmail.com> (http://thiagoarrais.com)"
Expand All @@ -15,6 +15,7 @@
, "Jan Lehnardt <jan@apache.org> (http://jan.prima.de/plok/)"
, "InTheFiveByFive"
, "Stéphane Alnet <stephane@shimaore.net> (http://blog.shimaore.net)"
, "Cliffano Subagio (http://blog.cliffano.com)"
]
, "keywords" :
["couchdb", "data", "request", "json", "nosql", "micro", "nano", "database"]
Expand Down
6 changes: 4 additions & 2 deletions tests/doc/insert.js
Expand Up @@ -33,7 +33,7 @@ var ensure = require('ensure')
'content-type': 'application/json',
'content-length': '95',
'cache-control': 'must-revalidate' })
.put('/' + db_name('b') + '/some%2Fpath', {"foo": "bar", "fn": "function () { return true; }"})
.put('/' + db_name('b') + '/some%2Fpath', {"foo": "bar", "fn": "function () { return true; }", fn2: "function () { return false; }"})
.reply(201, "{\"ok\": true,\"id\": \"some/path\",\"rev\": \"1-4c6114c65e295552ab1019e2b046b10e\"}\n",
{ server: 'CouchDB/1.1.1 (Erlang OTP/R14B04)',
location: cfg.url + '/' + db_name('b') + '/some/path',
Expand Down Expand Up @@ -61,7 +61,9 @@ tests.insert_doc_ok = function (e,b) {

tests.insert_doc_path = function (callback) {
nano.db.create(db_name("b"), function () {
db("b").insert({foo: "bar", fn: function () { return true; }}, 'some/path', callback);
db("b").insert({foo: "bar", fn: function () { return true; },
fn2: "function () { return false; }" },
'some/path', callback);
});
};

Expand Down

0 comments on commit 8d8626f

Please sign in to comment.