simplejob 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +2 -2
- data/README.md +8 -8
- data/VERSION +1 -1
- data/lib/simplejob/worker.rb +0 -1
- data/simplejob.gemspec +3 -3
- metadata +5 -5
data/LICENSE.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2011 Ken Pratt
|
4
|
-
Copyright (c) 2011 Ruboss Technology Corp
|
3
|
+
Copyright (c) 2011 Ken Pratt <ken@kenpratt.net>
|
4
|
+
Copyright (c) 2011 Ruboss Technology Corp <peter@ruboss.com>
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining
|
7
7
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -12,9 +12,9 @@ Painless job queueing, backed by AMQP.
|
|
12
12
|
Installation
|
13
13
|
------------
|
14
14
|
|
15
|
-
|
15
|
+
```sh
|
16
16
|
$ gem install simplejob
|
17
|
-
|
17
|
+
```
|
18
18
|
|
19
19
|
Example
|
20
20
|
-------
|
@@ -23,15 +23,15 @@ Start your [RabbitMQ](http://www.rabbitmq.com/) server (install one if necessary
|
|
23
23
|
|
24
24
|
### Producer
|
25
25
|
|
26
|
-
|
26
|
+
```ruby
|
27
27
|
require "simplejob"
|
28
28
|
|
29
29
|
SimpleJob.send("hello")
|
30
|
-
|
30
|
+
```
|
31
31
|
|
32
32
|
### Consumer
|
33
33
|
|
34
|
-
|
34
|
+
```ruby
|
35
35
|
require "simplejob"
|
36
36
|
|
37
37
|
SimpleJob::Worker.start do
|
@@ -39,14 +39,14 @@ SimpleJob::Worker.start do
|
|
39
39
|
puts "got it!"
|
40
40
|
end
|
41
41
|
end
|
42
|
-
|
42
|
+
```
|
43
43
|
|
44
44
|
### Run
|
45
45
|
|
46
|
-
|
46
|
+
```sh
|
47
47
|
$ ruby -rubygems producer.rb
|
48
48
|
$ ruby -rubygems consumer.rb
|
49
|
-
|
49
|
+
```
|
50
50
|
|
51
51
|
More examples
|
52
52
|
-------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/simplejob/worker.rb
CHANGED
data/simplejob.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{simplejob}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Ken Pratt}]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-07-11}
|
13
13
|
s.description = %q{A simple AMQP-backed job queuing system.}
|
14
14
|
s.email = %q{ken@kenpratt.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.homepage = %q{http://github.com/kenpratt/simplejob}
|
47
47
|
s.licenses = [%q{MIT}]
|
48
48
|
s.require_paths = [%q{lib}]
|
49
|
-
s.rubygems_version = %q{1.8.
|
49
|
+
s.rubygems_version = %q{1.8.5}
|
50
50
|
s.summary = %q{Painless job queueing.}
|
51
51
|
|
52
52
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ken Pratt
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements: []
|
130
130
|
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 1.8.
|
132
|
+
rubygems_version: 1.8.5
|
133
133
|
signing_key:
|
134
134
|
specification_version: 3
|
135
135
|
summary: Painless job queueing.
|