Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@
"type" : "git"
, "url" : "https://github.com/plainlystated/coffeescript-rrd"
}
, "devDepencencies" :{
"coffee-script": ">=1.3.3",
"vows": ">=0.6.3"
}
, "scripts": {
"test": "LANG=EN_us ./node_modules/.bin/vows test/rrd-test.coffee"
, "install": "./node_modules/.bin/coffee -c -b *.coffee"
}
}
1 change: 0 additions & 1 deletion rrd.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sys = require('sys')
exec = require('child_process').exec
spawn = require('child_process').spawn
fs = require('fs')
Expand Down
109 changes: 0 additions & 109 deletions rrd.js

This file was deleted.

11 changes: 0 additions & 11 deletions rrdRecord.js

This file was deleted.

6 changes: 3 additions & 3 deletions test/rrd-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ vows.describe('RRD').addBatch(
assert.equal(err, "ERROR: opening 'invalid.rrd': No such file or directory\n")

'a valid RRD':
topic: new RRD('valid.rrd')
topic: new RRD('test/valid.rrd')

'when fetching':
topic: (rrd) ->
Expand Down Expand Up @@ -102,15 +102,15 @@ vows.describe('RRD').addBatch(
'when restoring':
'a valid file':
topic: () ->
RRD.restore('valid.xml', "tmp-restore.rrd", @callback)
RRD.restore('test/valid.xml', "tmp-restore.rrd", @callback)
return

'returns no error': (err) ->
assert.equal(err, null)

'an invalid file':
topic: () ->
RRD.restore('invalid.xml', "tmp-restore.rrd", @callback)
RRD.restore('test/invalid.xml', "tmp-restore.rrd", @callback)
return

# The underlying process never returns an error here.. need to figure out a better way to handle this
Expand Down