workless 0.0.1 → 0.0.2
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/Gemfile +4 -2
- data/Gemfile.lock +66 -0
- data/README.rdoc +15 -1
- data/VERSION +1 -1
- data/workless.gemspec +13 -7
- metadata +44 -9
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,17 +1,77 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
+
abstract (1.0.0)
|
5
|
+
actionmailer (3.0.0)
|
6
|
+
actionpack (= 3.0.0)
|
7
|
+
mail (~> 2.2.5)
|
8
|
+
actionpack (3.0.0)
|
9
|
+
activemodel (= 3.0.0)
|
10
|
+
activesupport (= 3.0.0)
|
11
|
+
builder (~> 2.1.2)
|
12
|
+
erubis (~> 2.6.6)
|
13
|
+
i18n (~> 0.4.1)
|
14
|
+
rack (~> 1.2.1)
|
15
|
+
rack-mount (~> 0.6.12)
|
16
|
+
rack-test (~> 0.5.4)
|
17
|
+
tzinfo (~> 0.3.23)
|
18
|
+
activemodel (3.0.0)
|
19
|
+
activesupport (= 3.0.0)
|
20
|
+
builder (~> 2.1.2)
|
21
|
+
i18n (~> 0.4.1)
|
22
|
+
activerecord (3.0.0)
|
23
|
+
activemodel (= 3.0.0)
|
24
|
+
activesupport (= 3.0.0)
|
25
|
+
arel (~> 1.0.0)
|
26
|
+
tzinfo (~> 0.3.23)
|
27
|
+
activeresource (3.0.0)
|
28
|
+
activemodel (= 3.0.0)
|
29
|
+
activesupport (= 3.0.0)
|
30
|
+
activesupport (3.0.0)
|
31
|
+
arel (1.0.1)
|
32
|
+
activesupport (~> 3.0.0)
|
33
|
+
builder (2.1.2)
|
4
34
|
configuration (1.1.0)
|
35
|
+
daemons (1.1.0)
|
36
|
+
delayed_job (2.1.0.pre2)
|
37
|
+
activesupport (~> 3.0)
|
38
|
+
daemons
|
39
|
+
erubis (2.6.6)
|
40
|
+
abstract (>= 1.0.0)
|
5
41
|
fattr (2.1.0)
|
6
42
|
heroku (1.10.8)
|
7
43
|
json_pure (>= 1.2.0, < 1.5.0)
|
8
44
|
launchy (~> 0.3.2)
|
9
45
|
rest-client (>= 1.4.0, < 1.7.0)
|
46
|
+
i18n (0.4.1)
|
10
47
|
json_pure (1.4.6)
|
11
48
|
launchy (0.3.7)
|
12
49
|
configuration (>= 0.0.5)
|
13
50
|
rake (>= 0.8.1)
|
51
|
+
mail (2.2.6.1)
|
52
|
+
activesupport (>= 2.3.6)
|
53
|
+
mime-types
|
54
|
+
treetop (>= 1.4.5)
|
14
55
|
mime-types (1.16)
|
56
|
+
polyglot (0.3.1)
|
57
|
+
rack (1.2.1)
|
58
|
+
rack-mount (0.6.13)
|
59
|
+
rack (>= 1.0.0)
|
60
|
+
rack-test (0.5.6)
|
61
|
+
rack (>= 1.0)
|
62
|
+
rails (3.0.0)
|
63
|
+
actionmailer (= 3.0.0)
|
64
|
+
actionpack (= 3.0.0)
|
65
|
+
activerecord (= 3.0.0)
|
66
|
+
activeresource (= 3.0.0)
|
67
|
+
activesupport (= 3.0.0)
|
68
|
+
bundler (~> 1.0.0)
|
69
|
+
railties (= 3.0.0)
|
70
|
+
railties (3.0.0)
|
71
|
+
actionpack (= 3.0.0)
|
72
|
+
activesupport (= 3.0.0)
|
73
|
+
rake (>= 0.8.4)
|
74
|
+
thor (~> 0.14.0)
|
15
75
|
rake (0.8.7)
|
16
76
|
rest-client (1.6.1)
|
17
77
|
mime-types (>= 1.16)
|
@@ -19,10 +79,16 @@ GEM
|
|
19
79
|
session
|
20
80
|
session (3.1.0)
|
21
81
|
fattr
|
82
|
+
thor (0.14.2)
|
83
|
+
treetop (1.4.8)
|
84
|
+
polyglot (>= 0.3.1)
|
85
|
+
tzinfo (0.3.23)
|
22
86
|
|
23
87
|
PLATFORMS
|
24
88
|
ruby
|
25
89
|
|
26
90
|
DEPENDENCIES
|
91
|
+
delayed_job (= 2.1.0.pre2)
|
27
92
|
heroku
|
93
|
+
rails (= 3.0.0)
|
28
94
|
rush
|
data/README.rdoc
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
= workless
|
2
2
|
|
3
|
-
|
3
|
+
This is an addon for delayed_job (2.1.0.pre2) http://github.com/collectiveidea/delayed_job/tree/v2.1.0.pre2
|
4
|
+
It is designed to be used when you're using Heroku as a host and have the need to do background work with delayed job but you dont want to leave the workers running all the time as it costs money.
|
5
|
+
|
6
|
+
You basically add the gem to your project and the rest is taken care of for you given a few CONFIG vars set on Heroku.
|
7
|
+
|
8
|
+
There are already a few of these out there, notably @mtravers' cheepnis http://github.com/mtravers/cheepnis and the autoscale branch of delayed_job by @pedro http://github.com/pedro/delayed_job/tree/autoscaling
|
9
|
+
|
10
|
+
This one takes bits from both and is helping me understand gem and plugin development. It's built for rails 3 on the delayed_job 2.1.0.pre2 tag but don't see why it wouldn't work on rails 2 as well as it hooks into the callbacks of the Delayed::Job ActiveRecord class to turn workers on and off based on the creation and destruction of jobs.
|
11
|
+
|
12
|
+
== installation
|
13
|
+
|
14
|
+
Add the gem to your Gemfile
|
15
|
+
<pre>
|
16
|
+
gem "workless"
|
17
|
+
</pre>
|
4
18
|
|
5
19
|
== Note on Patches/Pull Requests
|
6
20
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/workless.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{workless}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["lostboy"]
|
@@ -53,17 +53,23 @@ Gem::Specification.new do |s|
|
|
53
53
|
|
54
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
55
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
56
|
-
s.add_runtime_dependency(%q<
|
57
|
-
s.add_runtime_dependency(%q<
|
56
|
+
s.add_runtime_dependency(%q<rails>, ["= 3.0.0"])
|
57
|
+
s.add_runtime_dependency(%q<heroku>, ["= 1.10.8"])
|
58
|
+
s.add_runtime_dependency(%q<rush>, ["= 0.6.7"])
|
59
|
+
s.add_runtime_dependency(%q<delayed_job>, ["= 2.1.0.pre2"])
|
58
60
|
else
|
59
61
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
60
|
-
s.add_dependency(%q<
|
61
|
-
s.add_dependency(%q<
|
62
|
+
s.add_dependency(%q<rails>, ["= 3.0.0"])
|
63
|
+
s.add_dependency(%q<heroku>, ["= 1.10.8"])
|
64
|
+
s.add_dependency(%q<rush>, ["= 0.6.7"])
|
65
|
+
s.add_dependency(%q<delayed_job>, ["= 2.1.0.pre2"])
|
62
66
|
end
|
63
67
|
else
|
64
68
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
65
|
-
s.add_dependency(%q<
|
66
|
-
s.add_dependency(%q<
|
69
|
+
s.add_dependency(%q<rails>, ["= 3.0.0"])
|
70
|
+
s.add_dependency(%q<heroku>, ["= 1.10.8"])
|
71
|
+
s.add_dependency(%q<rush>, ["= 0.6.7"])
|
72
|
+
s.add_dependency(%q<delayed_job>, ["= 2.1.0.pre2"])
|
67
73
|
end
|
68
74
|
end
|
69
75
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- lostboy
|
@@ -31,31 +31,66 @@ dependencies:
|
|
31
31
|
prerelease: false
|
32
32
|
version_requirements: *id001
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: rails
|
35
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
segments:
|
41
|
+
- 3
|
41
42
|
- 0
|
42
|
-
|
43
|
+
- 0
|
44
|
+
version: 3.0.0
|
43
45
|
type: :runtime
|
44
46
|
prerelease: false
|
45
47
|
version_requirements: *id002
|
46
48
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
49
|
+
name: heroku
|
48
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
49
51
|
none: false
|
50
52
|
requirements:
|
51
|
-
- - "
|
53
|
+
- - "="
|
52
54
|
- !ruby/object:Gem::Version
|
53
55
|
segments:
|
54
|
-
-
|
55
|
-
|
56
|
+
- 1
|
57
|
+
- 10
|
58
|
+
- 8
|
59
|
+
version: 1.10.8
|
56
60
|
type: :runtime
|
57
61
|
prerelease: false
|
58
62
|
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rush
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - "="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
- 6
|
73
|
+
- 7
|
74
|
+
version: 0.6.7
|
75
|
+
type: :runtime
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: delayed_job
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - "="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 2
|
87
|
+
- 1
|
88
|
+
- 0
|
89
|
+
- pre2
|
90
|
+
version: 2.1.0.pre2
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: *id005
|
59
94
|
description: Extension to Delayed Job to enable workers to scale up when needed
|
60
95
|
email: paul.crabtree@gmail.com
|
61
96
|
executables: []
|