relaxed-job 1.0.0 → 1.0.1
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 +25 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/relaxed-job.gemspec +3 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,9 +1,32 @@
|
|
1
1
|
= relaxed-job
|
2
2
|
|
3
|
-
|
3
|
+
A job system based in CouchDB
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
# From Gemcutter
|
8
|
+
gem install relaxed-job
|
9
|
+
|
10
|
+
== Usage
|
11
|
+
|
12
|
+
# Rakefile
|
13
|
+
require 'relaxed_job/tasks'
|
14
|
+
|
15
|
+
# queue a job
|
16
|
+
queue = RelaxedJob::Queue.new('http://localhost:5984/relaxed_job')
|
17
|
+
queue.enqueue my_object_that_responds_to_perform
|
18
|
+
|
19
|
+
# queue with a different method
|
20
|
+
queue.enqueue_with_method my_object, :do_work
|
21
|
+
|
22
|
+
# queue with arguments
|
23
|
+
queue.enqueue_with_method my_object, :do_work_with_args, 5, 7
|
24
|
+
|
25
|
+
# run the worker
|
26
|
+
$ rake jobs:work
|
4
27
|
|
5
28
|
== Note on Patches/Pull Requests
|
6
|
-
|
29
|
+
|
7
30
|
* Fork the project.
|
8
31
|
* Make your feature addition or bug fix.
|
9
32
|
* Add tests for it. This is important so I don't break it in a
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
require 'jeweler'
|
9
9
|
Jeweler::Tasks.new do |gem|
|
10
10
|
gem.name = "relaxed-job"
|
11
|
-
gem.summary = %Q{
|
11
|
+
gem.summary = %Q{A job system based in CouchDB}
|
12
12
|
gem.description = gem.summary
|
13
13
|
gem.email = "<ddollar@gmail.com>"
|
14
14
|
gem.homepage = "http://github.com/ddollar/relaxed-job"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/relaxed-job.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{relaxed-job}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Dollar"]
|
12
12
|
s.date = %q{2009-11-09}
|
13
|
-
s.description = %q{
|
13
|
+
s.description = %q{A job system based in CouchDB}
|
14
14
|
s.email = %q{<ddollar@gmail.com>}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.rdoc_options = ["--charset=UTF-8"]
|
43
43
|
s.require_paths = ["lib"]
|
44
44
|
s.rubygems_version = %q{1.3.5}
|
45
|
-
s.summary = %q{
|
45
|
+
s.summary = %q{A job system based in CouchDB}
|
46
46
|
s.test_files = [
|
47
47
|
"spec/relaxed_job/queue_spec.rb",
|
48
48
|
"spec/spec_helper.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaxed-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Dollar
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: "0"
|
44
44
|
version:
|
45
|
-
description:
|
45
|
+
description: A job system based in CouchDB
|
46
46
|
email: <ddollar@gmail.com>
|
47
47
|
executables: []
|
48
48
|
|
@@ -99,7 +99,7 @@ rubyforge_project:
|
|
99
99
|
rubygems_version: 1.3.5
|
100
100
|
signing_key:
|
101
101
|
specification_version: 3
|
102
|
-
summary:
|
102
|
+
summary: A job system based in CouchDB
|
103
103
|
test_files:
|
104
104
|
- spec/relaxed_job/queue_spec.rb
|
105
105
|
- spec/spec_helper.rb
|