README.markdown in resque_admin-1.0.3 vs README.markdown in resque_admin-1.0.4
- old
+ new
@@ -204,13 +204,13 @@
For example, Resque ships with Airbrake support. To configure it, put
the following into an initialisation file or into your rake job:
``` ruby
# send errors which occur in background jobs to redis and airbrake
-require 'resque/failure/multiple'
-require 'resque/failure/redis'
-require 'resque/failure/airbrake'
+require 'resque_admin/failure/multiple'
+require 'resque_admin/failure/redis'
+require 'resque_admin/failure/airbrake'
Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake]
Resque::Failure.backend = Resque::Failure::Multiple
```
@@ -569,11 +569,11 @@
If you want to load Resque on a subpath, possibly alongside other
apps, it's easy to do with Rack's `URLMap`:
``` ruby
-require 'resque/server'
+require 'resque_admin/server'
run Rack::URLMap.new \
"/" => Your::App.new,
"/resque" => Resque::Server.new
```
@@ -581,11 +581,11 @@
Check `examples/demo/config.ru` for a functional example (including
HTTP basic auth).
### Rails 3
-You can also mount Resque on a subpath in your existing Rails 3 app by adding `require 'resque/server'` to the top of your routes file or in an initializer then adding this to `routes.rb`:
+You can also mount Resque on a subpath in your existing Rails 3 app by adding `require 'resque_admin/server'` to the top of your routes file or in an initializer then adding this to `routes.rb`:
``` ruby
mount Resque::Server.new, :at => "/resque"
```
@@ -652,11 +652,11 @@
$ gem install resque
Next include it in your application.
``` ruby
-require 'resque'
+require 'resque_admin'
```
Now start your application:
rackup config.ru
@@ -666,17 +666,17 @@
To start a worker, create a Rakefile in your app's root (or add this
to an existing Rakefile):
``` ruby
require 'your/app'
-require 'resque/tasks'
+require 'resque_admin/tasks'
```
If you're using Rails 5.x, include the following in lib/tasks/resque.rb:
```ruby
-require 'resque/tasks'
+require 'resque_admin/tasks'
task 'resque:setup' => :environment
```
Now:
@@ -693,22 +693,22 @@
$ gem install resque
Next include it in your application.
$ cat config/initializers/load_resque.rb
- require 'resque'
+ require 'resque_admin'
Now start your application:
$ ./script/server
That's it! You can now create Resque jobs from within your app.
To start a worker, add this to your Rakefile in `RAILS_ROOT`:
``` ruby
-require 'resque/tasks'
+require 'resque_admin/tasks'
```
Now:
$ QUEUE=* rake environment resque:work
@@ -753,10 +753,10 @@
To start a worker, add this to a file in `lib/tasks` (ex:
`lib/tasks/resque.rake`):
``` ruby
-require 'resque/tasks'
+require 'resque_admin/tasks'
```
Now:
$ QUEUE=* rake environment resque:work