Skip to content

Commit

Permalink
whoa what happened (merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Feb 24, 2011
2 parents 9f74c2b + 033c5d4 commit 1ed01c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
20 changes: 12 additions & 8 deletions package.json
@@ -1,10 +1,14 @@
{
"name": "coffee-resque",
"version": "0.1.0",
"description": "Coffeescript/Node.js port of Resque",
"keywords": ["coffee-resque"],
"dependencies": {"redis": ">= 0.5.2"},
"engines" : {"node" : ">=0.2.6"},
"directories": {"lib": "lib"},
"main": "./lib/index"
"name" : "coffee-resque",
"version" : "0.1.0",
"description" : "Coffeescript/Node.js port of Resque",
"keywords" : ["resque", "redis", "queue", "coffee script"],
"homepage" : "https://github.com/technoweenie/coffee-resque",
"author" : "Rick Olson <technoweenie@gmail.com> (http://techno-weenie.net)",
"contributors" : ["Sean McDaniel <sean.mcdaniel@me.com>"],
"main" : "./lib/index",
"directories" : {"lib" : "./lib"},
"repository" : {"type" : "git", "url": "https://github.com/technoweenie/coffee-resque.git"},
"dependencies" : {"redis": ">= 0.5.2"},
"engines" : {"node" : ">=0.2.6"}
}
Expand Up @@ -5,14 +5,15 @@ conn.enqueue 'abc', 'def'
conn.enqueue 'def', 'ghi'

queues = []
conn.on 'error', (err, worker, queue) ->
worker = conn.worker('*')
worker.on 'error', (err, worker, queue) ->
queues.push queue.toString()
if queues.length == 2
worker.end()
conn.end()
assert.deepEqual ['abc', 'def'], queues

conn.worker('*').start()
worker.start()

process.on 'exit', ->
console.log '.'
console.log '.'

0 comments on commit 1ed01c0

Please sign in to comment.