Permalink
Browse files

Merge pull request #2 from kdawes/master

Get the tests running and add travis-ci.org integration
  • Loading branch information...
2 parents 12288b8 + 04a9740 commit 501d2d32ea9bd8125de4cf2852f0fda08ef2b69b @indexzero indexzero committed Dec 19, 2012
Showing with 24 additions and 7 deletions.
  1. +13 −0 .travis.yml
  2. +3 −1 README.md
  3. +2 −1 lib/winston-couchdb.js
  4. +6 −5 package.json
View
13 .travis.yml
@@ -0,0 +1,13 @@
+language: node_js
+branches:
+ only:
+ - master
+node_js:
+ - 0.8
+services:
+ - couchdb
+notifications:
+ email:
+ - charlie.robbins@gmail.com
+before_script:
+ - curl -X PUT 127.0.0.1:5984/logs
View
4 README.md
@@ -1,4 +1,6 @@
winston-couchdb
===============
-A full featured CouchDB transport for winston
+A full featured CouchDB transport for winston
+
+[![Build Status](https://travis-ci.org/indexzero/winston-couchdb.png)](https://travis-ci.org/indexzero/winston-couchdb)
View
3 lib/winston-couchdb.js
@@ -11,6 +11,7 @@ var events = require('events'),
common = require('winston/lib/winston/common'),
http = require('http'),
util = require('util'),
+ cycle = require('cycle'),
Stream = require('stream').Stream;
//
@@ -75,7 +76,7 @@ Couchdb.prototype.log = function (level, msg, meta, callback) {
//
// Write logging event to the outgoing request body
//
- var params = common.clone(meta) || {};
+ var params = common.clone(cycle.decycle(meta)) || {};
// RFC3339/ISO8601 format instead of common.timestamp()
params.timestamp = new Date;
params.message = msg;
View
11 package.json
@@ -1,21 +1,22 @@
{
"name": "winston-couchdb",
- "description": "A CouchDB transport for winston",
+ "description": "A CouchDB transport for Winston",
"version": "0.6.1",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"repository": {
"type": "git",
- "url": "http://github.com/indexzero/winston-couchdb.git"
+ "url": "http://github.com/indexzero/winston-couchdb"
},
"keywords": ["logging", "sysadmin", "tools", "winston", "couchdb"],
"dependencies": {
- "cradle": "0.6.x"
+ "cradle": "0.6.x",
+ "cycle": "1.0.x"
},
"devDependencies": {
- "winston": "0.5.x",
+ "winston": "0.6.x",
"vows": "0.6.x"
},
"main": "./lib/winston-couchdb",
"scripts": { "test": "vows test/*-test.js --spec" },
- "engines": { "node": ">= 0.4.0" }
+ "engines": { "node": ">= 0.8.0" }
}

0 comments on commit 501d2d3

Please sign in to comment.