qu 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +16 -0
- data/README.md +16 -2
- data/lib/qu.rb +8 -1
- data/lib/qu/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
0.1.3 - 2011-10-10
|
2
|
+
|
3
|
+
Bug Fixes:
|
4
|
+
|
5
|
+
* Delete jobs when clearing the queue in the Redis backend
|
6
|
+
|
7
|
+
Enhancements:
|
8
|
+
|
9
|
+
* Added support for Rails 2
|
10
|
+
* Retry connection failures in Mongo backend and added two config options:
|
11
|
+
|
12
|
+
Qu.configure do |c|
|
13
|
+
c.backend.max_retries = 10 # default: 5
|
14
|
+
c.backend.retry_frequency = 5 # default: 1
|
15
|
+
end
|
16
|
+
|
1
17
|
0.1.2 - 2011-10-05
|
2
18
|
|
3
19
|
Bug Fixes:
|
data/README.md
CHANGED
@@ -16,9 +16,9 @@ Qu was created to overcome some shortcomings in the existing queuing libraries t
|
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
|
-
### Rails
|
19
|
+
### Rails 3
|
20
20
|
|
21
|
-
Decide which backend you want to use and add the gem
|
21
|
+
Decide which backend you want to use and add the gem to your `Gemfile`.
|
22
22
|
|
23
23
|
``` ruby
|
24
24
|
gem 'qu-redis'
|
@@ -26,6 +26,20 @@ gem 'qu-redis'
|
|
26
26
|
|
27
27
|
That's all you need to do!
|
28
28
|
|
29
|
+
### Rails 2
|
30
|
+
|
31
|
+
Decide which backend you want to use and add the gem to `config.gems` in `environment.rb`:
|
32
|
+
|
33
|
+
``` ruby
|
34
|
+
config.gem 'qu-redis'
|
35
|
+
````
|
36
|
+
|
37
|
+
To load the rake tasks, add the following to your `Rakefile`:
|
38
|
+
|
39
|
+
``` ruby
|
40
|
+
require 'qu/tasks'
|
41
|
+
```
|
42
|
+
|
29
43
|
## Usage
|
30
44
|
|
31
45
|
Jobs are any class that responds to the `.perform` method:
|
data/lib/qu.rb
CHANGED
data/lib/qu/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Keepers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-10 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|