djwrapper 0.0.4 → 0.0.5
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/README.rdoc +12 -9
- data/lib/djwrapper.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -16,16 +16,19 @@ A job class that gives you some nifty methods:
|
|
16
16
|
|
17
17
|
== SYNOPSIS:
|
18
18
|
|
19
|
-
class Myjob < Djwrapper::DelayedBackgroundProcess
|
19
|
+
class Myjob < Djwrapper::DelayedBackgroundProcess
|
20
20
|
def self.process!(params = {})
|
21
|
-
|
21
|
+
time do
|
22
|
+
# do stuff here ...
|
23
|
+
log("Something happened here!")
|
24
|
+
end
|
22
25
|
end
|
23
|
-
end
|
26
|
+
end
|
24
27
|
|
25
|
-
# Process the job immediately. Useful for testing purposes.
|
26
|
-
Myjob.process!
|
27
|
-
# Create a background job.
|
28
|
-
Myjob.enqueue
|
28
|
+
# Process the job immediately. Useful for testing purposes.
|
29
|
+
Myjob.process!
|
30
|
+
# Create a background job.
|
31
|
+
Myjob.enqueue
|
29
32
|
|
30
33
|
== REQUIREMENTS:
|
31
34
|
|
@@ -33,7 +36,7 @@ Myjob.enqueue
|
|
33
36
|
|
34
37
|
== INSTALL:
|
35
38
|
|
36
|
-
-
|
39
|
+
- gem install djwrapper
|
37
40
|
|
38
41
|
== LICENSE:
|
39
42
|
|
@@ -58,4 +61,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
58
61
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
59
62
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
60
63
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
61
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
64
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/djwrapper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: djwrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: delayed_job
|