README.md in localjob-0.3.0 vs README.md in localjob-0.4.0
- old
+ new
@@ -1,6 +1,6 @@
-# Localjob [![Build Status](https://travis-ci.org/Sirupsen/localjob.png?branch=master)](https://travis-ci.org/Sirupsen/localjob) [![Code Climate](https://codeclimate.com/github/Sirupsen/localjob.png)](https://codeclimate.com/github/Sirupsen/localjob)
+# Localjob [![Build Status](https://travis-ci.org/Sirupsen/localjob.png?branch=master)](https://travis-ci.org/Sirupsen/localjob) [![Coverage Status](https://coveralls.io/repos/Sirupsen/localjob/badge.png?branch=master)](https://coveralls.io/r/Sirupsen/localjob?branch=master)
Localjob is a simple, self-contained background queue built on top of [System V
message queues][sysv] (SysV Message Queue => SysV MQ for short). Workers and the
app pushing to the queue must reside on the same machine. It's the sqlite of
background queues. Here's a post about [how it works][blog].
@@ -82,11 +82,11 @@
Create your instance of the queue as normal in your setup:
```ruby
def setup
- @queue = Localjob.new("test-queue")
- @worker = Localjob::Worker.new("test-queue")
+ @queue = Localjob.new
+ @worker = Localjob::Worker.new(@queue)
end
```
In your `teardown` you'll want to destroy your queue: